[2025-04-08 00:00:05] Production.INFO: next invoice date [2025-04-08 00:00:05] Production.INFO: 2025-05-08 [2025-04-08 00:00:05] Production.INFO: getdaysdiff [2025-04-08 00:00:05] Production.INFO: +30 [2025-04-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (144,20,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:05] Production.INFO: next invoice date [2025-04-08 00:00:05] Production.INFO: 2025-05-08 [2025-04-08 00:00:05] Production.INFO: getdaysdiff [2025-04-08 00:00:05] Production.INFO: +30 [2025-04-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (211,11,1,30,30,'RMScheduler',2025-04-08 00:00:05,0,0,,,0) [2025-04-08 00:00:05] Production.INFO: next invoice date [2025-04-08 00:00:05] Production.INFO: 2025-05-08 [2025-04-08 00:00:05] Production.INFO: getdaysdiff [2025-04-08 00:00:05] Production.INFO: +30 [2025-04-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (211,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,0,0,,,0) [2025-04-08 00:00:05] Production.INFO: next invoice date [2025-04-08 00:00:05] Production.INFO: 2025-05-08 [2025-04-08 00:00:05] Production.INFO: getdaysdiff [2025-04-08 00:00:05] Production.INFO: +30 [2025-04-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (219,11,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:05] Production.INFO: next invoice date [2025-04-08 00:00:05] Production.INFO: 2025-05-08 [2025-04-08 00:00:05] Production.INFO: getdaysdiff [2025-04-08 00:00:05] Production.INFO: +30 [2025-04-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (219,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:05] Production.INFO: next invoice date [2025-04-08 00:00:05] Production.INFO: 2025-05-08 [2025-04-08 00:00:05] Production.INFO: getdaysdiff [2025-04-08 00:00:05] Production.INFO: +30 [2025-04-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (220,11,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:06] Production.INFO: next invoice date [2025-04-08 00:00:06] Production.INFO: 2025-05-08 [2025-04-08 00:00:06] Production.INFO: getdaysdiff [2025-04-08 00:00:06] Production.INFO: +30 [2025-04-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (220,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:06] Production.INFO: next invoice date [2025-04-08 00:00:06] Production.INFO: 2025-05-08 [2025-04-08 00:00:06] Production.INFO: getdaysdiff [2025-04-08 00:00:06] Production.INFO: +30 [2025-04-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (221,11,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:06] Production.INFO: next invoice date [2025-04-08 00:00:06] Production.INFO: 2025-05-08 [2025-04-08 00:00:06] Production.INFO: getdaysdiff [2025-04-08 00:00:06] Production.INFO: +30 [2025-04-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (221,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:06] Production.INFO: next invoice date [2025-04-08 00:00:06] Production.INFO: 2025-05-08 [2025-04-08 00:00:06] Production.INFO: getdaysdiff [2025-04-08 00:00:06] Production.INFO: +30 [2025-04-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,11,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:06] Production.INFO: next invoice date [2025-04-08 00:00:06] Production.INFO: 2025-05-08 [2025-04-08 00:00:06] Production.INFO: getdaysdiff [2025-04-08 00:00:06] Production.INFO: +30 [2025-04-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:06] Production.INFO: next invoice date [2025-04-08 00:00:06] Production.INFO: 2025-05-08 [2025-04-08 00:00:06] Production.INFO: getdaysdiff [2025-04-08 00:00:06] Production.INFO: +30 [2025-04-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,11,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:06] Production.INFO: next invoice date [2025-04-08 00:00:06] Production.INFO: 2025-05-08 [2025-04-08 00:00:06] Production.INFO: getdaysdiff [2025-04-08 00:00:06] Production.INFO: +30 [2025-04-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:06] Production.INFO: next invoice date [2025-04-08 00:00:06] Production.INFO: 2025-05-08 [2025-04-08 00:00:06] Production.INFO: getdaysdiff [2025-04-08 00:00:06] Production.INFO: +30 [2025-04-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (224,11,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:06] Production.INFO: next invoice date [2025-04-08 00:00:06] Production.INFO: 2025-05-08 [2025-04-08 00:00:06] Production.INFO: getdaysdiff [2025-04-08 00:00:06] Production.INFO: +30 [2025-04-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (224,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:06] Production.INFO: next invoice date [2025-04-08 00:00:06] Production.INFO: 2025-05-08 [2025-04-08 00:00:06] Production.INFO: getdaysdiff [2025-04-08 00:00:06] Production.INFO: +30 [2025-04-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,11,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:07] Production.INFO: next invoice date [2025-04-08 00:00:07] Production.INFO: 2025-05-08 [2025-04-08 00:00:07] Production.INFO: getdaysdiff [2025-04-08 00:00:07] Production.INFO: +30 [2025-04-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:07] Production.INFO: next invoice date [2025-04-08 00:00:07] Production.INFO: 2025-05-08 [2025-04-08 00:00:07] Production.INFO: getdaysdiff [2025-04-08 00:00:07] Production.INFO: +30 [2025-04-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,16,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:07] Production.INFO: next invoice date [2025-04-08 00:00:07] Production.INFO: 2025-05-08 [2025-04-08 00:00:07] Production.INFO: getdaysdiff [2025-04-08 00:00:07] Production.INFO: +30 [2025-04-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:07] Production.INFO: next invoice date [2025-04-08 00:00:07] Production.INFO: 2025-05-08 [2025-04-08 00:00:07] Production.INFO: getdaysdiff [2025-04-08 00:00:07] Production.INFO: +30 [2025-04-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,16,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:07] Production.INFO: next invoice date [2025-04-08 00:00:07] Production.INFO: 2025-05-08 [2025-04-08 00:00:07] Production.INFO: getdaysdiff [2025-04-08 00:00:07] Production.INFO: +30 [2025-04-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:07] Production.INFO: next invoice date [2025-04-08 00:00:07] Production.INFO: 2025-05-08 [2025-04-08 00:00:07] Production.INFO: getdaysdiff [2025-04-08 00:00:07] Production.INFO: +30 [2025-04-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,16,1,30,30,'RMScheduler',2025-04-08 00:00:05,0,0,,,0) [2025-04-08 00:00:07] Production.INFO: next invoice date [2025-04-08 00:00:07] Production.INFO: 2025-05-08 [2025-04-08 00:00:07] Production.INFO: getdaysdiff [2025-04-08 00:00:07] Production.INFO: +30 [2025-04-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,0,0,,,0) [2025-04-08 00:00:08] Production.INFO: next invoice date [2025-04-08 00:00:08] Production.INFO: 2025-05-08 [2025-04-08 00:00:08] Production.INFO: getdaysdiff [2025-04-08 00:00:08] Production.INFO: +30 [2025-04-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (242,16,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:08] Production.INFO: next invoice date [2025-04-08 00:00:08] Production.INFO: 2025-05-08 [2025-04-08 00:00:08] Production.INFO: getdaysdiff [2025-04-08 00:00:08] Production.INFO: +30 [2025-04-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (242,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:08] Production.INFO: next invoice date [2025-04-08 00:00:08] Production.INFO: 2025-05-08 [2025-04-08 00:00:08] Production.INFO: getdaysdiff [2025-04-08 00:00:08] Production.INFO: +30 [2025-04-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (243,16,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:08] Production.INFO: next invoice date [2025-04-08 00:00:08] Production.INFO: 2025-05-08 [2025-04-08 00:00:08] Production.INFO: getdaysdiff [2025-04-08 00:00:08] Production.INFO: +30 [2025-04-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (243,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:08] Production.INFO: next invoice date [2025-04-08 00:00:08] Production.INFO: 2025-05-08 [2025-04-08 00:00:08] Production.INFO: getdaysdiff [2025-04-08 00:00:08] Production.INFO: +30 [2025-04-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (245,16,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:08] Production.INFO: next invoice date [2025-04-08 00:00:08] Production.INFO: 2025-05-08 [2025-04-08 00:00:08] Production.INFO: getdaysdiff [2025-04-08 00:00:08] Production.INFO: +30 [2025-04-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (245,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:08] Production.INFO: next invoice date [2025-04-08 00:00:08] Production.INFO: 2025-05-08 [2025-04-08 00:00:08] Production.INFO: getdaysdiff [2025-04-08 00:00:08] Production.INFO: +30 [2025-04-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:09] Production.INFO: next invoice date [2025-04-08 00:00:09] Production.INFO: 2025-05-08 [2025-04-08 00:00:09] Production.INFO: getdaysdiff [2025-04-08 00:00:09] Production.INFO: +30 [2025-04-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:09] Production.INFO: next invoice date [2025-04-08 00:00:09] Production.INFO: 2025-05-08 [2025-04-08 00:00:09] Production.INFO: getdaysdiff [2025-04-08 00:00:09] Production.INFO: +30 [2025-04-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (250,16,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:09] Production.INFO: next invoice date [2025-04-08 00:00:09] Production.INFO: 2025-05-08 [2025-04-08 00:00:09] Production.INFO: getdaysdiff [2025-04-08 00:00:09] Production.INFO: +30 [2025-04-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (250,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:09] Production.INFO: next invoice date [2025-04-08 00:00:09] Production.INFO: 2025-05-08 [2025-04-08 00:00:09] Production.INFO: getdaysdiff [2025-04-08 00:00:09] Production.INFO: +30 [2025-04-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (251,16,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:09] Production.INFO: next invoice date [2025-04-08 00:00:09] Production.INFO: 2025-05-08 [2025-04-08 00:00:09] Production.INFO: getdaysdiff [2025-04-08 00:00:09] Production.INFO: +30 [2025-04-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (251,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:09] Production.INFO: next invoice date [2025-04-08 00:00:09] Production.INFO: 2025-05-08 [2025-04-08 00:00:09] Production.INFO: getdaysdiff [2025-04-08 00:00:09] Production.INFO: +30 [2025-04-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (254,16,1,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:09] Production.INFO: next invoice date [2025-04-08 00:00:09] Production.INFO: 2025-05-08 [2025-04-08 00:00:09] Production.INFO: getdaysdiff [2025-04-08 00:00:09] Production.INFO: +30 [2025-04-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (254,13,2,30,30,'RMScheduler',2025-04-08 00:00:05,1,0,,,0) [2025-04-08 00:00:11] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:00:11 [end_date_ymd] => 2025-04-08 00:00:11 [RateCDR] => 1 ) [2025-04-08 00:00:11] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 21:00:11' and `end` < '2025-04-08 00:00:11' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 00:00:24] Production.INFO: count ==885 [2025-04-08 00:00:24] Production.ERROR: pbx CDR StartTime 2025-04-07 21:00:11 - End Time 2025-04-08 00:00:11 [2025-04-08 00:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858385', 'tblTempUsageDetail_20' ) start [2025-04-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858385', 'tblTempUsageDetail_20' ) end [2025-04-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858385', 'tblTempVendorCDR_20' ) start [2025-04-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858385', 'tblTempVendorCDR_20' ) end [2025-04-08 00:00:24] Production.INFO: ProcessCDR(1,14858385,1,1,2) [2025-04-08 00:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858385', 'tblTempUsageDetail_20' ) start [2025-04-08 00:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858385', 'tblTempUsageDetail_20' ) end [2025-04-08 00:00:29] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:00:29] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:00:30] Production.INFO: ==9109== Releasing lock... [2025-04-08 00:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:00:30] Production.INFO: 37.25 MB #Memory Used# [2025-04-08 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:01:06 [end_date_ymd] => 2025-04-08 00:01:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:01:06' and `end` < '2025-04-08 00: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-04-08 00:01:19] Production.INFO: count ==540 [2025-04-08 00:01:20] Production.ERROR: pbx CDR StartTime 2025-04-07 21:01:06 - End Time 2025-04-08 00:01:06 [2025-04-08 00:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858390', 'tblTempUsageDetail_20' ) start [2025-04-08 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858390', 'tblTempUsageDetail_20' ) end [2025-04-08 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858390', 'tblTempVendorCDR_20' ) start [2025-04-08 00:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858390', 'tblTempVendorCDR_20' ) end [2025-04-08 00:01:20] Production.INFO: ProcessCDR(1,14858390,1,1,2) [2025-04-08 00:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858390', 'tblTempUsageDetail_20' ) start [2025-04-08 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858390', 'tblTempUsageDetail_20' ) end [2025-04-08 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:01:25] Production.INFO: ==9223== Releasing lock... [2025-04-08 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:01:25] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:02:05 [end_date_ymd] => 2025-04-08 00:02:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:02:05' and `end` < '2025-04-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-04-08 00:02:18] Production.INFO: count ==537 [2025-04-08 00:02:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:02:05 - End Time 2025-04-08 00:02:05 [2025-04-08 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858395', 'tblTempUsageDetail_20' ) start [2025-04-08 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858395', 'tblTempUsageDetail_20' ) end [2025-04-08 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858395', 'tblTempVendorCDR_20' ) start [2025-04-08 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858395', 'tblTempVendorCDR_20' ) end [2025-04-08 00:02:18] Production.INFO: ProcessCDR(1,14858395,1,1,2) [2025-04-08 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858395', 'tblTempUsageDetail_20' ) start [2025-04-08 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858395', 'tblTempUsageDetail_20' ) end [2025-04-08 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:02:22] Production.INFO: ==9313== Releasing lock... [2025-04-08 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:02:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:03:05 [end_date_ymd] => 2025-04-08 00:03:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:03:05' and `end` < '2025-04-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-04-08 00:03:18] Production.INFO: count ==540 [2025-04-08 00:03:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:03:05 - End Time 2025-04-08 00:03:05 [2025-04-08 00:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858400', 'tblTempUsageDetail_20' ) start [2025-04-08 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858400', 'tblTempUsageDetail_20' ) end [2025-04-08 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858400', 'tblTempVendorCDR_20' ) start [2025-04-08 00:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858400', 'tblTempVendorCDR_20' ) end [2025-04-08 00:03:19] Production.INFO: ProcessCDR(1,14858400,1,1,2) [2025-04-08 00:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858400', 'tblTempUsageDetail_20' ) start [2025-04-08 00:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858400', 'tblTempUsageDetail_20' ) end [2025-04-08 00:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:03:22] Production.INFO: ==9408== Releasing lock... [2025-04-08 00:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:03:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:04:06 [end_date_ymd] => 2025-04-08 00:04:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:04:06' and `end` < '2025-04-08 00: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-04-08 00:04:29] Production.INFO: count ==545 [2025-04-08 00:04:29] Production.ERROR: pbx CDR StartTime 2025-04-07 21:04:06 - End Time 2025-04-08 00:04:06 [2025-04-08 00:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858405', 'tblTempUsageDetail_20' ) start [2025-04-08 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858405', 'tblTempUsageDetail_20' ) end [2025-04-08 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858405', 'tblTempVendorCDR_20' ) start [2025-04-08 00:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858405', 'tblTempVendorCDR_20' ) end [2025-04-08 00:04:29] Production.INFO: ProcessCDR(1,14858405,1,1,2) [2025-04-08 00:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858405', 'tblTempUsageDetail_20' ) start [2025-04-08 00:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858405', 'tblTempUsageDetail_20' ) end [2025-04-08 00:04:33] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:04:33] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:04:33] Production.INFO: ==9495== Releasing lock... [2025-04-08 00:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:04:33] Production.INFO: 33 MB #Memory Used# [2025-04-08 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:05:05 [end_date_ymd] => 2025-04-08 00:05:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:05:05' and `end` < '2025-04-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-04-08 00:05:29] Production.INFO: count ==544 [2025-04-08 00:05:29] Production.ERROR: pbx CDR StartTime 2025-04-07 21:05:05 - End Time 2025-04-08 00:05:05 [2025-04-08 00:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858410', 'tblTempUsageDetail_20' ) start [2025-04-08 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858410', 'tblTempUsageDetail_20' ) end [2025-04-08 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858410', 'tblTempVendorCDR_20' ) start [2025-04-08 00:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858410', 'tblTempVendorCDR_20' ) end [2025-04-08 00:05:29] Production.INFO: ProcessCDR(1,14858410,1,1,2) [2025-04-08 00:05:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858410', 'tblTempUsageDetail_20' ) start [2025-04-08 00:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858410', 'tblTempUsageDetail_20' ) end [2025-04-08 00:05:32] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:05:32] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:05:32] Production.INFO: ==9585== Releasing lock... [2025-04-08 00:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:05:32] Production.INFO: 33 MB #Memory Used# [2025-04-08 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:06:06 [end_date_ymd] => 2025-04-08 00:06:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:06:06' and `end` < '2025-04-08 00: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-04-08 00:06:28] Production.INFO: count ==544 [2025-04-08 00:06:28] Production.ERROR: pbx CDR StartTime 2025-04-07 21:06:06 - End Time 2025-04-08 00:06:06 [2025-04-08 00:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858415', 'tblTempUsageDetail_20' ) start [2025-04-08 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858415', 'tblTempUsageDetail_20' ) end [2025-04-08 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858415', 'tblTempVendorCDR_20' ) start [2025-04-08 00:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858415', 'tblTempVendorCDR_20' ) end [2025-04-08 00:06:28] Production.INFO: ProcessCDR(1,14858415,1,1,2) [2025-04-08 00:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:06:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:06:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:06:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858415', 'tblTempUsageDetail_20' ) start [2025-04-08 00:06:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858415', 'tblTempUsageDetail_20' ) end [2025-04-08 00:06:31] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:06:31] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:06:31] Production.INFO: ==9677== Releasing lock... [2025-04-08 00:06:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:06:31] Production.INFO: 33 MB #Memory Used# [2025-04-08 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:07:05 [end_date_ymd] => 2025-04-08 00:07:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:07:05' and `end` < '2025-04-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-04-08 00:07:26] Production.INFO: count ==541 [2025-04-08 00:07:27] Production.ERROR: pbx CDR StartTime 2025-04-07 21:07:05 - End Time 2025-04-08 00:07:05 [2025-04-08 00:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858420', 'tblTempUsageDetail_20' ) start [2025-04-08 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858420', 'tblTempUsageDetail_20' ) end [2025-04-08 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858420', 'tblTempVendorCDR_20' ) start [2025-04-08 00:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858420', 'tblTempVendorCDR_20' ) end [2025-04-08 00:07:27] Production.INFO: ProcessCDR(1,14858420,1,1,2) [2025-04-08 00:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:07:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:07:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858420', 'tblTempUsageDetail_20' ) start [2025-04-08 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858420', 'tblTempUsageDetail_20' ) end [2025-04-08 00:07:30] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:07:30] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:07:30] Production.INFO: ==9805== Releasing lock... [2025-04-08 00:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:07:30] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:08:06 [end_date_ymd] => 2025-04-08 00:08:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:08:06' and `end` < '2025-04-08 00: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-04-08 00:08:19] Production.INFO: count ==541 [2025-04-08 00:08:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:08:06 - End Time 2025-04-08 00:08:06 [2025-04-08 00:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858425', 'tblTempUsageDetail_20' ) start [2025-04-08 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858425', 'tblTempUsageDetail_20' ) end [2025-04-08 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858425', 'tblTempVendorCDR_20' ) start [2025-04-08 00:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858425', 'tblTempVendorCDR_20' ) end [2025-04-08 00:08:19] Production.INFO: ProcessCDR(1,14858425,1,1,2) [2025-04-08 00:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858425', 'tblTempUsageDetail_20' ) start [2025-04-08 00:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858425', 'tblTempUsageDetail_20' ) end [2025-04-08 00:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:08:23] Production.INFO: ==9897== Releasing lock... [2025-04-08 00:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:08:23] Production.INFO: 33 MB #Memory Used# [2025-04-08 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:09:05 [end_date_ymd] => 2025-04-08 00:09:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:09:05' and `end` < '2025-04-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-04-08 00:09:18] Production.INFO: count ==538 [2025-04-08 00:09:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:09:05 - End Time 2025-04-08 00:09:05 [2025-04-08 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858430', 'tblTempUsageDetail_20' ) start [2025-04-08 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858430', 'tblTempUsageDetail_20' ) end [2025-04-08 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858430', 'tblTempVendorCDR_20' ) start [2025-04-08 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858430', 'tblTempVendorCDR_20' ) end [2025-04-08 00:09:18] Production.INFO: ProcessCDR(1,14858430,1,1,2) [2025-04-08 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858430', 'tblTempUsageDetail_20' ) start [2025-04-08 00:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858430', 'tblTempUsageDetail_20' ) end [2025-04-08 00:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:09:22] Production.INFO: ==9987== Releasing lock... [2025-04-08 00:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:10:06 [end_date_ymd] => 2025-04-08 00:10:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:10:06' and `end` < '2025-04-08 00: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-04-08 00:10:19] Production.INFO: count ==535 [2025-04-08 00:10:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:10:06 - End Time 2025-04-08 00:10:06 [2025-04-08 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858436', 'tblTempUsageDetail_20' ) start [2025-04-08 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858436', 'tblTempUsageDetail_20' ) end [2025-04-08 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858436', 'tblTempVendorCDR_20' ) start [2025-04-08 00:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858436', 'tblTempVendorCDR_20' ) end [2025-04-08 00:10:20] Production.INFO: ProcessCDR(1,14858436,1,1,2) [2025-04-08 00:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858436', 'tblTempUsageDetail_20' ) start [2025-04-08 00:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858436', 'tblTempUsageDetail_20' ) end [2025-04-08 00:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:10:23] Production.INFO: ==10080== Releasing lock... [2025-04-08 00:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:10:23] Production.INFO: 33 MB #Memory Used# [2025-04-08 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:11:05 [end_date_ymd] => 2025-04-08 00:11:05 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:11:05' and `end` < '2025-04-08 00: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-04-08 00:11:18] Production.INFO: count ==559 [2025-04-08 00:11:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:11:05 - End Time 2025-04-08 00:11:05 [2025-04-08 00:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858441', 'tblTempUsageDetail_20' ) start [2025-04-08 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858441', 'tblTempUsageDetail_20' ) end [2025-04-08 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858441', 'tblTempVendorCDR_20' ) start [2025-04-08 00:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858441', 'tblTempVendorCDR_20' ) end [2025-04-08 00:11:19] Production.INFO: ProcessCDR(1,14858441,1,1,2) [2025-04-08 00:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858441', 'tblTempUsageDetail_20' ) start [2025-04-08 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858441', 'tblTempUsageDetail_20' ) end [2025-04-08 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:11:22] Production.INFO: ==10180== Releasing lock... [2025-04-08 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:11:22] Production.INFO: 33 MB #Memory Used# [2025-04-08 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:12:06 [end_date_ymd] => 2025-04-08 00:12:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:12:06' and `end` < '2025-04-08 00: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-04-08 00:12:19] Production.INFO: count ==552 [2025-04-08 00:12:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:12:06 - End Time 2025-04-08 00:12:06 [2025-04-08 00:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858446', 'tblTempUsageDetail_20' ) start [2025-04-08 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858446', 'tblTempUsageDetail_20' ) end [2025-04-08 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858446', 'tblTempVendorCDR_20' ) start [2025-04-08 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858446', 'tblTempVendorCDR_20' ) end [2025-04-08 00:12:19] Production.INFO: ProcessCDR(1,14858446,1,1,2) [2025-04-08 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858446', 'tblTempUsageDetail_20' ) start [2025-04-08 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858446', 'tblTempUsageDetail_20' ) end [2025-04-08 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:12:22] Production.INFO: ==10273== Releasing lock... [2025-04-08 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:12:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:13:05 [end_date_ymd] => 2025-04-08 00:13:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:13:05' and `end` < '2025-04-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-04-08 00:13:18] Production.INFO: count ==543 [2025-04-08 00:13:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:13:05 - End Time 2025-04-08 00:13:05 [2025-04-08 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858451', 'tblTempUsageDetail_20' ) start [2025-04-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858451', 'tblTempUsageDetail_20' ) end [2025-04-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858451', 'tblTempVendorCDR_20' ) start [2025-04-08 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858451', 'tblTempVendorCDR_20' ) end [2025-04-08 00:13:18] Production.INFO: ProcessCDR(1,14858451,1,1,2) [2025-04-08 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858451', 'tblTempUsageDetail_20' ) start [2025-04-08 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858451', 'tblTempUsageDetail_20' ) end [2025-04-08 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:13:21] Production.INFO: ==10363== Releasing lock... [2025-04-08 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:13:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:14:06 [end_date_ymd] => 2025-04-08 00:14:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:14:06' and `end` < '2025-04-08 00: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-04-08 00:14:19] Production.INFO: count ==535 [2025-04-08 00:14:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:14:06 - End Time 2025-04-08 00:14:06 [2025-04-08 00:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858456', 'tblTempUsageDetail_20' ) start [2025-04-08 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858456', 'tblTempUsageDetail_20' ) end [2025-04-08 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858456', 'tblTempVendorCDR_20' ) start [2025-04-08 00:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858456', 'tblTempVendorCDR_20' ) end [2025-04-08 00:14:19] Production.INFO: ProcessCDR(1,14858456,1,1,2) [2025-04-08 00:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858456', 'tblTempUsageDetail_20' ) start [2025-04-08 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858456', 'tblTempUsageDetail_20' ) end [2025-04-08 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:14:22] Production.INFO: ==10455== Releasing lock... [2025-04-08 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:14:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:15:05 [end_date_ymd] => 2025-04-08 00:15:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:15:05' and `end` < '2025-04-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-04-08 00:15:18] Production.INFO: count ==525 [2025-04-08 00:15:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:15:05 - End Time 2025-04-08 00:15:05 [2025-04-08 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858461', 'tblTempUsageDetail_20' ) start [2025-04-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858461', 'tblTempUsageDetail_20' ) end [2025-04-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858461', 'tblTempVendorCDR_20' ) start [2025-04-08 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858461', 'tblTempVendorCDR_20' ) end [2025-04-08 00:15:18] Production.INFO: ProcessCDR(1,14858461,1,1,2) [2025-04-08 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858461', 'tblTempUsageDetail_20' ) start [2025-04-08 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858461', 'tblTempUsageDetail_20' ) end [2025-04-08 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:15:21] Production.INFO: ==10553== Releasing lock... [2025-04-08 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:15:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:16:06 [end_date_ymd] => 2025-04-08 00:16:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:16:06' and `end` < '2025-04-08 00: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-04-08 00:16:18] Production.INFO: count ==530 [2025-04-08 00:16:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:16:06 - End Time 2025-04-08 00:16:06 [2025-04-08 00:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858466', 'tblTempUsageDetail_20' ) start [2025-04-08 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858466', 'tblTempUsageDetail_20' ) end [2025-04-08 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858466', 'tblTempVendorCDR_20' ) start [2025-04-08 00:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858466', 'tblTempVendorCDR_20' ) end [2025-04-08 00:16:19] Production.INFO: ProcessCDR(1,14858466,1,1,2) [2025-04-08 00:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858466', 'tblTempUsageDetail_20' ) start [2025-04-08 00:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858466', 'tblTempUsageDetail_20' ) end [2025-04-08 00:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:16:22] Production.INFO: ==10644== Releasing lock... [2025-04-08 00:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:16:22] Production.INFO: 33 MB #Memory Used# [2025-04-08 00:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:17:04 [end_date_ymd] => 2025-04-08 00:17:04 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:17:04' and `end` < '2025-04-08 00: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-04-08 00:17:17] Production.INFO: count ==534 [2025-04-08 00:17:17] Production.ERROR: pbx CDR StartTime 2025-04-07 21:17:04 - End Time 2025-04-08 00:17:04 [2025-04-08 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858471', 'tblTempUsageDetail_20' ) start [2025-04-08 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858471', 'tblTempUsageDetail_20' ) end [2025-04-08 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858471', 'tblTempVendorCDR_20' ) start [2025-04-08 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858471', 'tblTempVendorCDR_20' ) end [2025-04-08 00:17:17] Production.INFO: ProcessCDR(1,14858471,1,1,2) [2025-04-08 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858471', 'tblTempUsageDetail_20' ) start [2025-04-08 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858471', 'tblTempUsageDetail_20' ) end [2025-04-08 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:17:21] Production.INFO: ==10735== Releasing lock... [2025-04-08 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:17:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:18:06 [end_date_ymd] => 2025-04-08 00:18:06 [RateCDR] => 1 ) [2025-04-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-04-07 21:18:06' and `end` < '2025-04-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-04-08 00:18:19] Production.INFO: count ==528 [2025-04-08 00:18:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:18:06 - End Time 2025-04-08 00:18:06 [2025-04-08 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858476', 'tblTempUsageDetail_20' ) start [2025-04-08 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858476', 'tblTempUsageDetail_20' ) end [2025-04-08 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858476', 'tblTempVendorCDR_20' ) start [2025-04-08 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858476', 'tblTempVendorCDR_20' ) end [2025-04-08 00:18:19] Production.INFO: ProcessCDR(1,14858476,1,1,2) [2025-04-08 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858476', 'tblTempUsageDetail_20' ) start [2025-04-08 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858476', 'tblTempUsageDetail_20' ) end [2025-04-08 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:18:22] Production.INFO: ==10825== Releasing lock... [2025-04-08 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:18:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:19:05 [end_date_ymd] => 2025-04-08 00:19:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:19:05' and `end` < '2025-04-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-04-08 00:19:18] Production.INFO: count ==527 [2025-04-08 00:19:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:19:05 - End Time 2025-04-08 00:19:05 [2025-04-08 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858481', 'tblTempUsageDetail_20' ) start [2025-04-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858481', 'tblTempUsageDetail_20' ) end [2025-04-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858481', 'tblTempVendorCDR_20' ) start [2025-04-08 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858481', 'tblTempVendorCDR_20' ) end [2025-04-08 00:19:18] Production.INFO: ProcessCDR(1,14858481,1,1,2) [2025-04-08 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858481', 'tblTempUsageDetail_20' ) start [2025-04-08 00:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858481', 'tblTempUsageDetail_20' ) end [2025-04-08 00:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:19:22] Production.INFO: ==10920== Releasing lock... [2025-04-08 00:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:19:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:20:05 [end_date_ymd] => 2025-04-08 00:20:05 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:20:05' and `end` < '2025-04-08 00: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-04-08 00:20:18] Production.INFO: count ==527 [2025-04-08 00:20:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:20:05 - End Time 2025-04-08 00:20:05 [2025-04-08 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858487', 'tblTempUsageDetail_20' ) start [2025-04-08 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858487', 'tblTempUsageDetail_20' ) end [2025-04-08 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858487', 'tblTempVendorCDR_20' ) start [2025-04-08 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858487', 'tblTempVendorCDR_20' ) end [2025-04-08 00:20:18] Production.INFO: ProcessCDR(1,14858487,1,1,2) [2025-04-08 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858487', 'tblTempUsageDetail_20' ) start [2025-04-08 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858487', 'tblTempUsageDetail_20' ) end [2025-04-08 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:20:22] Production.INFO: ==11009== Releasing lock... [2025-04-08 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:20:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:21:05 [end_date_ymd] => 2025-04-08 00:21:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:21:05' and `end` < '2025-04-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-04-08 00:21:18] Production.INFO: count ==526 [2025-04-08 00:21:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:21:05 - End Time 2025-04-08 00:21:05 [2025-04-08 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858492', 'tblTempUsageDetail_20' ) start [2025-04-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858492', 'tblTempUsageDetail_20' ) end [2025-04-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858492', 'tblTempVendorCDR_20' ) start [2025-04-08 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858492', 'tblTempVendorCDR_20' ) end [2025-04-08 00:21:18] Production.INFO: ProcessCDR(1,14858492,1,1,2) [2025-04-08 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858492', 'tblTempUsageDetail_20' ) start [2025-04-08 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858492', 'tblTempUsageDetail_20' ) end [2025-04-08 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:21:22] Production.INFO: ==11105== Releasing lock... [2025-04-08 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:21:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:22:05 [end_date_ymd] => 2025-04-08 00:22:05 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:22:05' and `end` < '2025-04-08 00: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-04-08 00:22:17] Production.INFO: count ==525 [2025-04-08 00:22:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:22:05 - End Time 2025-04-08 00:22:05 [2025-04-08 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858497', 'tblTempUsageDetail_20' ) start [2025-04-08 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858497', 'tblTempUsageDetail_20' ) end [2025-04-08 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858497', 'tblTempVendorCDR_20' ) start [2025-04-08 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858497', 'tblTempVendorCDR_20' ) end [2025-04-08 00:22:18] Production.INFO: ProcessCDR(1,14858497,1,1,2) [2025-04-08 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858497', 'tblTempUsageDetail_20' ) start [2025-04-08 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858497', 'tblTempUsageDetail_20' ) end [2025-04-08 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:22:21] Production.INFO: ==11234== Releasing lock... [2025-04-08 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:22:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 00:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:23:06 [end_date_ymd] => 2025-04-08 00:23:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:23:06' and `end` < '2025-04-08 00: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-04-08 00:23:18] Production.INFO: count ==525 [2025-04-08 00:23:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:23:06 - End Time 2025-04-08 00:23:06 [2025-04-08 00:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858502', 'tblTempUsageDetail_20' ) start [2025-04-08 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858502', 'tblTempUsageDetail_20' ) end [2025-04-08 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858502', 'tblTempVendorCDR_20' ) start [2025-04-08 00:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858502', 'tblTempVendorCDR_20' ) end [2025-04-08 00:23:19] Production.INFO: ProcessCDR(1,14858502,1,1,2) [2025-04-08 00:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858502', 'tblTempUsageDetail_20' ) start [2025-04-08 00:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858502', 'tblTempUsageDetail_20' ) end [2025-04-08 00:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:23:22] Production.INFO: ==11327== Releasing lock... [2025-04-08 00:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:23:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:24:05 [end_date_ymd] => 2025-04-08 00:24:05 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:24:05' and `end` < '2025-04-08 00: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-04-08 00:24:18] Production.INFO: count ==522 [2025-04-08 00:24:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:24:05 - End Time 2025-04-08 00:24:05 [2025-04-08 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858507', 'tblTempUsageDetail_20' ) start [2025-04-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858507', 'tblTempUsageDetail_20' ) end [2025-04-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858507', 'tblTempVendorCDR_20' ) start [2025-04-08 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858507', 'tblTempVendorCDR_20' ) end [2025-04-08 00:24:18] Production.INFO: ProcessCDR(1,14858507,1,1,2) [2025-04-08 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858507', 'tblTempUsageDetail_20' ) start [2025-04-08 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858507', 'tblTempUsageDetail_20' ) end [2025-04-08 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:24:21] Production.INFO: ==11420== Releasing lock... [2025-04-08 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:24:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:25:05 [end_date_ymd] => 2025-04-08 00:25:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:25:05' and `end` < '2025-04-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-04-08 00:25:18] Production.INFO: count ==521 [2025-04-08 00:25:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:25:05 - End Time 2025-04-08 00:25:05 [2025-04-08 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858512', 'tblTempUsageDetail_20' ) start [2025-04-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858512', 'tblTempUsageDetail_20' ) end [2025-04-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858512', 'tblTempVendorCDR_20' ) start [2025-04-08 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858512', 'tblTempVendorCDR_20' ) end [2025-04-08 00:25:18] Production.INFO: ProcessCDR(1,14858512,1,1,2) [2025-04-08 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858512', 'tblTempUsageDetail_20' ) start [2025-04-08 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858512', 'tblTempUsageDetail_20' ) end [2025-04-08 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:25:21] Production.INFO: ==11513== Releasing lock... [2025-04-08 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:25:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:26:05 [end_date_ymd] => 2025-04-08 00:26:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:26:05' and `end` < '2025-04-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-04-08 00:26:18] Production.INFO: count ==520 [2025-04-08 00:26:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:26:05 - End Time 2025-04-08 00:26:05 [2025-04-08 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858517', 'tblTempUsageDetail_20' ) start [2025-04-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858517', 'tblTempUsageDetail_20' ) end [2025-04-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858517', 'tblTempVendorCDR_20' ) start [2025-04-08 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858517', 'tblTempVendorCDR_20' ) end [2025-04-08 00:26:18] Production.INFO: ProcessCDR(1,14858517,1,1,2) [2025-04-08 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858517', 'tblTempUsageDetail_20' ) start [2025-04-08 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858517', 'tblTempUsageDetail_20' ) end [2025-04-08 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:26:21] Production.INFO: ==11604== Releasing lock... [2025-04-08 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:26:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:27:05 [end_date_ymd] => 2025-04-08 00:27:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:27:05' and `end` < '2025-04-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-04-08 00:27:18] Production.INFO: count ==507 [2025-04-08 00:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:27:05 - End Time 2025-04-08 00:27:05 [2025-04-08 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858522', 'tblTempUsageDetail_20' ) start [2025-04-08 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858522', 'tblTempUsageDetail_20' ) end [2025-04-08 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858522', 'tblTempVendorCDR_20' ) start [2025-04-08 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858522', 'tblTempVendorCDR_20' ) end [2025-04-08 00:27:18] Production.INFO: ProcessCDR(1,14858522,1,1,2) [2025-04-08 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858522', 'tblTempUsageDetail_20' ) start [2025-04-08 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858522', 'tblTempUsageDetail_20' ) end [2025-04-08 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:27:21] Production.INFO: ==11696== Releasing lock... [2025-04-08 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 00:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:28:06 [end_date_ymd] => 2025-04-08 00:28:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:28:06' and `end` < '2025-04-08 00: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-04-08 00:28:19] Production.INFO: count ==505 [2025-04-08 00:28:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:28:06 - End Time 2025-04-08 00:28:06 [2025-04-08 00:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858527', 'tblTempUsageDetail_20' ) start [2025-04-08 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858527', 'tblTempUsageDetail_20' ) end [2025-04-08 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858527', 'tblTempVendorCDR_20' ) start [2025-04-08 00:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858527', 'tblTempVendorCDR_20' ) end [2025-04-08 00:28:19] Production.INFO: ProcessCDR(1,14858527,1,1,2) [2025-04-08 00:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858527', 'tblTempUsageDetail_20' ) start [2025-04-08 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858527', 'tblTempUsageDetail_20' ) end [2025-04-08 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:28:22] Production.INFO: ==11785== Releasing lock... [2025-04-08 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:28:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:29:05 [end_date_ymd] => 2025-04-08 00:29:05 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:29:05' and `end` < '2025-04-08 00: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-04-08 00:29:18] Production.INFO: count ==501 [2025-04-08 00:29:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:29:05 - End Time 2025-04-08 00:29:05 [2025-04-08 00:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858532', 'tblTempUsageDetail_20' ) start [2025-04-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858532', 'tblTempUsageDetail_20' ) end [2025-04-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858532', 'tblTempVendorCDR_20' ) start [2025-04-08 00:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858532', 'tblTempVendorCDR_20' ) end [2025-04-08 00:29:18] Production.INFO: ProcessCDR(1,14858532,1,1,2) [2025-04-08 00:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858532', 'tblTempUsageDetail_20' ) start [2025-04-08 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858532', 'tblTempUsageDetail_20' ) end [2025-04-08 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:29:21] Production.INFO: ==11882== Releasing lock... [2025-04-08 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:29:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:30:06 [end_date_ymd] => 2025-04-08 00:30:06 [RateCDR] => 1 ) [2025-04-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-04-07 21:30:06' and `end` < '2025-04-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-04-08 00:30:19] Production.INFO: count ==510 [2025-04-08 00:30:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:30:06 - End Time 2025-04-08 00:30:06 [2025-04-08 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858538', 'tblTempUsageDetail_20' ) start [2025-04-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858538', 'tblTempUsageDetail_20' ) end [2025-04-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858538', 'tblTempVendorCDR_20' ) start [2025-04-08 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858538', 'tblTempVendorCDR_20' ) end [2025-04-08 00:30:19] Production.INFO: ProcessCDR(1,14858538,1,1,2) [2025-04-08 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858538', 'tblTempUsageDetail_20' ) start [2025-04-08 00:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858538', 'tblTempUsageDetail_20' ) end [2025-04-08 00:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:30:23] Production.INFO: ==11989== Releasing lock... [2025-04-08 00:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:30:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:31:06 [end_date_ymd] => 2025-04-08 00:31:06 [RateCDR] => 1 ) [2025-04-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-04-07 21:31:06' and `end` < '2025-04-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-04-08 00:31:19] Production.INFO: count ==512 [2025-04-08 00:31:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:31:06 - End Time 2025-04-08 00:31:06 [2025-04-08 00:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858543', 'tblTempUsageDetail_20' ) start [2025-04-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858543', 'tblTempUsageDetail_20' ) end [2025-04-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858543', 'tblTempVendorCDR_20' ) start [2025-04-08 00:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858543', 'tblTempVendorCDR_20' ) end [2025-04-08 00:31:19] Production.INFO: ProcessCDR(1,14858543,1,1,2) [2025-04-08 00:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858543', 'tblTempUsageDetail_20' ) start [2025-04-08 00:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858543', 'tblTempUsageDetail_20' ) end [2025-04-08 00:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:31:22] Production.INFO: ==12081== Releasing lock... [2025-04-08 00:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:31:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:32:06 [end_date_ymd] => 2025-04-08 00:32:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:32:06' and `end` < '2025-04-08 00: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-04-08 00:32:19] Production.INFO: count ==510 [2025-04-08 00:32:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:32:06 - End Time 2025-04-08 00:32:06 [2025-04-08 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858548', 'tblTempUsageDetail_20' ) start [2025-04-08 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858548', 'tblTempUsageDetail_20' ) end [2025-04-08 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858548', 'tblTempVendorCDR_20' ) start [2025-04-08 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858548', 'tblTempVendorCDR_20' ) end [2025-04-08 00:32:19] Production.INFO: ProcessCDR(1,14858548,1,1,2) [2025-04-08 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858548', 'tblTempUsageDetail_20' ) start [2025-04-08 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858548', 'tblTempUsageDetail_20' ) end [2025-04-08 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:32:22] Production.INFO: ==12171== Releasing lock... [2025-04-08 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:33:05 [end_date_ymd] => 2025-04-08 00:33:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:33:05' and `end` < '2025-04-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-04-08 00:33:17] Production.INFO: count ==510 [2025-04-08 00:33:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:33:05 - End Time 2025-04-08 00:33:05 [2025-04-08 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858553', 'tblTempUsageDetail_20' ) start [2025-04-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858553', 'tblTempUsageDetail_20' ) end [2025-04-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858553', 'tblTempVendorCDR_20' ) start [2025-04-08 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858553', 'tblTempVendorCDR_20' ) end [2025-04-08 00:33:18] Production.INFO: ProcessCDR(1,14858553,1,1,2) [2025-04-08 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858553', 'tblTempUsageDetail_20' ) start [2025-04-08 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858553', 'tblTempUsageDetail_20' ) end [2025-04-08 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:33:21] Production.INFO: ==12260== Releasing lock... [2025-04-08 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:33:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:34:06 [end_date_ymd] => 2025-04-08 00:34:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:34:06' and `end` < '2025-04-08 00: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-04-08 00:34:19] Production.INFO: count ==510 [2025-04-08 00:34:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:34:06 - End Time 2025-04-08 00:34:06 [2025-04-08 00:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858558', 'tblTempUsageDetail_20' ) start [2025-04-08 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858558', 'tblTempUsageDetail_20' ) end [2025-04-08 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858558', 'tblTempVendorCDR_20' ) start [2025-04-08 00:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858558', 'tblTempVendorCDR_20' ) end [2025-04-08 00:34:19] Production.INFO: ProcessCDR(1,14858558,1,1,2) [2025-04-08 00:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858558', 'tblTempUsageDetail_20' ) start [2025-04-08 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858558', 'tblTempUsageDetail_20' ) end [2025-04-08 00:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:34:23] Production.INFO: ==12351== Releasing lock... [2025-04-08 00:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:34:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:35:05 [end_date_ymd] => 2025-04-08 00:35:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:35:05' and `end` < '2025-04-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-04-08 00:35:18] Production.INFO: count ==507 [2025-04-08 00:35:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:35:05 - End Time 2025-04-08 00:35:05 [2025-04-08 00:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858563', 'tblTempUsageDetail_20' ) start [2025-04-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858563', 'tblTempUsageDetail_20' ) end [2025-04-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858563', 'tblTempVendorCDR_20' ) start [2025-04-08 00:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858563', 'tblTempVendorCDR_20' ) end [2025-04-08 00:35:18] Production.INFO: ProcessCDR(1,14858563,1,1,2) [2025-04-08 00:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858563', 'tblTempUsageDetail_20' ) start [2025-04-08 00:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858563', 'tblTempUsageDetail_20' ) end [2025-04-08 00:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:35:23] Production.INFO: ==12447== Releasing lock... [2025-04-08 00:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:35:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:36:06 [end_date_ymd] => 2025-04-08 00:36:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:36:06' and `end` < '2025-04-08 00: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-04-08 00:36:19] Production.INFO: count ==510 [2025-04-08 00:36:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:36:06 - End Time 2025-04-08 00:36:06 [2025-04-08 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858568', 'tblTempUsageDetail_20' ) start [2025-04-08 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858568', 'tblTempUsageDetail_20' ) end [2025-04-08 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858568', 'tblTempVendorCDR_20' ) start [2025-04-08 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858568', 'tblTempVendorCDR_20' ) end [2025-04-08 00:36:19] Production.INFO: ProcessCDR(1,14858568,1,1,2) [2025-04-08 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858568', 'tblTempUsageDetail_20' ) start [2025-04-08 00:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858568', 'tblTempUsageDetail_20' ) end [2025-04-08 00:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:36:23] Production.INFO: ==12539== Releasing lock... [2025-04-08 00:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:36:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:37:05 [end_date_ymd] => 2025-04-08 00:37:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:37:05' and `end` < '2025-04-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-04-08 00:37:18] Production.INFO: count ==506 [2025-04-08 00:37:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:37:05 - End Time 2025-04-08 00:37:05 [2025-04-08 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858573', 'tblTempUsageDetail_20' ) start [2025-04-08 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858573', 'tblTempUsageDetail_20' ) end [2025-04-08 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858573', 'tblTempVendorCDR_20' ) start [2025-04-08 00:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858573', 'tblTempVendorCDR_20' ) end [2025-04-08 00:37:19] Production.INFO: ProcessCDR(1,14858573,1,1,2) [2025-04-08 00:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858573', 'tblTempUsageDetail_20' ) start [2025-04-08 00:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858573', 'tblTempUsageDetail_20' ) end [2025-04-08 00:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:37:22] Production.INFO: ==12627== Releasing lock... [2025-04-08 00:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:37:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:38:05 [end_date_ymd] => 2025-04-08 00:38:05 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:38:05' and `end` < '2025-04-08 00: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-04-08 00:38:18] Production.INFO: count ==500 [2025-04-08 00:38:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:38:05 - End Time 2025-04-08 00:38:05 [2025-04-08 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858578', 'tblTempUsageDetail_20' ) start [2025-04-08 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858578', 'tblTempUsageDetail_20' ) end [2025-04-08 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858578', 'tblTempVendorCDR_20' ) start [2025-04-08 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858578', 'tblTempVendorCDR_20' ) end [2025-04-08 00:38:18] Production.INFO: ProcessCDR(1,14858578,1,1,2) [2025-04-08 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858578', 'tblTempUsageDetail_20' ) start [2025-04-08 00:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858578', 'tblTempUsageDetail_20' ) end [2025-04-08 00:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:38:22] Production.INFO: ==12757== Releasing lock... [2025-04-08 00:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:39:05 [end_date_ymd] => 2025-04-08 00:39:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:39:05' and `end` < '2025-04-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-04-08 00:39:18] Production.INFO: count ==500 [2025-04-08 00:39:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:39:05 - End Time 2025-04-08 00:39:05 [2025-04-08 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858583', 'tblTempUsageDetail_20' ) start [2025-04-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858583', 'tblTempUsageDetail_20' ) end [2025-04-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858583', 'tblTempVendorCDR_20' ) start [2025-04-08 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858583', 'tblTempVendorCDR_20' ) end [2025-04-08 00:39:18] Production.INFO: ProcessCDR(1,14858583,1,1,2) [2025-04-08 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858583', 'tblTempUsageDetail_20' ) start [2025-04-08 00:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858583', 'tblTempUsageDetail_20' ) end [2025-04-08 00:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:39:22] Production.INFO: ==12851== Releasing lock... [2025-04-08 00:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:39:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:40:06 [end_date_ymd] => 2025-04-08 00:40:06 [RateCDR] => 1 ) [2025-04-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-04-07 21:40:06' and `end` < '2025-04-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-04-08 00:40:19] Production.INFO: count ==510 [2025-04-08 00:40:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:40:06 - End Time 2025-04-08 00:40:06 [2025-04-08 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858588', 'tblTempUsageDetail_20' ) start [2025-04-08 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858588', 'tblTempUsageDetail_20' ) end [2025-04-08 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858588', 'tblTempVendorCDR_20' ) start [2025-04-08 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858588', 'tblTempVendorCDR_20' ) end [2025-04-08 00:40:19] Production.INFO: ProcessCDR(1,14858588,1,1,2) [2025-04-08 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858588', 'tblTempUsageDetail_20' ) start [2025-04-08 00:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858588', 'tblTempUsageDetail_20' ) end [2025-04-08 00:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:40:22] Production.INFO: ==12943== Releasing lock... [2025-04-08 00:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:40:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:41:05 [end_date_ymd] => 2025-04-08 00:41:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:41:05' and `end` < '2025-04-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-04-08 00:41:18] Production.INFO: count ==522 [2025-04-08 00:41:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:41:05 - End Time 2025-04-08 00:41:05 [2025-04-08 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858594', 'tblTempUsageDetail_20' ) start [2025-04-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858594', 'tblTempUsageDetail_20' ) end [2025-04-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858594', 'tblTempVendorCDR_20' ) start [2025-04-08 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858594', 'tblTempVendorCDR_20' ) end [2025-04-08 00:41:18] Production.INFO: ProcessCDR(1,14858594,1,1,2) [2025-04-08 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858594', 'tblTempUsageDetail_20' ) start [2025-04-08 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858594', 'tblTempUsageDetail_20' ) end [2025-04-08 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:41:21] Production.INFO: ==13041== Releasing lock... [2025-04-08 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:41:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:42:05 [end_date_ymd] => 2025-04-08 00:42:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:42:05' and `end` < '2025-04-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-04-08 00:42:18] Production.INFO: count ==527 [2025-04-08 00:42:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:42:05 - End Time 2025-04-08 00:42:05 [2025-04-08 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858599', 'tblTempUsageDetail_20' ) start [2025-04-08 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858599', 'tblTempUsageDetail_20' ) end [2025-04-08 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858599', 'tblTempVendorCDR_20' ) start [2025-04-08 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858599', 'tblTempVendorCDR_20' ) end [2025-04-08 00:42:18] Production.INFO: ProcessCDR(1,14858599,1,1,2) [2025-04-08 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858599', 'tblTempUsageDetail_20' ) start [2025-04-08 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858599', 'tblTempUsageDetail_20' ) end [2025-04-08 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:42:22] Production.INFO: ==13128== Releasing lock... [2025-04-08 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:42:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:43:05 [end_date_ymd] => 2025-04-08 00:43:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:43:05' and `end` < '2025-04-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-04-08 00:43:18] Production.INFO: count ==524 [2025-04-08 00:43:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:43:05 - End Time 2025-04-08 00:43:05 [2025-04-08 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858604', 'tblTempUsageDetail_20' ) start [2025-04-08 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858604', 'tblTempUsageDetail_20' ) end [2025-04-08 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858604', 'tblTempVendorCDR_20' ) start [2025-04-08 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858604', 'tblTempVendorCDR_20' ) end [2025-04-08 00:43:18] Production.INFO: ProcessCDR(1,14858604,1,1,2) [2025-04-08 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858604', 'tblTempUsageDetail_20' ) start [2025-04-08 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858604', 'tblTempUsageDetail_20' ) end [2025-04-08 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:43:21] Production.INFO: ==13225== Releasing lock... [2025-04-08 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:43:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:44:05 [end_date_ymd] => 2025-04-08 00:44:05 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:44:05' and `end` < '2025-04-08 00: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-04-08 00:44:18] Production.INFO: count ==508 [2025-04-08 00:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:44:05 - End Time 2025-04-08 00:44:05 [2025-04-08 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858609', 'tblTempUsageDetail_20' ) start [2025-04-08 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858609', 'tblTempUsageDetail_20' ) end [2025-04-08 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858609', 'tblTempVendorCDR_20' ) start [2025-04-08 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858609', 'tblTempVendorCDR_20' ) end [2025-04-08 00:44:18] Production.INFO: ProcessCDR(1,14858609,1,1,2) [2025-04-08 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858609', 'tblTempUsageDetail_20' ) start [2025-04-08 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858609', 'tblTempUsageDetail_20' ) end [2025-04-08 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:44:21] Production.INFO: ==13317== Releasing lock... [2025-04-08 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:45:05 [end_date_ymd] => 2025-04-08 00:45:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:45:05' and `end` < '2025-04-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-04-08 00:45:18] Production.INFO: count ==502 [2025-04-08 00:45:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:45:05 - End Time 2025-04-08 00:45:05 [2025-04-08 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858614', 'tblTempUsageDetail_20' ) start [2025-04-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858614', 'tblTempUsageDetail_20' ) end [2025-04-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858614', 'tblTempVendorCDR_20' ) start [2025-04-08 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858614', 'tblTempVendorCDR_20' ) end [2025-04-08 00:45:18] Production.INFO: ProcessCDR(1,14858614,1,1,2) [2025-04-08 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858614', 'tblTempUsageDetail_20' ) start [2025-04-08 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858614', 'tblTempUsageDetail_20' ) end [2025-04-08 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:45:21] Production.INFO: ==13411== Releasing lock... [2025-04-08 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:46:05 [end_date_ymd] => 2025-04-08 00:46:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:46:05' and `end` < '2025-04-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-04-08 00:46:18] Production.INFO: count ==495 [2025-04-08 00:46:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:46:05 - End Time 2025-04-08 00:46:05 [2025-04-08 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858619', 'tblTempUsageDetail_20' ) start [2025-04-08 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858619', 'tblTempUsageDetail_20' ) end [2025-04-08 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858619', 'tblTempVendorCDR_20' ) start [2025-04-08 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858619', 'tblTempVendorCDR_20' ) end [2025-04-08 00:46:18] Production.INFO: ProcessCDR(1,14858619,1,1,2) [2025-04-08 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858619', 'tblTempUsageDetail_20' ) start [2025-04-08 00:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858619', 'tblTempUsageDetail_20' ) end [2025-04-08 00:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:46:22] Production.INFO: ==13503== Releasing lock... [2025-04-08 00:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:46:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:47:06 [end_date_ymd] => 2025-04-08 00:47:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:47:06' and `end` < '2025-04-08 00: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-04-08 00:47:19] Production.INFO: count ==487 [2025-04-08 00:47:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:47:06 - End Time 2025-04-08 00:47:06 [2025-04-08 00:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858624', 'tblTempUsageDetail_20' ) start [2025-04-08 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858624', 'tblTempUsageDetail_20' ) end [2025-04-08 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858624', 'tblTempVendorCDR_20' ) start [2025-04-08 00:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858624', 'tblTempVendorCDR_20' ) end [2025-04-08 00:47:19] Production.INFO: ProcessCDR(1,14858624,1,1,2) [2025-04-08 00:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858624', 'tblTempUsageDetail_20' ) start [2025-04-08 00:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858624', 'tblTempUsageDetail_20' ) end [2025-04-08 00:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:47:23] Production.INFO: ==13598== Releasing lock... [2025-04-08 00:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:47:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:48:05 [end_date_ymd] => 2025-04-08 00:48:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:48:05' and `end` < '2025-04-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-04-08 00:48:18] Production.INFO: count ==484 [2025-04-08 00:48:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:48:05 - End Time 2025-04-08 00:48:05 [2025-04-08 00:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858629', 'tblTempUsageDetail_20' ) start [2025-04-08 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858629', 'tblTempUsageDetail_20' ) end [2025-04-08 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858629', 'tblTempVendorCDR_20' ) start [2025-04-08 00:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858629', 'tblTempVendorCDR_20' ) end [2025-04-08 00:48:19] Production.INFO: ProcessCDR(1,14858629,1,1,2) [2025-04-08 00:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858629', 'tblTempUsageDetail_20' ) start [2025-04-08 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858629', 'tblTempUsageDetail_20' ) end [2025-04-08 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:48:22] Production.INFO: ==13691== Releasing lock... [2025-04-08 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:48:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 00:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:49:06 [end_date_ymd] => 2025-04-08 00:49:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:49:06' and `end` < '2025-04-08 00: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-04-08 00:49:18] Production.INFO: count ==476 [2025-04-08 00:49:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:49:06 - End Time 2025-04-08 00:49:06 [2025-04-08 00:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858634', 'tblTempUsageDetail_20' ) start [2025-04-08 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858634', 'tblTempUsageDetail_20' ) end [2025-04-08 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858634', 'tblTempVendorCDR_20' ) start [2025-04-08 00:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858634', 'tblTempVendorCDR_20' ) end [2025-04-08 00:49:19] Production.INFO: ProcessCDR(1,14858634,1,1,2) [2025-04-08 00:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858634', 'tblTempUsageDetail_20' ) start [2025-04-08 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858634', 'tblTempUsageDetail_20' ) end [2025-04-08 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:49:22] Production.INFO: ==13780== Releasing lock... [2025-04-08 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:50:06 [end_date_ymd] => 2025-04-08 00:50:06 [RateCDR] => 1 ) [2025-04-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-04-07 21:50:06' and `end` < '2025-04-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-04-08 00:50:19] Production.INFO: count ==485 [2025-04-08 00:50:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:50:06 - End Time 2025-04-08 00:50:06 [2025-04-08 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858640', 'tblTempUsageDetail_20' ) start [2025-04-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858640', 'tblTempUsageDetail_20' ) end [2025-04-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858640', 'tblTempVendorCDR_20' ) start [2025-04-08 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858640', 'tblTempVendorCDR_20' ) end [2025-04-08 00:50:19] Production.INFO: ProcessCDR(1,14858640,1,1,2) [2025-04-08 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858640', 'tblTempUsageDetail_20' ) start [2025-04-08 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858640', 'tblTempUsageDetail_20' ) end [2025-04-08 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:50:22] Production.INFO: ==13874== Releasing lock... [2025-04-08 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:51:05 [end_date_ymd] => 2025-04-08 00:51:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:51:05' and `end` < '2025-04-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-04-08 00:51:18] Production.INFO: count ==477 [2025-04-08 00:51:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:51:05 - End Time 2025-04-08 00:51:05 [2025-04-08 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858645', 'tblTempUsageDetail_20' ) start [2025-04-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858645', 'tblTempUsageDetail_20' ) end [2025-04-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858645', 'tblTempVendorCDR_20' ) start [2025-04-08 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858645', 'tblTempVendorCDR_20' ) end [2025-04-08 00:51:18] Production.INFO: ProcessCDR(1,14858645,1,1,2) [2025-04-08 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858645', 'tblTempUsageDetail_20' ) start [2025-04-08 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858645', 'tblTempUsageDetail_20' ) end [2025-04-08 00:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:51:22] Production.INFO: ==13969== Releasing lock... [2025-04-08 00:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:51:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:52:05 [end_date_ymd] => 2025-04-08 00:52:05 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:52:05' and `end` < '2025-04-08 00: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-04-08 00:52:18] Production.INFO: count ==472 [2025-04-08 00:52:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:52:05 - End Time 2025-04-08 00:52:05 [2025-04-08 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858649', 'tblTempUsageDetail_20' ) start [2025-04-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858649', 'tblTempUsageDetail_20' ) end [2025-04-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858649', 'tblTempVendorCDR_20' ) start [2025-04-08 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858649', 'tblTempVendorCDR_20' ) end [2025-04-08 00:52:18] Production.INFO: ProcessCDR(1,14858649,1,1,2) [2025-04-08 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858649', 'tblTempUsageDetail_20' ) start [2025-04-08 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858649', 'tblTempUsageDetail_20' ) end [2025-04-08 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:52:21] Production.INFO: ==14059== Releasing lock... [2025-04-08 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:52:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:53:06 [end_date_ymd] => 2025-04-08 00:53:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:53:06' and `end` < '2025-04-08 00: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-04-08 00:53:19] Production.INFO: count ==472 [2025-04-08 00:53:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:53:06 - End Time 2025-04-08 00:53:06 [2025-04-08 00:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858655', 'tblTempUsageDetail_20' ) start [2025-04-08 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858655', 'tblTempUsageDetail_20' ) end [2025-04-08 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858655', 'tblTempVendorCDR_20' ) start [2025-04-08 00:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858655', 'tblTempVendorCDR_20' ) end [2025-04-08 00:53:19] Production.INFO: ProcessCDR(1,14858655,1,1,2) [2025-04-08 00:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858655', 'tblTempUsageDetail_20' ) start [2025-04-08 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858655', 'tblTempUsageDetail_20' ) end [2025-04-08 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:53:22] Production.INFO: ==14194== Releasing lock... [2025-04-08 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:53:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:54:05 [end_date_ymd] => 2025-04-08 00:54:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:54:05' and `end` < '2025-04-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-04-08 00:54:18] Production.INFO: count ==472 [2025-04-08 00:54:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:54:05 - End Time 2025-04-08 00:54:05 [2025-04-08 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858660', 'tblTempUsageDetail_20' ) start [2025-04-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858660', 'tblTempUsageDetail_20' ) end [2025-04-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858660', 'tblTempVendorCDR_20' ) start [2025-04-08 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858660', 'tblTempVendorCDR_20' ) end [2025-04-08 00:54:18] Production.INFO: ProcessCDR(1,14858660,1,1,2) [2025-04-08 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858660', 'tblTempUsageDetail_20' ) start [2025-04-08 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858660', 'tblTempUsageDetail_20' ) end [2025-04-08 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:54:21] Production.INFO: ==14288== Releasing lock... [2025-04-08 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:54:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:55:06 [end_date_ymd] => 2025-04-08 00:55:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:55:06' and `end` < '2025-04-08 00: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-04-08 00:55:18] Production.INFO: count ==474 [2025-04-08 00:55:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:55:06 - End Time 2025-04-08 00:55:06 [2025-04-08 00:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858665', 'tblTempUsageDetail_20' ) start [2025-04-08 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858665', 'tblTempUsageDetail_20' ) end [2025-04-08 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858665', 'tblTempVendorCDR_20' ) start [2025-04-08 00:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858665', 'tblTempVendorCDR_20' ) end [2025-04-08 00:55:19] Production.INFO: ProcessCDR(1,14858665,1,1,2) [2025-04-08 00:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858665', 'tblTempUsageDetail_20' ) start [2025-04-08 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858665', 'tblTempUsageDetail_20' ) end [2025-04-08 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:55:22] Production.INFO: ==14379== Releasing lock... [2025-04-08 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:55:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:56:05 [end_date_ymd] => 2025-04-08 00:56:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:56:05' and `end` < '2025-04-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-04-08 00:56:18] Production.INFO: count ==474 [2025-04-08 00:56:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:56:05 - End Time 2025-04-08 00:56:05 [2025-04-08 00:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858670', 'tblTempUsageDetail_20' ) start [2025-04-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858670', 'tblTempUsageDetail_20' ) end [2025-04-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858670', 'tblTempVendorCDR_20' ) start [2025-04-08 00:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858670', 'tblTempVendorCDR_20' ) end [2025-04-08 00:56:18] Production.INFO: ProcessCDR(1,14858670,1,1,2) [2025-04-08 00:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858670', 'tblTempUsageDetail_20' ) start [2025-04-08 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858670', 'tblTempUsageDetail_20' ) end [2025-04-08 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:56:22] Production.INFO: ==14469== Releasing lock... [2025-04-08 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:56:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:57:06 [end_date_ymd] => 2025-04-08 00:57:06 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:57:06' and `end` < '2025-04-08 00: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-04-08 00:57:18] Production.INFO: count ==474 [2025-04-08 00:57:19] Production.ERROR: pbx CDR StartTime 2025-04-07 21:57:06 - End Time 2025-04-08 00:57:06 [2025-04-08 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858675', 'tblTempUsageDetail_20' ) start [2025-04-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858675', 'tblTempUsageDetail_20' ) end [2025-04-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858675', 'tblTempVendorCDR_20' ) start [2025-04-08 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858675', 'tblTempVendorCDR_20' ) end [2025-04-08 00:57:19] Production.INFO: ProcessCDR(1,14858675,1,1,2) [2025-04-08 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858675', 'tblTempUsageDetail_20' ) start [2025-04-08 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858675', 'tblTempUsageDetail_20' ) end [2025-04-08 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:57:22] Production.INFO: ==14564== Releasing lock... [2025-04-08 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:57:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:58:05 [end_date_ymd] => 2025-04-08 00:58:05 [RateCDR] => 1 ) [2025-04-08 00: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-04-07 21:58:05' and `end` < '2025-04-08 00: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-04-08 00:58:18] Production.INFO: count ==474 [2025-04-08 00:58:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:58:05 - End Time 2025-04-08 00:58:05 [2025-04-08 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858680', 'tblTempUsageDetail_20' ) start [2025-04-08 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858680', 'tblTempUsageDetail_20' ) end [2025-04-08 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858680', 'tblTempVendorCDR_20' ) start [2025-04-08 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858680', 'tblTempVendorCDR_20' ) end [2025-04-08 00:58:18] Production.INFO: ProcessCDR(1,14858680,1,1,2) [2025-04-08 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858680', 'tblTempUsageDetail_20' ) start [2025-04-08 00:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858680', 'tblTempUsageDetail_20' ) end [2025-04-08 00:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:58:23] Production.INFO: ==14656== Releasing lock... [2025-04-08 00:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:58:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 21:59:05 [end_date_ymd] => 2025-04-08 00:59:05 [RateCDR] => 1 ) [2025-04-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-04-07 21:59:05' and `end` < '2025-04-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-04-08 00:59:18] Production.INFO: count ==474 [2025-04-08 00:59:18] Production.ERROR: pbx CDR StartTime 2025-04-07 21:59:05 - End Time 2025-04-08 00:59:05 [2025-04-08 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858685', 'tblTempUsageDetail_20' ) start [2025-04-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858685', 'tblTempUsageDetail_20' ) end [2025-04-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858685', 'tblTempVendorCDR_20' ) start [2025-04-08 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858685', 'tblTempVendorCDR_20' ) end [2025-04-08 00:59:18] Production.INFO: ProcessCDR(1,14858685,1,1,2) [2025-04-08 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858685', 'tblTempUsageDetail_20' ) start [2025-04-08 00:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858685', 'tblTempUsageDetail_20' ) end [2025-04-08 00:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 00:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 00:59:22] Production.INFO: ==14743== Releasing lock... [2025-04-08 00:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 00:59:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:00:06 [end_date_ymd] => 2025-04-08 01:00:06 [RateCDR] => 1 ) [2025-04-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-04-07 22:00:06' and `end` < '2025-04-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-04-08 01:00:19] Production.INFO: count ==484 [2025-04-08 01:00:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:00:06 - End Time 2025-04-08 01:00:06 [2025-04-08 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858691', 'tblTempUsageDetail_20' ) start [2025-04-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858691', 'tblTempUsageDetail_20' ) end [2025-04-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858691', 'tblTempVendorCDR_20' ) start [2025-04-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858691', 'tblTempVendorCDR_20' ) end [2025-04-08 01:00:19] Production.INFO: ProcessCDR(1,14858691,1,1,2) [2025-04-08 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858691', 'tblTempUsageDetail_20' ) start [2025-04-08 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858691', 'tblTempUsageDetail_20' ) end [2025-04-08 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:00:22] Production.INFO: ==14837== Releasing lock... [2025-04-08 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:00:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:01:05 [end_date_ymd] => 2025-04-08 01:01:05 [RateCDR] => 1 ) [2025-04-08 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-07 22:01:05' and `end` < '2025-04-08 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 01:01:17] Production.INFO: count ==472 [2025-04-08 01:01:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:01:05 - End Time 2025-04-08 01:01:05 [2025-04-08 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858696', 'tblTempUsageDetail_20' ) start [2025-04-08 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858696', 'tblTempUsageDetail_20' ) end [2025-04-08 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858696', 'tblTempVendorCDR_20' ) start [2025-04-08 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858696', 'tblTempVendorCDR_20' ) end [2025-04-08 01:01:18] Production.INFO: ProcessCDR(1,14858696,1,1,2) [2025-04-08 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858696', 'tblTempUsageDetail_20' ) start [2025-04-08 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858696', 'tblTempUsageDetail_20' ) end [2025-04-08 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:01:21] Production.INFO: ==14950== Releasing lock... [2025-04-08 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:01:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:02:06 [end_date_ymd] => 2025-04-08 01:02:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:02:06' and `end` < '2025-04-08 01: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-04-08 01:02:19] Production.INFO: count ==474 [2025-04-08 01:02:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:02:06 - End Time 2025-04-08 01:02:06 [2025-04-08 01:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858701', 'tblTempUsageDetail_20' ) start [2025-04-08 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858701', 'tblTempUsageDetail_20' ) end [2025-04-08 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858701', 'tblTempVendorCDR_20' ) start [2025-04-08 01:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858701', 'tblTempVendorCDR_20' ) end [2025-04-08 01:02:19] Production.INFO: ProcessCDR(1,14858701,1,1,2) [2025-04-08 01:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858701', 'tblTempUsageDetail_20' ) start [2025-04-08 01:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858701', 'tblTempUsageDetail_20' ) end [2025-04-08 01:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:02:24] Production.INFO: ==15047== Releasing lock... [2025-04-08 01:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:02:24] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:03:05 [end_date_ymd] => 2025-04-08 01:03:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:03:05' and `end` < '2025-04-08 01: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-04-08 01:03:18] Production.INFO: count ==473 [2025-04-08 01:03:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:03:05 - End Time 2025-04-08 01:03:05 [2025-04-08 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858706', 'tblTempUsageDetail_20' ) start [2025-04-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858706', 'tblTempUsageDetail_20' ) end [2025-04-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858706', 'tblTempVendorCDR_20' ) start [2025-04-08 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858706', 'tblTempVendorCDR_20' ) end [2025-04-08 01:03:18] Production.INFO: ProcessCDR(1,14858706,1,1,2) [2025-04-08 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858706', 'tblTempUsageDetail_20' ) start [2025-04-08 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858706', 'tblTempUsageDetail_20' ) end [2025-04-08 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:03:21] Production.INFO: ==15138== Releasing lock... [2025-04-08 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:03:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:04:06 [end_date_ymd] => 2025-04-08 01:04:06 [RateCDR] => 1 ) [2025-04-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-04-07 22:04:06' and `end` < '2025-04-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-04-08 01:04:19] Production.INFO: count ==465 [2025-04-08 01:04:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:04:06 - End Time 2025-04-08 01:04:06 [2025-04-08 01:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858711', 'tblTempUsageDetail_20' ) start [2025-04-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858711', 'tblTempUsageDetail_20' ) end [2025-04-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858711', 'tblTempVendorCDR_20' ) start [2025-04-08 01:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858711', 'tblTempVendorCDR_20' ) end [2025-04-08 01:04:19] Production.INFO: ProcessCDR(1,14858711,1,1,2) [2025-04-08 01:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858711', 'tblTempUsageDetail_20' ) start [2025-04-08 01:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858711', 'tblTempUsageDetail_20' ) end [2025-04-08 01:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:04:22] Production.INFO: ==15230== Releasing lock... [2025-04-08 01:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:04:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:05:05 [end_date_ymd] => 2025-04-08 01:05:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:05:05' and `end` < '2025-04-08 01: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-04-08 01:05:18] Production.INFO: count ==463 [2025-04-08 01:05:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:05:05 - End Time 2025-04-08 01:05:05 [2025-04-08 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858716', 'tblTempUsageDetail_20' ) start [2025-04-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858716', 'tblTempUsageDetail_20' ) end [2025-04-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858716', 'tblTempVendorCDR_20' ) start [2025-04-08 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858716', 'tblTempVendorCDR_20' ) end [2025-04-08 01:05:18] Production.INFO: ProcessCDR(1,14858716,1,1,2) [2025-04-08 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858716', 'tblTempUsageDetail_20' ) start [2025-04-08 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858716', 'tblTempUsageDetail_20' ) end [2025-04-08 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:05:22] Production.INFO: ==15320== Releasing lock... [2025-04-08 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:05:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:06:05 [end_date_ymd] => 2025-04-08 01:06:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:06:05' and `end` < '2025-04-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-04-08 01:06:18] Production.INFO: count ==450 [2025-04-08 01:06:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:06:05 - End Time 2025-04-08 01:06:05 [2025-04-08 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858721', 'tblTempUsageDetail_20' ) start [2025-04-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858721', 'tblTempUsageDetail_20' ) end [2025-04-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858721', 'tblTempVendorCDR_20' ) start [2025-04-08 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858721', 'tblTempVendorCDR_20' ) end [2025-04-08 01:06:18] Production.INFO: ProcessCDR(1,14858721,1,1,2) [2025-04-08 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858721', 'tblTempUsageDetail_20' ) start [2025-04-08 01:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858721', 'tblTempUsageDetail_20' ) end [2025-04-08 01:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:06:22] Production.INFO: ==15414== Releasing lock... [2025-04-08 01:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:06:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:07:05 [end_date_ymd] => 2025-04-08 01:07:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:07:05' and `end` < '2025-04-08 01: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-04-08 01:07:17] Production.INFO: count ==429 [2025-04-08 01:07:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:07:05 - End Time 2025-04-08 01:07:05 [2025-04-08 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858726', 'tblTempUsageDetail_20' ) start [2025-04-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858726', 'tblTempUsageDetail_20' ) end [2025-04-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858726', 'tblTempVendorCDR_20' ) start [2025-04-08 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858726', 'tblTempVendorCDR_20' ) end [2025-04-08 01:07:18] Production.INFO: ProcessCDR(1,14858726,1,1,2) [2025-04-08 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858726', 'tblTempUsageDetail_20' ) start [2025-04-08 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858726', 'tblTempUsageDetail_20' ) end [2025-04-08 01:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:07:23] Production.INFO: ==15508== Releasing lock... [2025-04-08 01:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:07:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:08:05 [end_date_ymd] => 2025-04-08 01:08:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:08:05' and `end` < '2025-04-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-04-08 01:08:18] Production.INFO: count ==421 [2025-04-08 01:08:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:08:05 - End Time 2025-04-08 01:08:05 [2025-04-08 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858731', 'tblTempUsageDetail_20' ) start [2025-04-08 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858731', 'tblTempUsageDetail_20' ) end [2025-04-08 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858731', 'tblTempVendorCDR_20' ) start [2025-04-08 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858731', 'tblTempVendorCDR_20' ) end [2025-04-08 01:08:18] Production.INFO: ProcessCDR(1,14858731,1,1,2) [2025-04-08 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858731', 'tblTempUsageDetail_20' ) start [2025-04-08 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858731', 'tblTempUsageDetail_20' ) end [2025-04-08 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:08:22] Production.INFO: ==15601== Releasing lock... [2025-04-08 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:08:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:09:05 [end_date_ymd] => 2025-04-08 01:09:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:09:05' and `end` < '2025-04-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-04-08 01:09:18] Production.INFO: count ==417 [2025-04-08 01:09:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:09:05 - End Time 2025-04-08 01:09:05 [2025-04-08 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858736', 'tblTempUsageDetail_20' ) start [2025-04-08 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858736', 'tblTempUsageDetail_20' ) end [2025-04-08 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858736', 'tblTempVendorCDR_20' ) start [2025-04-08 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858736', 'tblTempVendorCDR_20' ) end [2025-04-08 01:09:18] Production.INFO: ProcessCDR(1,14858736,1,1,2) [2025-04-08 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858736', 'tblTempUsageDetail_20' ) start [2025-04-08 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858736', 'tblTempUsageDetail_20' ) end [2025-04-08 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:09:21] Production.INFO: ==15735== Releasing lock... [2025-04-08 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:10:06 [end_date_ymd] => 2025-04-08 01:10:06 [RateCDR] => 1 ) [2025-04-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-04-07 22:10:06' and `end` < '2025-04-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-04-08 01:10:19] Production.INFO: count ==425 [2025-04-08 01:10:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:10:06 - End Time 2025-04-08 01:10:06 [2025-04-08 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858742', 'tblTempUsageDetail_20' ) start [2025-04-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858742', 'tblTempUsageDetail_20' ) end [2025-04-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858742', 'tblTempVendorCDR_20' ) start [2025-04-08 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858742', 'tblTempVendorCDR_20' ) end [2025-04-08 01:10:19] Production.INFO: ProcessCDR(1,14858742,1,1,2) [2025-04-08 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858742', 'tblTempUsageDetail_20' ) start [2025-04-08 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858742', 'tblTempUsageDetail_20' ) end [2025-04-08 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:10:22] Production.INFO: ==15830== Releasing lock... [2025-04-08 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:10:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:11:05 [end_date_ymd] => 2025-04-08 01:11:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:11:05' and `end` < '2025-04-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-04-08 01:11:18] Production.INFO: count ==428 [2025-04-08 01:11:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:11:05 - End Time 2025-04-08 01:11:05 [2025-04-08 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858747', 'tblTempUsageDetail_20' ) start [2025-04-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858747', 'tblTempUsageDetail_20' ) end [2025-04-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858747', 'tblTempVendorCDR_20' ) start [2025-04-08 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858747', 'tblTempVendorCDR_20' ) end [2025-04-08 01:11:18] Production.INFO: ProcessCDR(1,14858747,1,1,2) [2025-04-08 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858747', 'tblTempUsageDetail_20' ) start [2025-04-08 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858747', 'tblTempUsageDetail_20' ) end [2025-04-08 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:11:21] Production.INFO: ==15925== Releasing lock... [2025-04-08 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:11:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:12:05 [end_date_ymd] => 2025-04-08 01:12:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:12:05' and `end` < '2025-04-08 01: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-04-08 01:12:18] Production.INFO: count ==430 [2025-04-08 01:12:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:12:05 - End Time 2025-04-08 01:12:05 [2025-04-08 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858752', 'tblTempUsageDetail_20' ) start [2025-04-08 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858752', 'tblTempUsageDetail_20' ) end [2025-04-08 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858752', 'tblTempVendorCDR_20' ) start [2025-04-08 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858752', 'tblTempVendorCDR_20' ) end [2025-04-08 01:12:18] Production.INFO: ProcessCDR(1,14858752,1,1,2) [2025-04-08 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858752', 'tblTempUsageDetail_20' ) start [2025-04-08 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858752', 'tblTempUsageDetail_20' ) end [2025-04-08 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:12:22] Production.INFO: ==16016== Releasing lock... [2025-04-08 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:12:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:13:05 [end_date_ymd] => 2025-04-08 01:13:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:13:05' and `end` < '2025-04-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-04-08 01:13:18] Production.INFO: count ==428 [2025-04-08 01:13:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:13:05 - End Time 2025-04-08 01:13:05 [2025-04-08 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858757', 'tblTempUsageDetail_20' ) start [2025-04-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858757', 'tblTempUsageDetail_20' ) end [2025-04-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858757', 'tblTempVendorCDR_20' ) start [2025-04-08 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858757', 'tblTempVendorCDR_20' ) end [2025-04-08 01:13:18] Production.INFO: ProcessCDR(1,14858757,1,1,2) [2025-04-08 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858757', 'tblTempUsageDetail_20' ) start [2025-04-08 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858757', 'tblTempUsageDetail_20' ) end [2025-04-08 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:13:21] Production.INFO: ==16112== Releasing lock... [2025-04-08 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:14:05 [end_date_ymd] => 2025-04-08 01:14:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:14:05' and `end` < '2025-04-08 01: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-04-08 01:14:18] Production.INFO: count ==431 [2025-04-08 01:14:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:14:05 - End Time 2025-04-08 01:14:05 [2025-04-08 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858762', 'tblTempUsageDetail_20' ) start [2025-04-08 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858762', 'tblTempUsageDetail_20' ) end [2025-04-08 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858762', 'tblTempVendorCDR_20' ) start [2025-04-08 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858762', 'tblTempVendorCDR_20' ) end [2025-04-08 01:14:18] Production.INFO: ProcessCDR(1,14858762,1,1,2) [2025-04-08 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858762', 'tblTempUsageDetail_20' ) start [2025-04-08 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858762', 'tblTempUsageDetail_20' ) end [2025-04-08 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:14:21] Production.INFO: ==16199== Releasing lock... [2025-04-08 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:15:06 [end_date_ymd] => 2025-04-08 01:15:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:15:06' and `end` < '2025-04-08 01: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-04-08 01:15:19] Production.INFO: count ==430 [2025-04-08 01:15:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:15:06 - End Time 2025-04-08 01:15:06 [2025-04-08 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858767', 'tblTempUsageDetail_20' ) start [2025-04-08 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858767', 'tblTempUsageDetail_20' ) end [2025-04-08 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858767', 'tblTempVendorCDR_20' ) start [2025-04-08 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858767', 'tblTempVendorCDR_20' ) end [2025-04-08 01:15:19] Production.INFO: ProcessCDR(1,14858767,1,1,2) [2025-04-08 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858767', 'tblTempUsageDetail_20' ) start [2025-04-08 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858767', 'tblTempUsageDetail_20' ) end [2025-04-08 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:15:22] Production.INFO: ==16296== Releasing lock... [2025-04-08 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:15:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:16:05 [end_date_ymd] => 2025-04-08 01:16:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:16:05' and `end` < '2025-04-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-04-08 01:16:18] Production.INFO: count ==422 [2025-04-08 01:16:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:16:05 - End Time 2025-04-08 01:16:05 [2025-04-08 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858772', 'tblTempUsageDetail_20' ) start [2025-04-08 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858772', 'tblTempUsageDetail_20' ) end [2025-04-08 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858772', 'tblTempVendorCDR_20' ) start [2025-04-08 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858772', 'tblTempVendorCDR_20' ) end [2025-04-08 01:16:18] Production.INFO: ProcessCDR(1,14858772,1,1,2) [2025-04-08 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858772', 'tblTempUsageDetail_20' ) start [2025-04-08 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858772', 'tblTempUsageDetail_20' ) end [2025-04-08 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:16:22] Production.INFO: ==16391== Releasing lock... [2025-04-08 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:16:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:17:06 [end_date_ymd] => 2025-04-08 01:17:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:17:06' and `end` < '2025-04-08 01: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-04-08 01:17:19] Production.INFO: count ==413 [2025-04-08 01:17:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:17:06 - End Time 2025-04-08 01:17:06 [2025-04-08 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858777', 'tblTempUsageDetail_20' ) start [2025-04-08 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858777', 'tblTempUsageDetail_20' ) end [2025-04-08 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858777', 'tblTempVendorCDR_20' ) start [2025-04-08 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858777', 'tblTempVendorCDR_20' ) end [2025-04-08 01:17:19] Production.INFO: ProcessCDR(1,14858777,1,1,2) [2025-04-08 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858777', 'tblTempUsageDetail_20' ) start [2025-04-08 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858777', 'tblTempUsageDetail_20' ) end [2025-04-08 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:17:22] Production.INFO: ==16482== Releasing lock... [2025-04-08 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:17:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:18:06 [end_date_ymd] => 2025-04-08 01:18:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:18:06' and `end` < '2025-04-08 01: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-04-08 01:18:18] Production.INFO: count ==414 [2025-04-08 01:18:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:18:06 - End Time 2025-04-08 01:18:06 [2025-04-08 01:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858782', 'tblTempUsageDetail_20' ) start [2025-04-08 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858782', 'tblTempUsageDetail_20' ) end [2025-04-08 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858782', 'tblTempVendorCDR_20' ) start [2025-04-08 01:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858782', 'tblTempVendorCDR_20' ) end [2025-04-08 01:18:19] Production.INFO: ProcessCDR(1,14858782,1,1,2) [2025-04-08 01:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858782', 'tblTempUsageDetail_20' ) start [2025-04-08 01:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858782', 'tblTempUsageDetail_20' ) end [2025-04-08 01:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:18:23] Production.INFO: ==16587== Releasing lock... [2025-04-08 01:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:18:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:19:06 [end_date_ymd] => 2025-04-08 01:19:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:19:06' and `end` < '2025-04-08 01: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-04-08 01:19:19] Production.INFO: count ==419 [2025-04-08 01:19:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:19:06 - End Time 2025-04-08 01:19:06 [2025-04-08 01:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858787', 'tblTempUsageDetail_20' ) start [2025-04-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858787', 'tblTempUsageDetail_20' ) end [2025-04-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858787', 'tblTempVendorCDR_20' ) start [2025-04-08 01:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858787', 'tblTempVendorCDR_20' ) end [2025-04-08 01:19:19] Production.INFO: ProcessCDR(1,14858787,1,1,2) [2025-04-08 01:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858787', 'tblTempUsageDetail_20' ) start [2025-04-08 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858787', 'tblTempUsageDetail_20' ) end [2025-04-08 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:19:22] Production.INFO: ==16683== Releasing lock... [2025-04-08 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:20:06 [end_date_ymd] => 2025-04-08 01:20:06 [RateCDR] => 1 ) [2025-04-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-04-07 22:20:06' and `end` < '2025-04-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-04-08 01:20:18] Production.INFO: count ==415 [2025-04-08 01:20:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:20:06 - End Time 2025-04-08 01:20:06 [2025-04-08 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858793', 'tblTempUsageDetail_20' ) start [2025-04-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858793', 'tblTempUsageDetail_20' ) end [2025-04-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858793', 'tblTempVendorCDR_20' ) start [2025-04-08 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858793', 'tblTempVendorCDR_20' ) end [2025-04-08 01:20:19] Production.INFO: ProcessCDR(1,14858793,1,1,2) [2025-04-08 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858793', 'tblTempUsageDetail_20' ) start [2025-04-08 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858793', 'tblTempUsageDetail_20' ) end [2025-04-08 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:20:22] Production.INFO: ==16773== Releasing lock... [2025-04-08 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:20:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:21:05 [end_date_ymd] => 2025-04-08 01:21:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:21:05' and `end` < '2025-04-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-04-08 01:21:18] Production.INFO: count ==419 [2025-04-08 01:21:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:21:05 - End Time 2025-04-08 01:21:05 [2025-04-08 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858798', 'tblTempUsageDetail_20' ) start [2025-04-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858798', 'tblTempUsageDetail_20' ) end [2025-04-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858798', 'tblTempVendorCDR_20' ) start [2025-04-08 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858798', 'tblTempVendorCDR_20' ) end [2025-04-08 01:21:18] Production.INFO: ProcessCDR(1,14858798,1,1,2) [2025-04-08 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858798', 'tblTempUsageDetail_20' ) start [2025-04-08 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858798', 'tblTempUsageDetail_20' ) end [2025-04-08 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:21:21] Production.INFO: ==16868== Releasing lock... [2025-04-08 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:21:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:22:05 [end_date_ymd] => 2025-04-08 01:22:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:22:05' and `end` < '2025-04-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-04-08 01:22:18] Production.INFO: count ==419 [2025-04-08 01:22:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:22:05 - End Time 2025-04-08 01:22:05 [2025-04-08 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858803', 'tblTempUsageDetail_20' ) start [2025-04-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858803', 'tblTempUsageDetail_20' ) end [2025-04-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858803', 'tblTempVendorCDR_20' ) start [2025-04-08 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858803', 'tblTempVendorCDR_20' ) end [2025-04-08 01:22:18] Production.INFO: ProcessCDR(1,14858803,1,1,2) [2025-04-08 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858803', 'tblTempUsageDetail_20' ) start [2025-04-08 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858803', 'tblTempUsageDetail_20' ) end [2025-04-08 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:22:21] Production.INFO: ==16961== Releasing lock... [2025-04-08 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:23:05 [end_date_ymd] => 2025-04-08 01:23:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:23:05' and `end` < '2025-04-08 01: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-04-08 01:23:18] Production.INFO: count ==419 [2025-04-08 01:23:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:23:05 - End Time 2025-04-08 01:23:05 [2025-04-08 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858808', 'tblTempUsageDetail_20' ) start [2025-04-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858808', 'tblTempUsageDetail_20' ) end [2025-04-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858808', 'tblTempVendorCDR_20' ) start [2025-04-08 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858808', 'tblTempVendorCDR_20' ) end [2025-04-08 01:23:18] Production.INFO: ProcessCDR(1,14858808,1,1,2) [2025-04-08 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858808', 'tblTempUsageDetail_20' ) start [2025-04-08 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858808', 'tblTempUsageDetail_20' ) end [2025-04-08 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:23:21] Production.INFO: ==17054== Releasing lock... [2025-04-08 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:24:05 [end_date_ymd] => 2025-04-08 01:24:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:24:05' and `end` < '2025-04-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-04-08 01:24:17] Production.INFO: count ==422 [2025-04-08 01:24:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:24:05 - End Time 2025-04-08 01:24:05 [2025-04-08 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858813', 'tblTempUsageDetail_20' ) start [2025-04-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858813', 'tblTempUsageDetail_20' ) end [2025-04-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858813', 'tblTempVendorCDR_20' ) start [2025-04-08 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858813', 'tblTempVendorCDR_20' ) end [2025-04-08 01:24:18] Production.INFO: ProcessCDR(1,14858813,1,1,2) [2025-04-08 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858813', 'tblTempUsageDetail_20' ) start [2025-04-08 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858813', 'tblTempUsageDetail_20' ) end [2025-04-08 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:24:21] Production.INFO: ==17190== Releasing lock... [2025-04-08 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:24:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:25:05 [end_date_ymd] => 2025-04-08 01:25:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:25:05' and `end` < '2025-04-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-04-08 01:25:18] Production.INFO: count ==422 [2025-04-08 01:25:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:25:05 - End Time 2025-04-08 01:25:05 [2025-04-08 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858818', 'tblTempUsageDetail_20' ) start [2025-04-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858818', 'tblTempUsageDetail_20' ) end [2025-04-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858818', 'tblTempVendorCDR_20' ) start [2025-04-08 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858818', 'tblTempVendorCDR_20' ) end [2025-04-08 01:25:18] Production.INFO: ProcessCDR(1,14858818,1,1,2) [2025-04-08 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858818', 'tblTempUsageDetail_20' ) start [2025-04-08 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858818', 'tblTempUsageDetail_20' ) end [2025-04-08 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:25:21] Production.INFO: ==17283== Releasing lock... [2025-04-08 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:25:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:26:06 [end_date_ymd] => 2025-04-08 01:26:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:26:06' and `end` < '2025-04-08 01: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-04-08 01:26:18] Production.INFO: count ==422 [2025-04-08 01:26:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:26:06 - End Time 2025-04-08 01:26:06 [2025-04-08 01:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858823', 'tblTempUsageDetail_20' ) start [2025-04-08 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858823', 'tblTempUsageDetail_20' ) end [2025-04-08 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858823', 'tblTempVendorCDR_20' ) start [2025-04-08 01:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858823', 'tblTempVendorCDR_20' ) end [2025-04-08 01:26:19] Production.INFO: ProcessCDR(1,14858823,1,1,2) [2025-04-08 01:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858823', 'tblTempUsageDetail_20' ) start [2025-04-08 01:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858823', 'tblTempUsageDetail_20' ) end [2025-04-08 01:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:26:22] Production.INFO: ==17378== Releasing lock... [2025-04-08 01:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:26:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:27:05 [end_date_ymd] => 2025-04-08 01:27:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:27:05' and `end` < '2025-04-08 01: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-04-08 01:27:18] Production.INFO: count ==422 [2025-04-08 01:27:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:27:05 - End Time 2025-04-08 01:27:05 [2025-04-08 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858828', 'tblTempUsageDetail_20' ) start [2025-04-08 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858828', 'tblTempUsageDetail_20' ) end [2025-04-08 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858828', 'tblTempVendorCDR_20' ) start [2025-04-08 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858828', 'tblTempVendorCDR_20' ) end [2025-04-08 01:27:18] Production.INFO: ProcessCDR(1,14858828,1,1,2) [2025-04-08 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858828', 'tblTempUsageDetail_20' ) start [2025-04-08 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858828', 'tblTempUsageDetail_20' ) end [2025-04-08 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:27:21] Production.INFO: ==17466== Releasing lock... [2025-04-08 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:27:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:28:05 [end_date_ymd] => 2025-04-08 01:28:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:28:05' and `end` < '2025-04-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-04-08 01:28:18] Production.INFO: count ==425 [2025-04-08 01:28:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:28:05 - End Time 2025-04-08 01:28:05 [2025-04-08 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858833', 'tblTempUsageDetail_20' ) start [2025-04-08 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858833', 'tblTempUsageDetail_20' ) end [2025-04-08 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858833', 'tblTempVendorCDR_20' ) start [2025-04-08 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858833', 'tblTempVendorCDR_20' ) end [2025-04-08 01:28:18] Production.INFO: ProcessCDR(1,14858833,1,1,2) [2025-04-08 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858833', 'tblTempUsageDetail_20' ) start [2025-04-08 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858833', 'tblTempUsageDetail_20' ) end [2025-04-08 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:28:22] Production.INFO: ==17559== Releasing lock... [2025-04-08 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:28:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:29:05 [end_date_ymd] => 2025-04-08 01:29:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:29:05' and `end` < '2025-04-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-04-08 01:29:18] Production.INFO: count ==427 [2025-04-08 01:29:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:29:05 - End Time 2025-04-08 01:29:05 [2025-04-08 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858838', 'tblTempUsageDetail_20' ) start [2025-04-08 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858838', 'tblTempUsageDetail_20' ) end [2025-04-08 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858838', 'tblTempVendorCDR_20' ) start [2025-04-08 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858838', 'tblTempVendorCDR_20' ) end [2025-04-08 01:29:18] Production.INFO: ProcessCDR(1,14858838,1,1,2) [2025-04-08 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858838', 'tblTempUsageDetail_20' ) start [2025-04-08 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858838', 'tblTempUsageDetail_20' ) end [2025-04-08 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:29:21] Production.INFO: ==17650== Releasing lock... [2025-04-08 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:29:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:30:06 [end_date_ymd] => 2025-04-08 01:30:06 [RateCDR] => 1 ) [2025-04-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-04-07 22:30:06' and `end` < '2025-04-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-04-08 01:30:19] Production.INFO: count ==439 [2025-04-08 01:30:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:30:06 - End Time 2025-04-08 01:30:06 [2025-04-08 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858844', 'tblTempUsageDetail_20' ) start [2025-04-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858844', 'tblTempUsageDetail_20' ) end [2025-04-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858844', 'tblTempVendorCDR_20' ) start [2025-04-08 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858844', 'tblTempVendorCDR_20' ) end [2025-04-08 01:30:19] Production.INFO: ProcessCDR(1,14858844,1,1,2) [2025-04-08 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858844', 'tblTempUsageDetail_20' ) start [2025-04-08 01:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858844', 'tblTempUsageDetail_20' ) end [2025-04-08 01:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:30:24] Production.INFO: ==17747== Releasing lock... [2025-04-08 01:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:30:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:31:05 [end_date_ymd] => 2025-04-08 01:31:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:31:05' and `end` < '2025-04-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-04-08 01:31:18] Production.INFO: count ==461 [2025-04-08 01:31:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:31:05 - End Time 2025-04-08 01:31:05 [2025-04-08 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858849', 'tblTempUsageDetail_20' ) start [2025-04-08 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858849', 'tblTempUsageDetail_20' ) end [2025-04-08 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858849', 'tblTempVendorCDR_20' ) start [2025-04-08 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858849', 'tblTempVendorCDR_20' ) end [2025-04-08 01:31:18] Production.INFO: ProcessCDR(1,14858849,1,1,2) [2025-04-08 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858849', 'tblTempUsageDetail_20' ) start [2025-04-08 01:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858849', 'tblTempUsageDetail_20' ) end [2025-04-08 01:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:31:23] Production.INFO: ==17843== Releasing lock... [2025-04-08 01:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:31:23] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:32:05 [end_date_ymd] => 2025-04-08 01:32:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:32:05' and `end` < '2025-04-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-04-08 01:32:18] Production.INFO: count ==465 [2025-04-08 01:32:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:32:05 - End Time 2025-04-08 01:32:05 [2025-04-08 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858854', 'tblTempUsageDetail_20' ) start [2025-04-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858854', 'tblTempUsageDetail_20' ) end [2025-04-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858854', 'tblTempVendorCDR_20' ) start [2025-04-08 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858854', 'tblTempVendorCDR_20' ) end [2025-04-08 01:32:18] Production.INFO: ProcessCDR(1,14858854,1,1,2) [2025-04-08 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858854', 'tblTempUsageDetail_20' ) start [2025-04-08 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858854', 'tblTempUsageDetail_20' ) end [2025-04-08 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:32:22] Production.INFO: ==17932== Releasing lock... [2025-04-08 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:32:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:33:06 [end_date_ymd] => 2025-04-08 01:33:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:33:06' and `end` < '2025-04-08 01: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-04-08 01:33:19] Production.INFO: count ==469 [2025-04-08 01:33:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:33:06 - End Time 2025-04-08 01:33:06 [2025-04-08 01:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858859', 'tblTempUsageDetail_20' ) start [2025-04-08 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858859', 'tblTempUsageDetail_20' ) end [2025-04-08 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858859', 'tblTempVendorCDR_20' ) start [2025-04-08 01:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858859', 'tblTempVendorCDR_20' ) end [2025-04-08 01:33:19] Production.INFO: ProcessCDR(1,14858859,1,1,2) [2025-04-08 01:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858859', 'tblTempUsageDetail_20' ) start [2025-04-08 01:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858859', 'tblTempUsageDetail_20' ) end [2025-04-08 01:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:33:22] Production.INFO: ==18023== Releasing lock... [2025-04-08 01:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:34:05 [end_date_ymd] => 2025-04-08 01:34:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:34:05' and `end` < '2025-04-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-04-08 01:34:18] Production.INFO: count ==469 [2025-04-08 01:34:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:34:05 - End Time 2025-04-08 01:34:05 [2025-04-08 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858864', 'tblTempUsageDetail_20' ) start [2025-04-08 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858864', 'tblTempUsageDetail_20' ) end [2025-04-08 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858864', 'tblTempVendorCDR_20' ) start [2025-04-08 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858864', 'tblTempVendorCDR_20' ) end [2025-04-08 01:34:18] Production.INFO: ProcessCDR(1,14858864,1,1,2) [2025-04-08 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858864', 'tblTempUsageDetail_20' ) start [2025-04-08 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858864', 'tblTempUsageDetail_20' ) end [2025-04-08 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:34:22] Production.INFO: ==18113== Releasing lock... [2025-04-08 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:35:06 [end_date_ymd] => 2025-04-08 01:35:06 [RateCDR] => 1 ) [2025-04-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-04-07 22:35:06' and `end` < '2025-04-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-04-08 01:35:19] Production.INFO: count ==471 [2025-04-08 01:35:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:35:06 - End Time 2025-04-08 01:35:06 [2025-04-08 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858869', 'tblTempUsageDetail_20' ) start [2025-04-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858869', 'tblTempUsageDetail_20' ) end [2025-04-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858869', 'tblTempVendorCDR_20' ) start [2025-04-08 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858869', 'tblTempVendorCDR_20' ) end [2025-04-08 01:35:19] Production.INFO: ProcessCDR(1,14858869,1,1,2) [2025-04-08 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858869', 'tblTempUsageDetail_20' ) start [2025-04-08 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858869', 'tblTempUsageDetail_20' ) end [2025-04-08 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:35:22] Production.INFO: ==18207== Releasing lock... [2025-04-08 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:35:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:36:05 [end_date_ymd] => 2025-04-08 01:36:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:36:05' and `end` < '2025-04-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-04-08 01:36:18] Production.INFO: count ==470 [2025-04-08 01:36:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:36:05 - End Time 2025-04-08 01:36:05 [2025-04-08 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858874', 'tblTempUsageDetail_20' ) start [2025-04-08 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858874', 'tblTempUsageDetail_20' ) end [2025-04-08 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858874', 'tblTempVendorCDR_20' ) start [2025-04-08 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858874', 'tblTempVendorCDR_20' ) end [2025-04-08 01:36:18] Production.INFO: ProcessCDR(1,14858874,1,1,2) [2025-04-08 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858874', 'tblTempUsageDetail_20' ) start [2025-04-08 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858874', 'tblTempUsageDetail_20' ) end [2025-04-08 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:36:22] Production.INFO: ==18294== Releasing lock... [2025-04-08 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:36:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:37:06 [end_date_ymd] => 2025-04-08 01:37:06 [RateCDR] => 1 ) [2025-04-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-04-07 22:37:06' and `end` < '2025-04-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-04-08 01:37:18] Production.INFO: count ==473 [2025-04-08 01:37:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:37:06 - End Time 2025-04-08 01:37:06 [2025-04-08 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858879', 'tblTempUsageDetail_20' ) start [2025-04-08 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858879', 'tblTempUsageDetail_20' ) end [2025-04-08 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858879', 'tblTempVendorCDR_20' ) start [2025-04-08 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858879', 'tblTempVendorCDR_20' ) end [2025-04-08 01:37:18] Production.INFO: ProcessCDR(1,14858879,1,1,2) [2025-04-08 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858879', 'tblTempUsageDetail_20' ) start [2025-04-08 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858879', 'tblTempUsageDetail_20' ) end [2025-04-08 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:37:22] Production.INFO: ==18384== Releasing lock... [2025-04-08 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:37:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:38:05 [end_date_ymd] => 2025-04-08 01:38:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:38:05' and `end` < '2025-04-08 01: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-04-08 01:38:18] Production.INFO: count ==477 [2025-04-08 01:38:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:38:05 - End Time 2025-04-08 01:38:05 [2025-04-08 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858884', 'tblTempUsageDetail_20' ) start [2025-04-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858884', 'tblTempUsageDetail_20' ) end [2025-04-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858884', 'tblTempVendorCDR_20' ) start [2025-04-08 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858884', 'tblTempVendorCDR_20' ) end [2025-04-08 01:38:18] Production.INFO: ProcessCDR(1,14858884,1,1,2) [2025-04-08 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858884', 'tblTempUsageDetail_20' ) start [2025-04-08 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858884', 'tblTempUsageDetail_20' ) end [2025-04-08 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:38:21] Production.INFO: ==18477== Releasing lock... [2025-04-08 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:38:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:39:05 [end_date_ymd] => 2025-04-08 01:39:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:39:05' and `end` < '2025-04-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-04-08 01:39:18] Production.INFO: count ==479 [2025-04-08 01:39:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:39:05 - End Time 2025-04-08 01:39:05 [2025-04-08 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858889', 'tblTempUsageDetail_20' ) start [2025-04-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858889', 'tblTempUsageDetail_20' ) end [2025-04-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858889', 'tblTempVendorCDR_20' ) start [2025-04-08 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858889', 'tblTempVendorCDR_20' ) end [2025-04-08 01:39:18] Production.INFO: ProcessCDR(1,14858889,1,1,2) [2025-04-08 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858889', 'tblTempUsageDetail_20' ) start [2025-04-08 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858889', 'tblTempUsageDetail_20' ) end [2025-04-08 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:39:21] Production.INFO: ==18605== Releasing lock... [2025-04-08 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:39:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:40:06 [end_date_ymd] => 2025-04-08 01:40:06 [RateCDR] => 1 ) [2025-04-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-04-07 22:40:06' and `end` < '2025-04-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-04-08 01:40:19] Production.INFO: count ==487 [2025-04-08 01:40:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:40:06 - End Time 2025-04-08 01:40:06 [2025-04-08 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858894', 'tblTempUsageDetail_20' ) start [2025-04-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858894', 'tblTempUsageDetail_20' ) end [2025-04-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858894', 'tblTempVendorCDR_20' ) start [2025-04-08 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858894', 'tblTempVendorCDR_20' ) end [2025-04-08 01:40:19] Production.INFO: ProcessCDR(1,14858894,1,1,2) [2025-04-08 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858894', 'tblTempUsageDetail_20' ) start [2025-04-08 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858894', 'tblTempUsageDetail_20' ) end [2025-04-08 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:40:22] Production.INFO: ==18704== Releasing lock... [2025-04-08 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:40:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:41:05 [end_date_ymd] => 2025-04-08 01:41:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:41:05' and `end` < '2025-04-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-04-08 01:41:18] Production.INFO: count ==495 [2025-04-08 01:41:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:41:05 - End Time 2025-04-08 01:41:05 [2025-04-08 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858900', 'tblTempUsageDetail_20' ) start [2025-04-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858900', 'tblTempUsageDetail_20' ) end [2025-04-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858900', 'tblTempVendorCDR_20' ) start [2025-04-08 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858900', 'tblTempVendorCDR_20' ) end [2025-04-08 01:41:18] Production.INFO: ProcessCDR(1,14858900,1,1,2) [2025-04-08 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858900', 'tblTempUsageDetail_20' ) start [2025-04-08 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858900', 'tblTempUsageDetail_20' ) end [2025-04-08 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:41:22] Production.INFO: ==18800== Releasing lock... [2025-04-08 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:41:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:42:06 [end_date_ymd] => 2025-04-08 01:42:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:42:06' and `end` < '2025-04-08 01: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-04-08 01:42:18] Production.INFO: count ==495 [2025-04-08 01:42:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:42:06 - End Time 2025-04-08 01:42:06 [2025-04-08 01:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858905', 'tblTempUsageDetail_20' ) start [2025-04-08 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858905', 'tblTempUsageDetail_20' ) end [2025-04-08 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858905', 'tblTempVendorCDR_20' ) start [2025-04-08 01:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858905', 'tblTempVendorCDR_20' ) end [2025-04-08 01:42:19] Production.INFO: ProcessCDR(1,14858905,1,1,2) [2025-04-08 01:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858905', 'tblTempUsageDetail_20' ) start [2025-04-08 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858905', 'tblTempUsageDetail_20' ) end [2025-04-08 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:42:22] Production.INFO: ==18891== Releasing lock... [2025-04-08 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:42:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:43:05 [end_date_ymd] => 2025-04-08 01:43:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:43:05' and `end` < '2025-04-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-04-08 01:43:18] Production.INFO: count ==495 [2025-04-08 01:43:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:43:05 - End Time 2025-04-08 01:43:05 [2025-04-08 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858910', 'tblTempUsageDetail_20' ) start [2025-04-08 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858910', 'tblTempUsageDetail_20' ) end [2025-04-08 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858910', 'tblTempVendorCDR_20' ) start [2025-04-08 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858910', 'tblTempVendorCDR_20' ) end [2025-04-08 01:43:18] Production.INFO: ProcessCDR(1,14858910,1,1,2) [2025-04-08 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858910', 'tblTempUsageDetail_20' ) start [2025-04-08 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858910', 'tblTempUsageDetail_20' ) end [2025-04-08 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:43:21] Production.INFO: ==18984== Releasing lock... [2025-04-08 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:43:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:44:06 [end_date_ymd] => 2025-04-08 01:44:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:44:06' and `end` < '2025-04-08 01: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-04-08 01:44:19] Production.INFO: count ==495 [2025-04-08 01:44:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:44:06 - End Time 2025-04-08 01:44:06 [2025-04-08 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858915', 'tblTempUsageDetail_20' ) start [2025-04-08 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858915', 'tblTempUsageDetail_20' ) end [2025-04-08 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858915', 'tblTempVendorCDR_20' ) start [2025-04-08 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858915', 'tblTempVendorCDR_20' ) end [2025-04-08 01:44:19] Production.INFO: ProcessCDR(1,14858915,1,1,2) [2025-04-08 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858915', 'tblTempUsageDetail_20' ) start [2025-04-08 01:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858915', 'tblTempUsageDetail_20' ) end [2025-04-08 01:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:44:24] Production.INFO: ==19074== Releasing lock... [2025-04-08 01:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:44:24] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:45:05 [end_date_ymd] => 2025-04-08 01:45:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:45:05' and `end` < '2025-04-08 01: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-04-08 01:45:18] Production.INFO: count ==495 [2025-04-08 01:45:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:45:05 - End Time 2025-04-08 01:45:05 [2025-04-08 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858920', 'tblTempUsageDetail_20' ) start [2025-04-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858920', 'tblTempUsageDetail_20' ) end [2025-04-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858920', 'tblTempVendorCDR_20' ) start [2025-04-08 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858920', 'tblTempVendorCDR_20' ) end [2025-04-08 01:45:18] Production.INFO: ProcessCDR(1,14858920,1,1,2) [2025-04-08 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858920', 'tblTempUsageDetail_20' ) start [2025-04-08 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858920', 'tblTempUsageDetail_20' ) end [2025-04-08 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:45:21] Production.INFO: ==19168== Releasing lock... [2025-04-08 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:45:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:46:06 [end_date_ymd] => 2025-04-08 01:46:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:46:06' and `end` < '2025-04-08 01: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-04-08 01:46:18] Production.INFO: count ==491 [2025-04-08 01:46:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:46:06 - End Time 2025-04-08 01:46:06 [2025-04-08 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858925', 'tblTempUsageDetail_20' ) start [2025-04-08 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858925', 'tblTempUsageDetail_20' ) end [2025-04-08 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858925', 'tblTempVendorCDR_20' ) start [2025-04-08 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858925', 'tblTempVendorCDR_20' ) end [2025-04-08 01:46:19] Production.INFO: ProcessCDR(1,14858925,1,1,2) [2025-04-08 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858925', 'tblTempUsageDetail_20' ) start [2025-04-08 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858925', 'tblTempUsageDetail_20' ) end [2025-04-08 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:46:22] Production.INFO: ==19264== Releasing lock... [2025-04-08 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:46:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:47:05 [end_date_ymd] => 2025-04-08 01:47:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:47:05' and `end` < '2025-04-08 01: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-04-08 01:47:18] Production.INFO: count ==489 [2025-04-08 01:47:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:47:05 - End Time 2025-04-08 01:47:05 [2025-04-08 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858930', 'tblTempUsageDetail_20' ) start [2025-04-08 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858930', 'tblTempUsageDetail_20' ) end [2025-04-08 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858930', 'tblTempVendorCDR_20' ) start [2025-04-08 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858930', 'tblTempVendorCDR_20' ) end [2025-04-08 01:47:18] Production.INFO: ProcessCDR(1,14858930,1,1,2) [2025-04-08 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858930', 'tblTempUsageDetail_20' ) start [2025-04-08 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858930', 'tblTempUsageDetail_20' ) end [2025-04-08 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:47:21] Production.INFO: ==19361== Releasing lock... [2025-04-08 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:47:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:48:05 [end_date_ymd] => 2025-04-08 01:48:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:48:05' and `end` < '2025-04-08 01: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-04-08 01:48:18] Production.INFO: count ==486 [2025-04-08 01:48:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:48:05 - End Time 2025-04-08 01:48:05 [2025-04-08 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858935', 'tblTempUsageDetail_20' ) start [2025-04-08 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858935', 'tblTempUsageDetail_20' ) end [2025-04-08 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858935', 'tblTempVendorCDR_20' ) start [2025-04-08 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858935', 'tblTempVendorCDR_20' ) end [2025-04-08 01:48:18] Production.INFO: ProcessCDR(1,14858935,1,1,2) [2025-04-08 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858935', 'tblTempUsageDetail_20' ) start [2025-04-08 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858935', 'tblTempUsageDetail_20' ) end [2025-04-08 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:48:21] Production.INFO: ==19456== Releasing lock... [2025-04-08 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:48:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:49:05 [end_date_ymd] => 2025-04-08 01:49:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:49:05' and `end` < '2025-04-08 01: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-04-08 01:49:18] Production.INFO: count ==487 [2025-04-08 01:49:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:49:05 - End Time 2025-04-08 01:49:05 [2025-04-08 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858940', 'tblTempUsageDetail_20' ) start [2025-04-08 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858940', 'tblTempUsageDetail_20' ) end [2025-04-08 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858940', 'tblTempVendorCDR_20' ) start [2025-04-08 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858940', 'tblTempVendorCDR_20' ) end [2025-04-08 01:49:18] Production.INFO: ProcessCDR(1,14858940,1,1,2) [2025-04-08 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858940', 'tblTempUsageDetail_20' ) start [2025-04-08 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858940', 'tblTempUsageDetail_20' ) end [2025-04-08 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:49:23] Production.INFO: ==19554== Releasing lock... [2025-04-08 01:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:49:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:50:06 [end_date_ymd] => 2025-04-08 01:50:06 [RateCDR] => 1 ) [2025-04-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-04-07 22:50:06' and `end` < '2025-04-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-04-08 01:50:19] Production.INFO: count ==500 [2025-04-08 01:50:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:50:06 - End Time 2025-04-08 01:50:06 [2025-04-08 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858946', 'tblTempUsageDetail_20' ) start [2025-04-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858946', 'tblTempUsageDetail_20' ) end [2025-04-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858946', 'tblTempVendorCDR_20' ) start [2025-04-08 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858946', 'tblTempVendorCDR_20' ) end [2025-04-08 01:50:19] Production.INFO: ProcessCDR(1,14858946,1,1,2) [2025-04-08 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858946', 'tblTempUsageDetail_20' ) start [2025-04-08 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858946', 'tblTempUsageDetail_20' ) end [2025-04-08 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:50:22] Production.INFO: ==19647== Releasing lock... [2025-04-08 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:50:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:51:05 [end_date_ymd] => 2025-04-08 01:51:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:51:05' and `end` < '2025-04-08 01: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-04-08 01:51:18] Production.INFO: count ==504 [2025-04-08 01:51:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:51:05 - End Time 2025-04-08 01:51:05 [2025-04-08 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858951', 'tblTempUsageDetail_20' ) start [2025-04-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858951', 'tblTempUsageDetail_20' ) end [2025-04-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858951', 'tblTempVendorCDR_20' ) start [2025-04-08 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858951', 'tblTempVendorCDR_20' ) end [2025-04-08 01:51:18] Production.INFO: ProcessCDR(1,14858951,1,1,2) [2025-04-08 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858951', 'tblTempUsageDetail_20' ) start [2025-04-08 01:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858951', 'tblTempUsageDetail_20' ) end [2025-04-08 01:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:51:21] Production.INFO: ==19740== Releasing lock... [2025-04-08 01:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:51:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:52:06 [end_date_ymd] => 2025-04-08 01:52:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:52:06' and `end` < '2025-04-08 01: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-04-08 01:52:19] Production.INFO: count ==498 [2025-04-08 01:52:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:52:06 - End Time 2025-04-08 01:52:06 [2025-04-08 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858956', 'tblTempUsageDetail_20' ) start [2025-04-08 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858956', 'tblTempUsageDetail_20' ) end [2025-04-08 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858956', 'tblTempVendorCDR_20' ) start [2025-04-08 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858956', 'tblTempVendorCDR_20' ) end [2025-04-08 01:52:19] Production.INFO: ProcessCDR(1,14858956,1,1,2) [2025-04-08 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858956', 'tblTempUsageDetail_20' ) start [2025-04-08 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858956', 'tblTempUsageDetail_20' ) end [2025-04-08 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:52:22] Production.INFO: ==19832== Releasing lock... [2025-04-08 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:52:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:53:06 [end_date_ymd] => 2025-04-08 01:53:06 [RateCDR] => 1 ) [2025-04-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-04-07 22:53:06' and `end` < '2025-04-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-04-08 01:53:18] Production.INFO: count ==497 [2025-04-08 01:53:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:53:06 - End Time 2025-04-08 01:53:06 [2025-04-08 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858961', 'tblTempUsageDetail_20' ) start [2025-04-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858961', 'tblTempUsageDetail_20' ) end [2025-04-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858961', 'tblTempVendorCDR_20' ) start [2025-04-08 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858961', 'tblTempVendorCDR_20' ) end [2025-04-08 01:53:18] Production.INFO: ProcessCDR(1,14858961,1,1,2) [2025-04-08 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858961', 'tblTempUsageDetail_20' ) start [2025-04-08 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858961', 'tblTempUsageDetail_20' ) end [2025-04-08 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:53:22] Production.INFO: ==19923== Releasing lock... [2025-04-08 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:53:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:54:05 [end_date_ymd] => 2025-04-08 01:54:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:54:05' and `end` < '2025-04-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-04-08 01:54:18] Production.INFO: count ==498 [2025-04-08 01:54:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:54:05 - End Time 2025-04-08 01:54:05 [2025-04-08 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858966', 'tblTempUsageDetail_20' ) start [2025-04-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858966', 'tblTempUsageDetail_20' ) end [2025-04-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858966', 'tblTempVendorCDR_20' ) start [2025-04-08 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858966', 'tblTempVendorCDR_20' ) end [2025-04-08 01:54:18] Production.INFO: ProcessCDR(1,14858966,1,1,2) [2025-04-08 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858966', 'tblTempUsageDetail_20' ) start [2025-04-08 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858966', 'tblTempUsageDetail_20' ) end [2025-04-08 01:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:54:23] Production.INFO: ==20014== Releasing lock... [2025-04-08 01:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:54:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 01:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:55:06 [end_date_ymd] => 2025-04-08 01:55:06 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:55:06' and `end` < '2025-04-08 01: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-04-08 01:55:19] Production.INFO: count ==498 [2025-04-08 01:55:19] Production.ERROR: pbx CDR StartTime 2025-04-07 22:55:06 - End Time 2025-04-08 01:55:06 [2025-04-08 01:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858971', 'tblTempUsageDetail_20' ) start [2025-04-08 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858971', 'tblTempUsageDetail_20' ) end [2025-04-08 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858971', 'tblTempVendorCDR_20' ) start [2025-04-08 01:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858971', 'tblTempVendorCDR_20' ) end [2025-04-08 01:55:19] Production.INFO: ProcessCDR(1,14858971,1,1,2) [2025-04-08 01:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858971', 'tblTempUsageDetail_20' ) start [2025-04-08 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858971', 'tblTempUsageDetail_20' ) end [2025-04-08 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:55:22] Production.INFO: ==20147== Releasing lock... [2025-04-08 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:55:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:56:05 [end_date_ymd] => 2025-04-08 01:56:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:56:05' and `end` < '2025-04-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-04-08 01:56:18] Production.INFO: count ==496 [2025-04-08 01:56:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:56:05 - End Time 2025-04-08 01:56:05 [2025-04-08 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858976', 'tblTempUsageDetail_20' ) start [2025-04-08 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858976', 'tblTempUsageDetail_20' ) end [2025-04-08 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858976', 'tblTempVendorCDR_20' ) start [2025-04-08 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858976', 'tblTempVendorCDR_20' ) end [2025-04-08 01:56:18] Production.INFO: ProcessCDR(1,14858976,1,1,2) [2025-04-08 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858976', 'tblTempUsageDetail_20' ) start [2025-04-08 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858976', 'tblTempUsageDetail_20' ) end [2025-04-08 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:56:21] Production.INFO: ==20239== Releasing lock... [2025-04-08 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:56:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:57:05 [end_date_ymd] => 2025-04-08 01:57:05 [RateCDR] => 1 ) [2025-04-08 01: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-04-07 22:57:05' and `end` < '2025-04-08 01: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-04-08 01:57:18] Production.INFO: count ==496 [2025-04-08 01:57:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:57:05 - End Time 2025-04-08 01:57:05 [2025-04-08 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858981', 'tblTempUsageDetail_20' ) start [2025-04-08 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858981', 'tblTempUsageDetail_20' ) end [2025-04-08 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858981', 'tblTempVendorCDR_20' ) start [2025-04-08 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858981', 'tblTempVendorCDR_20' ) end [2025-04-08 01:57:18] Production.INFO: ProcessCDR(1,14858981,1,1,2) [2025-04-08 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858981', 'tblTempUsageDetail_20' ) start [2025-04-08 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858981', 'tblTempUsageDetail_20' ) end [2025-04-08 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:57:21] Production.INFO: ==20329== Releasing lock... [2025-04-08 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:57:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:58:05 [end_date_ymd] => 2025-04-08 01:58:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:58:05' and `end` < '2025-04-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-04-08 01:58:18] Production.INFO: count ==499 [2025-04-08 01:58:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:58:05 - End Time 2025-04-08 01:58:05 [2025-04-08 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858986', 'tblTempUsageDetail_20' ) start [2025-04-08 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858986', 'tblTempUsageDetail_20' ) end [2025-04-08 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858986', 'tblTempVendorCDR_20' ) start [2025-04-08 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858986', 'tblTempVendorCDR_20' ) end [2025-04-08 01:58:18] Production.INFO: ProcessCDR(1,14858986,1,1,2) [2025-04-08 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858986', 'tblTempUsageDetail_20' ) start [2025-04-08 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858986', 'tblTempUsageDetail_20' ) end [2025-04-08 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:58:22] Production.INFO: ==20419== Releasing lock... [2025-04-08 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:58:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 22:59:05 [end_date_ymd] => 2025-04-08 01:59:05 [RateCDR] => 1 ) [2025-04-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-04-07 22:59:05' and `end` < '2025-04-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-04-08 01:59:18] Production.INFO: count ==496 [2025-04-08 01:59:18] Production.ERROR: pbx CDR StartTime 2025-04-07 22:59:05 - End Time 2025-04-08 01:59:05 [2025-04-08 01:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858991', 'tblTempUsageDetail_20' ) start [2025-04-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858991', 'tblTempUsageDetail_20' ) end [2025-04-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858991', 'tblTempVendorCDR_20' ) start [2025-04-08 01:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858991', 'tblTempVendorCDR_20' ) end [2025-04-08 01:59:18] Production.INFO: ProcessCDR(1,14858991,1,1,2) [2025-04-08 01:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858991', 'tblTempUsageDetail_20' ) start [2025-04-08 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858991', 'tblTempUsageDetail_20' ) end [2025-04-08 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 01:59:22] Production.INFO: ==20513== Releasing lock... [2025-04-08 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 01:59:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:00:06 [end_date_ymd] => 2025-04-08 02:00:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:00:06' and `end` < '2025-04-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-04-08 02:00:18] Production.INFO: count ==516 [2025-04-08 02:00:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:00:06 - End Time 2025-04-08 02:00:06 [2025-04-08 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858997', 'tblTempUsageDetail_20' ) start [2025-04-08 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14858997', 'tblTempUsageDetail_20' ) end [2025-04-08 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858997', 'tblTempVendorCDR_20' ) start [2025-04-08 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14858997', 'tblTempVendorCDR_20' ) end [2025-04-08 02:00:18] Production.INFO: ProcessCDR(1,14858997,1,1,2) [2025-04-08 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14858997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14858997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14858997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14858997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858997', 'tblTempUsageDetail_20' ) start [2025-04-08 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14858997', 'tblTempUsageDetail_20' ) end [2025-04-08 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:00:22] Production.INFO: ==20609== Releasing lock... [2025-04-08 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:00:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:01:06 [end_date_ymd] => 2025-04-08 02:01:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:01:06' and `end` < '2025-04-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-04-08 02:01:19] Production.INFO: count ==513 [2025-04-08 02:01:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:01:06 - End Time 2025-04-08 02:01:06 [2025-04-08 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859002', 'tblTempUsageDetail_20' ) start [2025-04-08 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859002', 'tblTempUsageDetail_20' ) end [2025-04-08 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859002', 'tblTempVendorCDR_20' ) start [2025-04-08 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859002', 'tblTempVendorCDR_20' ) end [2025-04-08 02:01:19] Production.INFO: ProcessCDR(1,14859002,1,1,2) [2025-04-08 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859002', 'tblTempUsageDetail_20' ) start [2025-04-08 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859002', 'tblTempUsageDetail_20' ) end [2025-04-08 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:01:22] Production.INFO: ==20719== Releasing lock... [2025-04-08 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:01:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:02:06 [end_date_ymd] => 2025-04-08 02:02:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:02:06' and `end` < '2025-04-08 02: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-04-08 02:02:18] Production.INFO: count ==512 [2025-04-08 02:02:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:02:06 - End Time 2025-04-08 02:02:06 [2025-04-08 02:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859007', 'tblTempUsageDetail_20' ) start [2025-04-08 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859007', 'tblTempUsageDetail_20' ) end [2025-04-08 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859007', 'tblTempVendorCDR_20' ) start [2025-04-08 02:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859007', 'tblTempVendorCDR_20' ) end [2025-04-08 02:02:19] Production.INFO: ProcessCDR(1,14859007,1,1,2) [2025-04-08 02:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859007', 'tblTempUsageDetail_20' ) start [2025-04-08 02:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859007', 'tblTempUsageDetail_20' ) end [2025-04-08 02:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:02:24] Production.INFO: ==20898== Releasing lock... [2025-04-08 02:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:02:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:03:05 [end_date_ymd] => 2025-04-08 02:03:05 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:03:05' and `end` < '2025-04-08 02: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-04-08 02:03:18] Production.INFO: count ==511 [2025-04-08 02:03:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:03:05 - End Time 2025-04-08 02:03:05 [2025-04-08 02:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859012', 'tblTempUsageDetail_20' ) start [2025-04-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859012', 'tblTempUsageDetail_20' ) end [2025-04-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859012', 'tblTempVendorCDR_20' ) start [2025-04-08 02:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859012', 'tblTempVendorCDR_20' ) end [2025-04-08 02:03:18] Production.INFO: ProcessCDR(1,14859012,1,1,2) [2025-04-08 02:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859012', 'tblTempUsageDetail_20' ) start [2025-04-08 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859012', 'tblTempUsageDetail_20' ) end [2025-04-08 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:03:21] Production.INFO: ==20987== Releasing lock... [2025-04-08 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:03:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:04:06 [end_date_ymd] => 2025-04-08 02:04:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:04:06' and `end` < '2025-04-08 02: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-04-08 02:04:19] Production.INFO: count ==511 [2025-04-08 02:04:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:04:06 - End Time 2025-04-08 02:04:06 [2025-04-08 02:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859017', 'tblTempUsageDetail_20' ) start [2025-04-08 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859017', 'tblTempUsageDetail_20' ) end [2025-04-08 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859017', 'tblTempVendorCDR_20' ) start [2025-04-08 02:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859017', 'tblTempVendorCDR_20' ) end [2025-04-08 02:04:19] Production.INFO: ProcessCDR(1,14859017,1,1,2) [2025-04-08 02:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859017', 'tblTempUsageDetail_20' ) start [2025-04-08 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859017', 'tblTempUsageDetail_20' ) end [2025-04-08 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:04:22] Production.INFO: ==21078== Releasing lock... [2025-04-08 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:04:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:05:05 [end_date_ymd] => 2025-04-08 02:05:05 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:05:05' and `end` < '2025-04-08 02: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-04-08 02:05:18] Production.INFO: count ==510 [2025-04-08 02:05:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:05:05 - End Time 2025-04-08 02:05:05 [2025-04-08 02:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859022', 'tblTempUsageDetail_20' ) start [2025-04-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859022', 'tblTempUsageDetail_20' ) end [2025-04-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859022', 'tblTempVendorCDR_20' ) start [2025-04-08 02:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859022', 'tblTempVendorCDR_20' ) end [2025-04-08 02:05:18] Production.INFO: ProcessCDR(1,14859022,1,1,2) [2025-04-08 02:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859022', 'tblTempUsageDetail_20' ) start [2025-04-08 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859022', 'tblTempUsageDetail_20' ) end [2025-04-08 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:05:22] Production.INFO: ==21160== Releasing lock... [2025-04-08 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:05:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:06:06 [end_date_ymd] => 2025-04-08 02:06:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:06:06' and `end` < '2025-04-08 02: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-04-08 02:06:18] Production.INFO: count ==509 [2025-04-08 02:06:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:06:06 - End Time 2025-04-08 02:06:06 [2025-04-08 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859027', 'tblTempUsageDetail_20' ) start [2025-04-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859027', 'tblTempUsageDetail_20' ) end [2025-04-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859027', 'tblTempVendorCDR_20' ) start [2025-04-08 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859027', 'tblTempVendorCDR_20' ) end [2025-04-08 02:06:18] Production.INFO: ProcessCDR(1,14859027,1,1,2) [2025-04-08 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859027', 'tblTempUsageDetail_20' ) start [2025-04-08 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859027', 'tblTempUsageDetail_20' ) end [2025-04-08 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:06:22] Production.INFO: ==21249== Releasing lock... [2025-04-08 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:06:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:07:05 [end_date_ymd] => 2025-04-08 02:07:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:07:05' and `end` < '2025-04-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-04-08 02:07:18] Production.INFO: count ==509 [2025-04-08 02:07:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:07:05 - End Time 2025-04-08 02:07:05 [2025-04-08 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859032', 'tblTempUsageDetail_20' ) start [2025-04-08 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859032', 'tblTempUsageDetail_20' ) end [2025-04-08 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859032', 'tblTempVendorCDR_20' ) start [2025-04-08 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859032', 'tblTempVendorCDR_20' ) end [2025-04-08 02:07:18] Production.INFO: ProcessCDR(1,14859032,1,1,2) [2025-04-08 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859032', 'tblTempUsageDetail_20' ) start [2025-04-08 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859032', 'tblTempUsageDetail_20' ) end [2025-04-08 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:07:21] Production.INFO: ==21343== Releasing lock... [2025-04-08 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:07:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:08:05 [end_date_ymd] => 2025-04-08 02:08:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:08:05' and `end` < '2025-04-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-04-08 02:08:18] Production.INFO: count ==504 [2025-04-08 02:08:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:08:05 - End Time 2025-04-08 02:08:05 [2025-04-08 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859037', 'tblTempUsageDetail_20' ) start [2025-04-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859037', 'tblTempUsageDetail_20' ) end [2025-04-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859037', 'tblTempVendorCDR_20' ) start [2025-04-08 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859037', 'tblTempVendorCDR_20' ) end [2025-04-08 02:08:18] Production.INFO: ProcessCDR(1,14859037,1,1,2) [2025-04-08 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859037', 'tblTempUsageDetail_20' ) start [2025-04-08 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859037', 'tblTempUsageDetail_20' ) end [2025-04-08 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:08:21] Production.INFO: ==21444== Releasing lock... [2025-04-08 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:08:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:09:05 [end_date_ymd] => 2025-04-08 02:09:05 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:09:05' and `end` < '2025-04-08 02: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-04-08 02:09:18] Production.INFO: count ==501 [2025-04-08 02:09:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:09:05 - End Time 2025-04-08 02:09:05 [2025-04-08 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859042', 'tblTempUsageDetail_20' ) start [2025-04-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859042', 'tblTempUsageDetail_20' ) end [2025-04-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859042', 'tblTempVendorCDR_20' ) start [2025-04-08 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859042', 'tblTempVendorCDR_20' ) end [2025-04-08 02:09:18] Production.INFO: ProcessCDR(1,14859042,1,1,2) [2025-04-08 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859042', 'tblTempUsageDetail_20' ) start [2025-04-08 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859042', 'tblTempUsageDetail_20' ) end [2025-04-08 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:09:22] Production.INFO: ==21535== Releasing lock... [2025-04-08 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:09:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:10:06 [end_date_ymd] => 2025-04-08 02:10:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:10:06' and `end` < '2025-04-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-04-08 02:10:19] Production.INFO: count ==502 [2025-04-08 02:10:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:10:06 - End Time 2025-04-08 02:10:06 [2025-04-08 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859048', 'tblTempUsageDetail_20' ) start [2025-04-08 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859048', 'tblTempUsageDetail_20' ) end [2025-04-08 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859048', 'tblTempVendorCDR_20' ) start [2025-04-08 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859048', 'tblTempVendorCDR_20' ) end [2025-04-08 02:10:19] Production.INFO: ProcessCDR(1,14859048,1,1,2) [2025-04-08 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859048', 'tblTempUsageDetail_20' ) start [2025-04-08 02:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859048', 'tblTempUsageDetail_20' ) end [2025-04-08 02:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:10:24] Production.INFO: ==21667== Releasing lock... [2025-04-08 02:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:10:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:11:06 [end_date_ymd] => 2025-04-08 02:11:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:11:06' and `end` < '2025-04-08 02: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-04-08 02:11:18] Production.INFO: count ==498 [2025-04-08 02:11:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:11:06 - End Time 2025-04-08 02:11:06 [2025-04-08 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859053', 'tblTempUsageDetail_20' ) start [2025-04-08 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859053', 'tblTempUsageDetail_20' ) end [2025-04-08 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859053', 'tblTempVendorCDR_20' ) start [2025-04-08 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859053', 'tblTempVendorCDR_20' ) end [2025-04-08 02:11:19] Production.INFO: ProcessCDR(1,14859053,1,1,2) [2025-04-08 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859053', 'tblTempUsageDetail_20' ) start [2025-04-08 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859053', 'tblTempUsageDetail_20' ) end [2025-04-08 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:11:22] Production.INFO: ==21759== Releasing lock... [2025-04-08 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:11:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 02:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:12:04 [end_date_ymd] => 2025-04-08 02:12:04 [RateCDR] => 1 ) [2025-04-08 02:12: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-04-07 23:12:04' and `end` < '2025-04-08 02:12: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-04-08 02:12:17] Production.INFO: count ==498 [2025-04-08 02:12:17] Production.ERROR: pbx CDR StartTime 2025-04-07 23:12:04 - End Time 2025-04-08 02:12:04 [2025-04-08 02:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859055', 'tblTempUsageDetail_20' ) start [2025-04-08 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859055', 'tblTempUsageDetail_20' ) end [2025-04-08 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859055', 'tblTempVendorCDR_20' ) start [2025-04-08 02:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859055', 'tblTempVendorCDR_20' ) end [2025-04-08 02:12:17] Production.INFO: ProcessCDR(1,14859055,1,1,2) [2025-04-08 02:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859055', 'tblTempUsageDetail_20' ) start [2025-04-08 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859055', 'tblTempUsageDetail_20' ) end [2025-04-08 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:12:21] Production.INFO: ==21847== Releasing lock... [2025-04-08 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:12:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 02:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:13:06 [end_date_ymd] => 2025-04-08 02:13:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:13:06' and `end` < '2025-04-08 02: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-04-08 02:13:18] Production.INFO: count ==493 [2025-04-08 02:13:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:13:06 - End Time 2025-04-08 02:13:06 [2025-04-08 02:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859063', 'tblTempUsageDetail_20' ) start [2025-04-08 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859063', 'tblTempUsageDetail_20' ) end [2025-04-08 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859063', 'tblTempVendorCDR_20' ) start [2025-04-08 02:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859063', 'tblTempVendorCDR_20' ) end [2025-04-08 02:13:19] Production.INFO: ProcessCDR(1,14859063,1,1,2) [2025-04-08 02:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859063', 'tblTempUsageDetail_20' ) start [2025-04-08 02:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859063', 'tblTempUsageDetail_20' ) end [2025-04-08 02:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:13:22] Production.INFO: ==21939== Releasing lock... [2025-04-08 02:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:13:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:14:05 [end_date_ymd] => 2025-04-08 02:14:05 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:14:05' and `end` < '2025-04-08 02: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-04-08 02:14:18] Production.INFO: count ==493 [2025-04-08 02:14:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:14:05 - End Time 2025-04-08 02:14:05 [2025-04-08 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859068', 'tblTempUsageDetail_20' ) start [2025-04-08 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859068', 'tblTempUsageDetail_20' ) end [2025-04-08 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859068', 'tblTempVendorCDR_20' ) start [2025-04-08 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859068', 'tblTempVendorCDR_20' ) end [2025-04-08 02:14:18] Production.INFO: ProcessCDR(1,14859068,1,1,2) [2025-04-08 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859068', 'tblTempUsageDetail_20' ) start [2025-04-08 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859068', 'tblTempUsageDetail_20' ) end [2025-04-08 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:14:21] Production.INFO: ==22034== Releasing lock... [2025-04-08 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:14:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:15:05 [end_date_ymd] => 2025-04-08 02:15:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:15:05' and `end` < '2025-04-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-04-08 02:15:18] Production.INFO: count ==493 [2025-04-08 02:15:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:15:05 - End Time 2025-04-08 02:15:05 [2025-04-08 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859073', 'tblTempUsageDetail_20' ) start [2025-04-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859073', 'tblTempUsageDetail_20' ) end [2025-04-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859073', 'tblTempVendorCDR_20' ) start [2025-04-08 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859073', 'tblTempVendorCDR_20' ) end [2025-04-08 02:15:18] Production.INFO: ProcessCDR(1,14859073,1,1,2) [2025-04-08 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859073', 'tblTempUsageDetail_20' ) start [2025-04-08 02:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859073', 'tblTempUsageDetail_20' ) end [2025-04-08 02:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:15:22] Production.INFO: ==22126== Releasing lock... [2025-04-08 02:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:15:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:16:06 [end_date_ymd] => 2025-04-08 02:16:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:16:06' and `end` < '2025-04-08 02: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-04-08 02:16:19] Production.INFO: count ==493 [2025-04-08 02:16:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:16:06 - End Time 2025-04-08 02:16:06 [2025-04-08 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859078', 'tblTempUsageDetail_20' ) start [2025-04-08 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859078', 'tblTempUsageDetail_20' ) end [2025-04-08 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859078', 'tblTempVendorCDR_20' ) start [2025-04-08 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859078', 'tblTempVendorCDR_20' ) end [2025-04-08 02:16:19] Production.INFO: ProcessCDR(1,14859078,1,1,2) [2025-04-08 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859078', 'tblTempUsageDetail_20' ) start [2025-04-08 02:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859078', 'tblTempUsageDetail_20' ) end [2025-04-08 02:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:16:23] Production.INFO: ==22217== Releasing lock... [2025-04-08 02:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:16:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:17:06 [end_date_ymd] => 2025-04-08 02:17:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:17:06' and `end` < '2025-04-08 02: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-04-08 02:17:18] Production.INFO: count ==494 [2025-04-08 02:17:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:17:06 - End Time 2025-04-08 02:17:06 [2025-04-08 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859083', 'tblTempUsageDetail_20' ) start [2025-04-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859083', 'tblTempUsageDetail_20' ) end [2025-04-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859083', 'tblTempVendorCDR_20' ) start [2025-04-08 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859083', 'tblTempVendorCDR_20' ) end [2025-04-08 02:17:18] Production.INFO: ProcessCDR(1,14859083,1,1,2) [2025-04-08 02:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859083', 'tblTempUsageDetail_20' ) start [2025-04-08 02:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859083', 'tblTempUsageDetail_20' ) end [2025-04-08 02:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:17:23] Production.INFO: ==22306== Releasing lock... [2025-04-08 02:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:17:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:18:05 [end_date_ymd] => 2025-04-08 02:18:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:18:05' and `end` < '2025-04-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-04-08 02:18:18] Production.INFO: count ==495 [2025-04-08 02:18:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:18:05 - End Time 2025-04-08 02:18:05 [2025-04-08 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859088', 'tblTempUsageDetail_20' ) start [2025-04-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859088', 'tblTempUsageDetail_20' ) end [2025-04-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859088', 'tblTempVendorCDR_20' ) start [2025-04-08 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859088', 'tblTempVendorCDR_20' ) end [2025-04-08 02:18:18] Production.INFO: ProcessCDR(1,14859088,1,1,2) [2025-04-08 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859088', 'tblTempUsageDetail_20' ) start [2025-04-08 02:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859088', 'tblTempUsageDetail_20' ) end [2025-04-08 02:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:18:23] Production.INFO: ==22396== Releasing lock... [2025-04-08 02:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:18:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:19:05 [end_date_ymd] => 2025-04-08 02:19:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:19:05' and `end` < '2025-04-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-04-08 02:19:18] Production.INFO: count ==493 [2025-04-08 02:19:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:19:05 - End Time 2025-04-08 02:19:05 [2025-04-08 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859093', 'tblTempUsageDetail_20' ) start [2025-04-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859093', 'tblTempUsageDetail_20' ) end [2025-04-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859093', 'tblTempVendorCDR_20' ) start [2025-04-08 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859093', 'tblTempVendorCDR_20' ) end [2025-04-08 02:19:18] Production.INFO: ProcessCDR(1,14859093,1,1,2) [2025-04-08 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859093', 'tblTempUsageDetail_20' ) start [2025-04-08 02:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859093', 'tblTempUsageDetail_20' ) end [2025-04-08 02:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:19:22] Production.INFO: ==22486== Releasing lock... [2025-04-08 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:19:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:20:06 [end_date_ymd] => 2025-04-08 02:20:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:20:06' and `end` < '2025-04-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-04-08 02:20:19] Production.INFO: count ==493 [2025-04-08 02:20:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:20:06 - End Time 2025-04-08 02:20:06 [2025-04-08 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859099', 'tblTempUsageDetail_20' ) start [2025-04-08 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859099', 'tblTempUsageDetail_20' ) end [2025-04-08 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859099', 'tblTempVendorCDR_20' ) start [2025-04-08 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859099', 'tblTempVendorCDR_20' ) end [2025-04-08 02:20:19] Production.INFO: ProcessCDR(1,14859099,1,1,2) [2025-04-08 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859099', 'tblTempUsageDetail_20' ) start [2025-04-08 02:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859099', 'tblTempUsageDetail_20' ) end [2025-04-08 02:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:20:24] Production.INFO: ==22581== Releasing lock... [2025-04-08 02:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:20:24] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:21:05 [end_date_ymd] => 2025-04-08 02:21:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:21:05' and `end` < '2025-04-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-04-08 02:21:18] Production.INFO: count ==492 [2025-04-08 02:21:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:21:05 - End Time 2025-04-08 02:21:05 [2025-04-08 02:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859104', 'tblTempUsageDetail_20' ) start [2025-04-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859104', 'tblTempUsageDetail_20' ) end [2025-04-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859104', 'tblTempVendorCDR_20' ) start [2025-04-08 02:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859104', 'tblTempVendorCDR_20' ) end [2025-04-08 02:21:18] Production.INFO: ProcessCDR(1,14859104,1,1,2) [2025-04-08 02:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859104', 'tblTempUsageDetail_20' ) start [2025-04-08 02:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859104', 'tblTempUsageDetail_20' ) end [2025-04-08 02:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:21:21] Production.INFO: ==22667== Releasing lock... [2025-04-08 02:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:21:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:22:05 [end_date_ymd] => 2025-04-08 02:22:05 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:22:05' and `end` < '2025-04-08 02: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-04-08 02:22:18] Production.INFO: count ==492 [2025-04-08 02:22:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:22:05 - End Time 2025-04-08 02:22:05 [2025-04-08 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859109', 'tblTempUsageDetail_20' ) start [2025-04-08 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859109', 'tblTempUsageDetail_20' ) end [2025-04-08 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859109', 'tblTempVendorCDR_20' ) start [2025-04-08 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859109', 'tblTempVendorCDR_20' ) end [2025-04-08 02:22:18] Production.INFO: ProcessCDR(1,14859109,1,1,2) [2025-04-08 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859109', 'tblTempUsageDetail_20' ) start [2025-04-08 02:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859109', 'tblTempUsageDetail_20' ) end [2025-04-08 02:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:22:22] Production.INFO: ==22762== Releasing lock... [2025-04-08 02:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:22:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:23:06 [end_date_ymd] => 2025-04-08 02:23:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:23:06' and `end` < '2025-04-08 02: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-04-08 02:23:19] Production.INFO: count ==493 [2025-04-08 02:23:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:23:06 - End Time 2025-04-08 02:23:06 [2025-04-08 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859114', 'tblTempUsageDetail_20' ) start [2025-04-08 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859114', 'tblTempUsageDetail_20' ) end [2025-04-08 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859114', 'tblTempVendorCDR_20' ) start [2025-04-08 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859114', 'tblTempVendorCDR_20' ) end [2025-04-08 02:23:19] Production.INFO: ProcessCDR(1,14859114,1,1,2) [2025-04-08 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859114', 'tblTempUsageDetail_20' ) start [2025-04-08 02:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859114', 'tblTempUsageDetail_20' ) end [2025-04-08 02:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:23:22] Production.INFO: ==22856== Releasing lock... [2025-04-08 02:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:23:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:24:06 [end_date_ymd] => 2025-04-08 02:24:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:24:06' and `end` < '2025-04-08 02: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-04-08 02:24:19] Production.INFO: count ==496 [2025-04-08 02:24:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:24:06 - End Time 2025-04-08 02:24:06 [2025-04-08 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859119', 'tblTempUsageDetail_20' ) start [2025-04-08 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859119', 'tblTempUsageDetail_20' ) end [2025-04-08 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859119', 'tblTempVendorCDR_20' ) start [2025-04-08 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859119', 'tblTempVendorCDR_20' ) end [2025-04-08 02:24:19] Production.INFO: ProcessCDR(1,14859119,1,1,2) [2025-04-08 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859119', 'tblTempUsageDetail_20' ) start [2025-04-08 02:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859119', 'tblTempUsageDetail_20' ) end [2025-04-08 02:24:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:24:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:24:22] Production.INFO: ==22942== Releasing lock... [2025-04-08 02:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:24:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:25:05 [end_date_ymd] => 2025-04-08 02:25:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:25:05' and `end` < '2025-04-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-04-08 02:25:17] Production.INFO: count ==495 [2025-04-08 02:25:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:25:05 - End Time 2025-04-08 02:25:05 [2025-04-08 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859124', 'tblTempUsageDetail_20' ) start [2025-04-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859124', 'tblTempUsageDetail_20' ) end [2025-04-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859124', 'tblTempVendorCDR_20' ) start [2025-04-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859124', 'tblTempVendorCDR_20' ) end [2025-04-08 02:25:18] Production.INFO: ProcessCDR(1,14859124,1,1,2) [2025-04-08 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859124', 'tblTempUsageDetail_20' ) start [2025-04-08 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859124', 'tblTempUsageDetail_20' ) end [2025-04-08 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:25:21] Production.INFO: ==23033== Releasing lock... [2025-04-08 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:25:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:26:06 [end_date_ymd] => 2025-04-08 02:26:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:26:06' and `end` < '2025-04-08 02: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-04-08 02:26:19] Production.INFO: count ==495 [2025-04-08 02:26:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:26:06 - End Time 2025-04-08 02:26:06 [2025-04-08 02:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859129', 'tblTempUsageDetail_20' ) start [2025-04-08 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859129', 'tblTempUsageDetail_20' ) end [2025-04-08 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859129', 'tblTempVendorCDR_20' ) start [2025-04-08 02:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859129', 'tblTempVendorCDR_20' ) end [2025-04-08 02:26:19] Production.INFO: ProcessCDR(1,14859129,1,1,2) [2025-04-08 02:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859129', 'tblTempUsageDetail_20' ) start [2025-04-08 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859129', 'tblTempUsageDetail_20' ) end [2025-04-08 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:26:22] Production.INFO: ==23165== Releasing lock... [2025-04-08 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:26:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:27:06 [end_date_ymd] => 2025-04-08 02:27:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:27:06' and `end` < '2025-04-08 02: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-04-08 02:27:19] Production.INFO: count ==495 [2025-04-08 02:27:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:27:06 - End Time 2025-04-08 02:27:06 [2025-04-08 02:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859134', 'tblTempUsageDetail_20' ) start [2025-04-08 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859134', 'tblTempUsageDetail_20' ) end [2025-04-08 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859134', 'tblTempVendorCDR_20' ) start [2025-04-08 02:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859134', 'tblTempVendorCDR_20' ) end [2025-04-08 02:27:19] Production.INFO: ProcessCDR(1,14859134,1,1,2) [2025-04-08 02:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859134', 'tblTempUsageDetail_20' ) start [2025-04-08 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859134', 'tblTempUsageDetail_20' ) end [2025-04-08 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:27:22] Production.INFO: ==23257== Releasing lock... [2025-04-08 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:27:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:28:05 [end_date_ymd] => 2025-04-08 02:28:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:28:05' and `end` < '2025-04-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-04-08 02:28:18] Production.INFO: count ==495 [2025-04-08 02:28:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:28:05 - End Time 2025-04-08 02:28:05 [2025-04-08 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859139', 'tblTempUsageDetail_20' ) start [2025-04-08 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859139', 'tblTempUsageDetail_20' ) end [2025-04-08 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859139', 'tblTempVendorCDR_20' ) start [2025-04-08 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859139', 'tblTempVendorCDR_20' ) end [2025-04-08 02:28:18] Production.INFO: ProcessCDR(1,14859139,1,1,2) [2025-04-08 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859139', 'tblTempUsageDetail_20' ) start [2025-04-08 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859139', 'tblTempUsageDetail_20' ) end [2025-04-08 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:28:22] Production.INFO: ==23345== Releasing lock... [2025-04-08 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:28:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:29:05 [end_date_ymd] => 2025-04-08 02:29:05 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:29:05' and `end` < '2025-04-08 02: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-04-08 02:29:18] Production.INFO: count ==495 [2025-04-08 02:29:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:29:05 - End Time 2025-04-08 02:29:05 [2025-04-08 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859144', 'tblTempUsageDetail_20' ) start [2025-04-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859144', 'tblTempUsageDetail_20' ) end [2025-04-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859144', 'tblTempVendorCDR_20' ) start [2025-04-08 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859144', 'tblTempVendorCDR_20' ) end [2025-04-08 02:29:18] Production.INFO: ProcessCDR(1,14859144,1,1,2) [2025-04-08 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859144', 'tblTempUsageDetail_20' ) start [2025-04-08 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859144', 'tblTempUsageDetail_20' ) end [2025-04-08 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:29:21] Production.INFO: ==23435== Releasing lock... [2025-04-08 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:29:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:30:06 [end_date_ymd] => 2025-04-08 02:30:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:30:06' and `end` < '2025-04-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-04-08 02:30:19] Production.INFO: count ==492 [2025-04-08 02:30:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:30:06 - End Time 2025-04-08 02:30:06 [2025-04-08 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859150', 'tblTempUsageDetail_20' ) start [2025-04-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859150', 'tblTempUsageDetail_20' ) end [2025-04-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859150', 'tblTempVendorCDR_20' ) start [2025-04-08 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859150', 'tblTempVendorCDR_20' ) end [2025-04-08 02:30:19] Production.INFO: ProcessCDR(1,14859150,1,1,2) [2025-04-08 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859150', 'tblTempUsageDetail_20' ) start [2025-04-08 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859150', 'tblTempUsageDetail_20' ) end [2025-04-08 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:30:22] Production.INFO: ==23532== Releasing lock... [2025-04-08 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:30:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:31:05 [end_date_ymd] => 2025-04-08 02:31:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:31:05' and `end` < '2025-04-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-04-08 02:31:18] Production.INFO: count ==492 [2025-04-08 02:31:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:31:05 - End Time 2025-04-08 02:31:05 [2025-04-08 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859155', 'tblTempUsageDetail_20' ) start [2025-04-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859155', 'tblTempUsageDetail_20' ) end [2025-04-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859155', 'tblTempVendorCDR_20' ) start [2025-04-08 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859155', 'tblTempVendorCDR_20' ) end [2025-04-08 02:31:18] Production.INFO: ProcessCDR(1,14859155,1,1,2) [2025-04-08 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859155', 'tblTempUsageDetail_20' ) start [2025-04-08 02:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859155', 'tblTempUsageDetail_20' ) end [2025-04-08 02:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:31:22] Production.INFO: ==23623== Releasing lock... [2025-04-08 02:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:31:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:32:05 [end_date_ymd] => 2025-04-08 02:32:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:32:05' and `end` < '2025-04-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-04-08 02:32:18] Production.INFO: count ==491 [2025-04-08 02:32:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:32:05 - End Time 2025-04-08 02:32:05 [2025-04-08 02:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859160', 'tblTempUsageDetail_20' ) start [2025-04-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859160', 'tblTempUsageDetail_20' ) end [2025-04-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859160', 'tblTempVendorCDR_20' ) start [2025-04-08 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859160', 'tblTempVendorCDR_20' ) end [2025-04-08 02:32:18] Production.INFO: ProcessCDR(1,14859160,1,1,2) [2025-04-08 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859160', 'tblTempUsageDetail_20' ) start [2025-04-08 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859160', 'tblTempUsageDetail_20' ) end [2025-04-08 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:32:21] Production.INFO: ==23714== Releasing lock... [2025-04-08 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:32:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 02:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:33:06 [end_date_ymd] => 2025-04-08 02:33:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:33:06' and `end` < '2025-04-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-04-08 02:33:18] Production.INFO: count ==490 [2025-04-08 02:33:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:33:06 - End Time 2025-04-08 02:33:06 [2025-04-08 02:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859165', 'tblTempUsageDetail_20' ) start [2025-04-08 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859165', 'tblTempUsageDetail_20' ) end [2025-04-08 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859165', 'tblTempVendorCDR_20' ) start [2025-04-08 02:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859165', 'tblTempVendorCDR_20' ) end [2025-04-08 02:33:19] Production.INFO: ProcessCDR(1,14859165,1,1,2) [2025-04-08 02:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859165', 'tblTempUsageDetail_20' ) start [2025-04-08 02:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859165', 'tblTempUsageDetail_20' ) end [2025-04-08 02:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:33:22] Production.INFO: ==23806== Releasing lock... [2025-04-08 02:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:33:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:34:05 [end_date_ymd] => 2025-04-08 02:34:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:34:05' and `end` < '2025-04-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-04-08 02:34:18] Production.INFO: count ==490 [2025-04-08 02:34:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:34:05 - End Time 2025-04-08 02:34:05 [2025-04-08 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859170', 'tblTempUsageDetail_20' ) start [2025-04-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859170', 'tblTempUsageDetail_20' ) end [2025-04-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859170', 'tblTempVendorCDR_20' ) start [2025-04-08 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859170', 'tblTempVendorCDR_20' ) end [2025-04-08 02:34:18] Production.INFO: ProcessCDR(1,14859170,1,1,2) [2025-04-08 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859170', 'tblTempUsageDetail_20' ) start [2025-04-08 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859170', 'tblTempUsageDetail_20' ) end [2025-04-08 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:34:22] Production.INFO: ==23898== Releasing lock... [2025-04-08 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:34:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:35:06 [end_date_ymd] => 2025-04-08 02:35:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:35:06' and `end` < '2025-04-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-04-08 02:35:18] Production.INFO: count ==488 [2025-04-08 02:35:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:35:06 - End Time 2025-04-08 02:35:06 [2025-04-08 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859175', 'tblTempUsageDetail_20' ) start [2025-04-08 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859175', 'tblTempUsageDetail_20' ) end [2025-04-08 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859175', 'tblTempVendorCDR_20' ) start [2025-04-08 02:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859175', 'tblTempVendorCDR_20' ) end [2025-04-08 02:35:19] Production.INFO: ProcessCDR(1,14859175,1,1,2) [2025-04-08 02:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859175', 'tblTempUsageDetail_20' ) start [2025-04-08 02:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859175', 'tblTempUsageDetail_20' ) end [2025-04-08 02:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:35:23] Production.INFO: ==23984== Releasing lock... [2025-04-08 02:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:35:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:36:06 [end_date_ymd] => 2025-04-08 02:36:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:36:06' and `end` < '2025-04-08 02: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-04-08 02:36:19] Production.INFO: count ==487 [2025-04-08 02:36:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:36:06 - End Time 2025-04-08 02:36:06 [2025-04-08 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859180', 'tblTempUsageDetail_20' ) start [2025-04-08 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859180', 'tblTempUsageDetail_20' ) end [2025-04-08 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859180', 'tblTempVendorCDR_20' ) start [2025-04-08 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859180', 'tblTempVendorCDR_20' ) end [2025-04-08 02:36:19] Production.INFO: ProcessCDR(1,14859180,1,1,2) [2025-04-08 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859180', 'tblTempUsageDetail_20' ) start [2025-04-08 02:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859180', 'tblTempUsageDetail_20' ) end [2025-04-08 02:36:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:36:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:36:23] Production.INFO: ==24075== Releasing lock... [2025-04-08 02:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:36:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:37:06 [end_date_ymd] => 2025-04-08 02:37:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:37:06' and `end` < '2025-04-08 02: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-04-08 02:37:19] Production.INFO: count ==485 [2025-04-08 02:37:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:37:06 - End Time 2025-04-08 02:37:06 [2025-04-08 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859185', 'tblTempUsageDetail_20' ) start [2025-04-08 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859185', 'tblTempUsageDetail_20' ) end [2025-04-08 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859185', 'tblTempVendorCDR_20' ) start [2025-04-08 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859185', 'tblTempVendorCDR_20' ) end [2025-04-08 02:37:19] Production.INFO: ProcessCDR(1,14859185,1,1,2) [2025-04-08 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859185', 'tblTempUsageDetail_20' ) start [2025-04-08 02:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859185', 'tblTempUsageDetail_20' ) end [2025-04-08 02:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:37:23] Production.INFO: ==24167== Releasing lock... [2025-04-08 02:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:37:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:38:06 [end_date_ymd] => 2025-04-08 02:38:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:38:06' and `end` < '2025-04-08 02: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-04-08 02:38:18] Production.INFO: count ==484 [2025-04-08 02:38:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:38:06 - End Time 2025-04-08 02:38:06 [2025-04-08 02:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859190', 'tblTempUsageDetail_20' ) start [2025-04-08 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859190', 'tblTempUsageDetail_20' ) end [2025-04-08 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859190', 'tblTempVendorCDR_20' ) start [2025-04-08 02:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859190', 'tblTempVendorCDR_20' ) end [2025-04-08 02:38:19] Production.INFO: ProcessCDR(1,14859190,1,1,2) [2025-04-08 02:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859190', 'tblTempUsageDetail_20' ) start [2025-04-08 02:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859190', 'tblTempUsageDetail_20' ) end [2025-04-08 02:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:38:24] Production.INFO: ==24260== Releasing lock... [2025-04-08 02:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:38:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:39:06 [end_date_ymd] => 2025-04-08 02:39:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:39:06' and `end` < '2025-04-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-04-08 02:39:18] Production.INFO: count ==475 [2025-04-08 02:39:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:39:06 - End Time 2025-04-08 02:39:06 [2025-04-08 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859195', 'tblTempUsageDetail_20' ) start [2025-04-08 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859195', 'tblTempUsageDetail_20' ) end [2025-04-08 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859195', 'tblTempVendorCDR_20' ) start [2025-04-08 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859195', 'tblTempVendorCDR_20' ) end [2025-04-08 02:39:18] Production.INFO: ProcessCDR(1,14859195,1,1,2) [2025-04-08 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859195', 'tblTempUsageDetail_20' ) start [2025-04-08 02:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859195', 'tblTempUsageDetail_20' ) end [2025-04-08 02:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:39:23] Production.INFO: ==24358== Releasing lock... [2025-04-08 02:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:39:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:40:06 [end_date_ymd] => 2025-04-08 02:40:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:40:06' and `end` < '2025-04-08 02: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-04-08 02:40:19] Production.INFO: count ==486 [2025-04-08 02:40:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:40:06 - End Time 2025-04-08 02:40:06 [2025-04-08 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859201', 'tblTempUsageDetail_20' ) start [2025-04-08 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859201', 'tblTempUsageDetail_20' ) end [2025-04-08 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859201', 'tblTempVendorCDR_20' ) start [2025-04-08 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859201', 'tblTempVendorCDR_20' ) end [2025-04-08 02:40:19] Production.INFO: ProcessCDR(1,14859201,1,1,2) [2025-04-08 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859201', 'tblTempUsageDetail_20' ) start [2025-04-08 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859201', 'tblTempUsageDetail_20' ) end [2025-04-08 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:40:23] Production.INFO: ==24449== Releasing lock... [2025-04-08 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:41:06 [end_date_ymd] => 2025-04-08 02:41:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:41:06' and `end` < '2025-04-08 02: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-04-08 02:41:19] Production.INFO: count ==498 [2025-04-08 02:41:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:41:06 - End Time 2025-04-08 02:41:06 [2025-04-08 02:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859206', 'tblTempUsageDetail_20' ) start [2025-04-08 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859206', 'tblTempUsageDetail_20' ) end [2025-04-08 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859206', 'tblTempVendorCDR_20' ) start [2025-04-08 02:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859206', 'tblTempVendorCDR_20' ) end [2025-04-08 02:41:19] Production.INFO: ProcessCDR(1,14859206,1,1,2) [2025-04-08 02:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859206', 'tblTempUsageDetail_20' ) start [2025-04-08 02:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859206', 'tblTempUsageDetail_20' ) end [2025-04-08 02:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:41:23] Production.INFO: ==24579== Releasing lock... [2025-04-08 02:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:41:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:42:06 [end_date_ymd] => 2025-04-08 02:42:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:42:06' and `end` < '2025-04-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-04-08 02:42:18] Production.INFO: count ==497 [2025-04-08 02:42:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:42:06 - End Time 2025-04-08 02:42:06 [2025-04-08 02:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859211', 'tblTempUsageDetail_20' ) start [2025-04-08 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859211', 'tblTempUsageDetail_20' ) end [2025-04-08 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859211', 'tblTempVendorCDR_20' ) start [2025-04-08 02:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859211', 'tblTempVendorCDR_20' ) end [2025-04-08 02:42:19] Production.INFO: ProcessCDR(1,14859211,1,1,2) [2025-04-08 02:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859211', 'tblTempUsageDetail_20' ) start [2025-04-08 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859211', 'tblTempUsageDetail_20' ) end [2025-04-08 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:42:22] Production.INFO: ==24668== Releasing lock... [2025-04-08 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:42:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:43:06 [end_date_ymd] => 2025-04-08 02:43:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:43:06' and `end` < '2025-04-08 02: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-04-08 02:43:19] Production.INFO: count ==495 [2025-04-08 02:43:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:43:06 - End Time 2025-04-08 02:43:06 [2025-04-08 02:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859216', 'tblTempUsageDetail_20' ) start [2025-04-08 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859216', 'tblTempUsageDetail_20' ) end [2025-04-08 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859216', 'tblTempVendorCDR_20' ) start [2025-04-08 02:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859216', 'tblTempVendorCDR_20' ) end [2025-04-08 02:43:19] Production.INFO: ProcessCDR(1,14859216,1,1,2) [2025-04-08 02:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859216', 'tblTempUsageDetail_20' ) start [2025-04-08 02:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859216', 'tblTempUsageDetail_20' ) end [2025-04-08 02:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:43:23] Production.INFO: ==24756== Releasing lock... [2025-04-08 02:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:43:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:44:05 [end_date_ymd] => 2025-04-08 02:44:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:44:05' and `end` < '2025-04-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-04-08 02:44:17] Production.INFO: count ==494 [2025-04-08 02:44:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:44:05 - End Time 2025-04-08 02:44:05 [2025-04-08 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859221', 'tblTempUsageDetail_20' ) start [2025-04-08 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859221', 'tblTempUsageDetail_20' ) end [2025-04-08 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859221', 'tblTempVendorCDR_20' ) start [2025-04-08 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859221', 'tblTempVendorCDR_20' ) end [2025-04-08 02:44:18] Production.INFO: ProcessCDR(1,14859221,1,1,2) [2025-04-08 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859221', 'tblTempUsageDetail_20' ) start [2025-04-08 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859221', 'tblTempUsageDetail_20' ) end [2025-04-08 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:44:21] Production.INFO: ==24848== Releasing lock... [2025-04-08 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:44:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:45:06 [end_date_ymd] => 2025-04-08 02:45:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:45:06' and `end` < '2025-04-08 02: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-04-08 02:45:19] Production.INFO: count ==494 [2025-04-08 02:45:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:45:06 - End Time 2025-04-08 02:45:06 [2025-04-08 02:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859226', 'tblTempUsageDetail_20' ) start [2025-04-08 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859226', 'tblTempUsageDetail_20' ) end [2025-04-08 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859226', 'tblTempVendorCDR_20' ) start [2025-04-08 02:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859226', 'tblTempVendorCDR_20' ) end [2025-04-08 02:45:19] Production.INFO: ProcessCDR(1,14859226,1,1,2) [2025-04-08 02:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859226', 'tblTempUsageDetail_20' ) start [2025-04-08 02:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859226', 'tblTempUsageDetail_20' ) end [2025-04-08 02:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:45:23] Production.INFO: ==24936== Releasing lock... [2025-04-08 02:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:45:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:46:05 [end_date_ymd] => 2025-04-08 02:46:05 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:46:05' and `end` < '2025-04-08 02: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-04-08 02:46:17] Production.INFO: count ==494 [2025-04-08 02:46:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:46:05 - End Time 2025-04-08 02:46:05 [2025-04-08 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859231', 'tblTempUsageDetail_20' ) start [2025-04-08 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859231', 'tblTempUsageDetail_20' ) end [2025-04-08 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859231', 'tblTempVendorCDR_20' ) start [2025-04-08 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859231', 'tblTempVendorCDR_20' ) end [2025-04-08 02:46:18] Production.INFO: ProcessCDR(1,14859231,1,1,2) [2025-04-08 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859231', 'tblTempUsageDetail_20' ) start [2025-04-08 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859231', 'tblTempUsageDetail_20' ) end [2025-04-08 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:46:23] Production.INFO: ==25034== Releasing lock... [2025-04-08 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:46:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:47:05 [end_date_ymd] => 2025-04-08 02:47:05 [RateCDR] => 1 ) [2025-04-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-04-07 23:47:05' and `end` < '2025-04-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-04-08 02:47:18] Production.INFO: count ==494 [2025-04-08 02:47:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:47:05 - End Time 2025-04-08 02:47:05 [2025-04-08 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859236', 'tblTempUsageDetail_20' ) start [2025-04-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859236', 'tblTempUsageDetail_20' ) end [2025-04-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859236', 'tblTempVendorCDR_20' ) start [2025-04-08 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859236', 'tblTempVendorCDR_20' ) end [2025-04-08 02:47:18] Production.INFO: ProcessCDR(1,14859236,1,1,2) [2025-04-08 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859236', 'tblTempUsageDetail_20' ) start [2025-04-08 02:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859236', 'tblTempUsageDetail_20' ) end [2025-04-08 02:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:47:24] Production.INFO: ==25126== Releasing lock... [2025-04-08 02:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:47:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:48:06 [end_date_ymd] => 2025-04-08 02:48:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:48:06' and `end` < '2025-04-08 02: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-04-08 02:48:19] Production.INFO: count ==495 [2025-04-08 02:48:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:48:06 - End Time 2025-04-08 02:48:06 [2025-04-08 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859241', 'tblTempUsageDetail_20' ) start [2025-04-08 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859241', 'tblTempUsageDetail_20' ) end [2025-04-08 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859241', 'tblTempVendorCDR_20' ) start [2025-04-08 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859241', 'tblTempVendorCDR_20' ) end [2025-04-08 02:48:19] Production.INFO: ProcessCDR(1,14859241,1,1,2) [2025-04-08 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859241', 'tblTempUsageDetail_20' ) start [2025-04-08 02:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859241', 'tblTempUsageDetail_20' ) end [2025-04-08 02:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:48:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:48:25] Production.INFO: ==25215== Releasing lock... [2025-04-08 02:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:48:25] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:49:06 [end_date_ymd] => 2025-04-08 02:49:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:49:06' and `end` < '2025-04-08 02: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-04-08 02:49:19] Production.INFO: count ==493 [2025-04-08 02:49:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:49:06 - End Time 2025-04-08 02:49:06 [2025-04-08 02:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859246', 'tblTempUsageDetail_20' ) start [2025-04-08 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859246', 'tblTempUsageDetail_20' ) end [2025-04-08 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859246', 'tblTempVendorCDR_20' ) start [2025-04-08 02:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859246', 'tblTempVendorCDR_20' ) end [2025-04-08 02:49:19] Production.INFO: ProcessCDR(1,14859246,1,1,2) [2025-04-08 02:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859246', 'tblTempUsageDetail_20' ) start [2025-04-08 02:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859246', 'tblTempUsageDetail_20' ) end [2025-04-08 02:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:49:22] Production.INFO: ==25306== Releasing lock... [2025-04-08 02:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:49:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:50:07 [end_date_ymd] => 2025-04-08 02:50:07 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:50:07' and `end` < '2025-04-08 02: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-04-08 02:50:20] Production.INFO: count ==493 [2025-04-08 02:50:20] Production.ERROR: pbx CDR StartTime 2025-04-07 23:50:07 - End Time 2025-04-08 02:50:07 [2025-04-08 02:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859252', 'tblTempUsageDetail_20' ) start [2025-04-08 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859252', 'tblTempUsageDetail_20' ) end [2025-04-08 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859252', 'tblTempVendorCDR_20' ) start [2025-04-08 02:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859252', 'tblTempVendorCDR_20' ) end [2025-04-08 02:50:20] Production.INFO: ProcessCDR(1,14859252,1,1,2) [2025-04-08 02:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859252', 'tblTempUsageDetail_20' ) start [2025-04-08 02:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859252', 'tblTempUsageDetail_20' ) end [2025-04-08 02:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:50:24] Production.INFO: ==25399== Releasing lock... [2025-04-08 02:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:50:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:51:05 [end_date_ymd] => 2025-04-08 02:51:05 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:51:05' and `end` < '2025-04-08 02: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-04-08 02:51:18] Production.INFO: count ==495 [2025-04-08 02:51:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:51:05 - End Time 2025-04-08 02:51:05 [2025-04-08 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859257', 'tblTempUsageDetail_20' ) start [2025-04-08 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859257', 'tblTempUsageDetail_20' ) end [2025-04-08 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859257', 'tblTempVendorCDR_20' ) start [2025-04-08 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859257', 'tblTempVendorCDR_20' ) end [2025-04-08 02:51:18] Production.INFO: ProcessCDR(1,14859257,1,1,2) [2025-04-08 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859257', 'tblTempUsageDetail_20' ) start [2025-04-08 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859257', 'tblTempUsageDetail_20' ) end [2025-04-08 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:51:22] Production.INFO: ==25490== Releasing lock... [2025-04-08 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:51:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:52:06 [end_date_ymd] => 2025-04-08 02:52:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:52:06' and `end` < '2025-04-08 02: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-04-08 02:52:19] Production.INFO: count ==498 [2025-04-08 02:52:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:52:06 - End Time 2025-04-08 02:52:06 [2025-04-08 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859262', 'tblTempUsageDetail_20' ) start [2025-04-08 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859262', 'tblTempUsageDetail_20' ) end [2025-04-08 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859262', 'tblTempVendorCDR_20' ) start [2025-04-08 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859262', 'tblTempVendorCDR_20' ) end [2025-04-08 02:52:19] Production.INFO: ProcessCDR(1,14859262,1,1,2) [2025-04-08 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859262', 'tblTempUsageDetail_20' ) start [2025-04-08 02:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859262', 'tblTempUsageDetail_20' ) end [2025-04-08 02:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:52:23] Production.INFO: ==25582== Releasing lock... [2025-04-08 02:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:52:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:53:06 [end_date_ymd] => 2025-04-08 02:53:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:53:06' and `end` < '2025-04-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-04-08 02:53:19] Production.INFO: count ==497 [2025-04-08 02:53:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:53:06 - End Time 2025-04-08 02:53:06 [2025-04-08 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859267', 'tblTempUsageDetail_20' ) start [2025-04-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859267', 'tblTempUsageDetail_20' ) end [2025-04-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859267', 'tblTempVendorCDR_20' ) start [2025-04-08 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859267', 'tblTempVendorCDR_20' ) end [2025-04-08 02:53:19] Production.INFO: ProcessCDR(1,14859267,1,1,2) [2025-04-08 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859267', 'tblTempUsageDetail_20' ) start [2025-04-08 02:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859267', 'tblTempUsageDetail_20' ) end [2025-04-08 02:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:53:23] Production.INFO: ==25666== Releasing lock... [2025-04-08 02:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:53:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:54:06 [end_date_ymd] => 2025-04-08 02:54:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:54:06' and `end` < '2025-04-08 02: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-04-08 02:54:19] Production.INFO: count ==497 [2025-04-08 02:54:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:54:06 - End Time 2025-04-08 02:54:06 [2025-04-08 02:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859272', 'tblTempUsageDetail_20' ) start [2025-04-08 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859272', 'tblTempUsageDetail_20' ) end [2025-04-08 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859272', 'tblTempVendorCDR_20' ) start [2025-04-08 02:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859272', 'tblTempVendorCDR_20' ) end [2025-04-08 02:54:19] Production.INFO: ProcessCDR(1,14859272,1,1,2) [2025-04-08 02:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859272', 'tblTempUsageDetail_20' ) start [2025-04-08 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859272', 'tblTempUsageDetail_20' ) end [2025-04-08 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:54:23] Production.INFO: ==25756== Releasing lock... [2025-04-08 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:54:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:55:06 [end_date_ymd] => 2025-04-08 02:55:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:55:06' and `end` < '2025-04-08 02: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-04-08 02:55:18] Production.INFO: count ==497 [2025-04-08 02:55:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:55:06 - End Time 2025-04-08 02:55:06 [2025-04-08 02:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859277', 'tblTempUsageDetail_20' ) start [2025-04-08 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859277', 'tblTempUsageDetail_20' ) end [2025-04-08 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859277', 'tblTempVendorCDR_20' ) start [2025-04-08 02:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859277', 'tblTempVendorCDR_20' ) end [2025-04-08 02:55:19] Production.INFO: ProcessCDR(1,14859277,1,1,2) [2025-04-08 02:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859277', 'tblTempUsageDetail_20' ) start [2025-04-08 02:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859277', 'tblTempUsageDetail_20' ) end [2025-04-08 02:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:55:23] Production.INFO: ==25843== Releasing lock... [2025-04-08 02:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:55:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:56:06 [end_date_ymd] => 2025-04-08 02:56:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:56:06' and `end` < '2025-04-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-04-08 02:56:19] Production.INFO: count ==492 [2025-04-08 02:56:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:56:06 - End Time 2025-04-08 02:56:06 [2025-04-08 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859282', 'tblTempUsageDetail_20' ) start [2025-04-08 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859282', 'tblTempUsageDetail_20' ) end [2025-04-08 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859282', 'tblTempVendorCDR_20' ) start [2025-04-08 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859282', 'tblTempVendorCDR_20' ) end [2025-04-08 02:56:19] Production.INFO: ProcessCDR(1,14859282,1,1,2) [2025-04-08 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859282', 'tblTempUsageDetail_20' ) start [2025-04-08 02:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859282', 'tblTempUsageDetail_20' ) end [2025-04-08 02:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:56:23] Production.INFO: ==25935== Releasing lock... [2025-04-08 02:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:56:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:57:06 [end_date_ymd] => 2025-04-08 02:57:06 [RateCDR] => 1 ) [2025-04-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-04-07 23:57:06' and `end` < '2025-04-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-04-08 02:57:19] Production.INFO: count ==482 [2025-04-08 02:57:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:57:06 - End Time 2025-04-08 02:57:06 [2025-04-08 02:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859287', 'tblTempUsageDetail_20' ) start [2025-04-08 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859287', 'tblTempUsageDetail_20' ) end [2025-04-08 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859287', 'tblTempVendorCDR_20' ) start [2025-04-08 02:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859287', 'tblTempVendorCDR_20' ) end [2025-04-08 02:57:19] Production.INFO: ProcessCDR(1,14859287,1,1,2) [2025-04-08 02:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859287', 'tblTempUsageDetail_20' ) start [2025-04-08 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859287', 'tblTempUsageDetail_20' ) end [2025-04-08 02:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:57:23] Production.INFO: ==26063== Releasing lock... [2025-04-08 02:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:57:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 02:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:58:06 [end_date_ymd] => 2025-04-08 02:58:06 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:58:06' and `end` < '2025-04-08 02: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-04-08 02:58:19] Production.INFO: count ==476 [2025-04-08 02:58:19] Production.ERROR: pbx CDR StartTime 2025-04-07 23:58:06 - End Time 2025-04-08 02:58:06 [2025-04-08 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859292', 'tblTempUsageDetail_20' ) start [2025-04-08 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859292', 'tblTempUsageDetail_20' ) end [2025-04-08 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859292', 'tblTempVendorCDR_20' ) start [2025-04-08 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859292', 'tblTempVendorCDR_20' ) end [2025-04-08 02:58:19] Production.INFO: ProcessCDR(1,14859292,1,1,2) [2025-04-08 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859292', 'tblTempUsageDetail_20' ) start [2025-04-08 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859292', 'tblTempUsageDetail_20' ) end [2025-04-08 02:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:58:23] Production.INFO: ==26154== Releasing lock... [2025-04-08 02:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:58:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-07 23:59:05 [end_date_ymd] => 2025-04-08 02:59:05 [RateCDR] => 1 ) [2025-04-08 02: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-04-07 23:59:05' and `end` < '2025-04-08 02: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-04-08 02:59:18] Production.INFO: count ==470 [2025-04-08 02:59:18] Production.ERROR: pbx CDR StartTime 2025-04-07 23:59:05 - End Time 2025-04-08 02:59:05 [2025-04-08 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859297', 'tblTempUsageDetail_20' ) start [2025-04-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859297', 'tblTempUsageDetail_20' ) end [2025-04-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859297', 'tblTempVendorCDR_20' ) start [2025-04-08 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859297', 'tblTempVendorCDR_20' ) end [2025-04-08 02:59:18] Production.INFO: ProcessCDR(1,14859297,1,1,2) [2025-04-08 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859297', 'tblTempUsageDetail_20' ) start [2025-04-08 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859297', 'tblTempUsageDetail_20' ) end [2025-04-08 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 02:59:22] Production.INFO: ==26238== Releasing lock... [2025-04-08 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 02:59:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:00:07 [end_date_ymd] => 2025-04-08 03:00:07 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:00:07' and `end` < '2025-04-08 03: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-04-08 03:00:20] Production.INFO: count ==471 [2025-04-08 03:00:20] Production.ERROR: pbx CDR StartTime 2025-04-08 00:00:07 - End Time 2025-04-08 03:00:07 [2025-04-08 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859301', 'tblTempUsageDetail_20' ) start [2025-04-08 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859301', 'tblTempUsageDetail_20' ) end [2025-04-08 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859301', 'tblTempVendorCDR_20' ) start [2025-04-08 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859301', 'tblTempVendorCDR_20' ) end [2025-04-08 03:00:20] Production.INFO: ProcessCDR(1,14859301,1,1,2) [2025-04-08 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859301', 'tblTempUsageDetail_20' ) start [2025-04-08 03:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859301', 'tblTempUsageDetail_20' ) end [2025-04-08 03:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:00:24] Production.INFO: ==26340== Releasing lock... [2025-04-08 03:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:00:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:01:06 [end_date_ymd] => 2025-04-08 03:01:06 [RateCDR] => 1 ) [2025-04-08 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 00:01:06' and `end` < '2025-04-08 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 03:01:19] Production.INFO: count ==466 [2025-04-08 03:01:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:01:06 - End Time 2025-04-08 03:01:06 [2025-04-08 03:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859308', 'tblTempUsageDetail_20' ) start [2025-04-08 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859308', 'tblTempUsageDetail_20' ) end [2025-04-08 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859308', 'tblTempVendorCDR_20' ) start [2025-04-08 03:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859308', 'tblTempVendorCDR_20' ) end [2025-04-08 03:01:19] Production.INFO: ProcessCDR(1,14859308,1,1,2) [2025-04-08 03:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859308', 'tblTempUsageDetail_20' ) start [2025-04-08 03:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859308', 'tblTempUsageDetail_20' ) end [2025-04-08 03:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:01:23] Production.INFO: ==26444== Releasing lock... [2025-04-08 03:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:01:23] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:02:06 [end_date_ymd] => 2025-04-08 03:02:06 [RateCDR] => 1 ) [2025-04-08 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 00:02:06' and `end` < '2025-04-08 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 03:02:19] Production.INFO: count ==466 [2025-04-08 03:02:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:02:06 - End Time 2025-04-08 03:02:06 [2025-04-08 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859313', 'tblTempUsageDetail_20' ) start [2025-04-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859313', 'tblTempUsageDetail_20' ) end [2025-04-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859313', 'tblTempVendorCDR_20' ) start [2025-04-08 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859313', 'tblTempVendorCDR_20' ) end [2025-04-08 03:02:19] Production.INFO: ProcessCDR(1,14859313,1,1,2) [2025-04-08 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859313', 'tblTempUsageDetail_20' ) start [2025-04-08 03:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859313', 'tblTempUsageDetail_20' ) end [2025-04-08 03:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:02:23] Production.INFO: ==26615== Releasing lock... [2025-04-08 03:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:02:23] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:03:05 [end_date_ymd] => 2025-04-08 03:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:03:05' and `end` < '2025-04-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-04-08 03:03:17] Production.INFO: count ==463 [2025-04-08 03:03:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:03:05 - End Time 2025-04-08 03:03:05 [2025-04-08 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859318', 'tblTempUsageDetail_20' ) start [2025-04-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859318', 'tblTempUsageDetail_20' ) end [2025-04-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859318', 'tblTempVendorCDR_20' ) start [2025-04-08 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859318', 'tblTempVendorCDR_20' ) end [2025-04-08 03:03:18] Production.INFO: ProcessCDR(1,14859318,1,1,2) [2025-04-08 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859318', 'tblTempUsageDetail_20' ) start [2025-04-08 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859318', 'tblTempUsageDetail_20' ) end [2025-04-08 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:03:21] Production.INFO: ==26703== Releasing lock... [2025-04-08 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:03:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:04:06 [end_date_ymd] => 2025-04-08 03:04:06 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:04:06' and `end` < '2025-04-08 03: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-04-08 03:04:18] Production.INFO: count ==463 [2025-04-08 03:04:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:04:06 - End Time 2025-04-08 03:04:06 [2025-04-08 03:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859323', 'tblTempUsageDetail_20' ) start [2025-04-08 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859323', 'tblTempUsageDetail_20' ) end [2025-04-08 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859323', 'tblTempVendorCDR_20' ) start [2025-04-08 03:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859323', 'tblTempVendorCDR_20' ) end [2025-04-08 03:04:19] Production.INFO: ProcessCDR(1,14859323,1,1,2) [2025-04-08 03:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859323', 'tblTempUsageDetail_20' ) start [2025-04-08 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859323', 'tblTempUsageDetail_20' ) end [2025-04-08 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:04:22] Production.INFO: ==26798== Releasing lock... [2025-04-08 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:04:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:05:06 [end_date_ymd] => 2025-04-08 03:05:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:05:06' and `end` < '2025-04-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-04-08 03:05:18] Production.INFO: count ==461 [2025-04-08 03:05:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:05:06 - End Time 2025-04-08 03:05:06 [2025-04-08 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859328', 'tblTempUsageDetail_20' ) start [2025-04-08 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859328', 'tblTempUsageDetail_20' ) end [2025-04-08 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859328', 'tblTempVendorCDR_20' ) start [2025-04-08 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859328', 'tblTempVendorCDR_20' ) end [2025-04-08 03:05:18] Production.INFO: ProcessCDR(1,14859328,1,1,2) [2025-04-08 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859328', 'tblTempUsageDetail_20' ) start [2025-04-08 03:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859328', 'tblTempUsageDetail_20' ) end [2025-04-08 03:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:05:22] Production.INFO: ==26889== Releasing lock... [2025-04-08 03:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:05:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:06:05 [end_date_ymd] => 2025-04-08 03:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:06:05' and `end` < '2025-04-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-04-08 03:06:18] Production.INFO: count ==466 [2025-04-08 03:06:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:06:05 - End Time 2025-04-08 03:06:05 [2025-04-08 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859333', 'tblTempUsageDetail_20' ) start [2025-04-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859333', 'tblTempUsageDetail_20' ) end [2025-04-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859333', 'tblTempVendorCDR_20' ) start [2025-04-08 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859333', 'tblTempVendorCDR_20' ) end [2025-04-08 03:06:18] Production.INFO: ProcessCDR(1,14859333,1,1,2) [2025-04-08 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859333', 'tblTempUsageDetail_20' ) start [2025-04-08 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859333', 'tblTempUsageDetail_20' ) end [2025-04-08 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:06:22] Production.INFO: ==27058== Releasing lock... [2025-04-08 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:06:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:07:05 [end_date_ymd] => 2025-04-08 03:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:07:05' and `end` < '2025-04-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-04-08 03:07:18] Production.INFO: count ==462 [2025-04-08 03:07:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:07:05 - End Time 2025-04-08 03:07:05 [2025-04-08 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859338', 'tblTempUsageDetail_20' ) start [2025-04-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859338', 'tblTempUsageDetail_20' ) end [2025-04-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859338', 'tblTempVendorCDR_20' ) start [2025-04-08 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859338', 'tblTempVendorCDR_20' ) end [2025-04-08 03:07:18] Production.INFO: ProcessCDR(1,14859338,1,1,2) [2025-04-08 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859338', 'tblTempUsageDetail_20' ) start [2025-04-08 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859338', 'tblTempUsageDetail_20' ) end [2025-04-08 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:07:21] Production.INFO: ==27145== Releasing lock... [2025-04-08 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:07:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:08:06 [end_date_ymd] => 2025-04-08 03:08:06 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:08:06' and `end` < '2025-04-08 03: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-04-08 03:08:18] Production.INFO: count ==458 [2025-04-08 03:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:08:06 - End Time 2025-04-08 03:08:06 [2025-04-08 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859343', 'tblTempUsageDetail_20' ) start [2025-04-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859343', 'tblTempUsageDetail_20' ) end [2025-04-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859343', 'tblTempVendorCDR_20' ) start [2025-04-08 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859343', 'tblTempVendorCDR_20' ) end [2025-04-08 03:08:18] Production.INFO: ProcessCDR(1,14859343,1,1,2) [2025-04-08 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859343', 'tblTempUsageDetail_20' ) start [2025-04-08 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859343', 'tblTempUsageDetail_20' ) end [2025-04-08 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:08:22] Production.INFO: ==27240== Releasing lock... [2025-04-08 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:08:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:09:06 [end_date_ymd] => 2025-04-08 03:09:06 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:09:06' and `end` < '2025-04-08 03: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-04-08 03:09:19] Production.INFO: count ==456 [2025-04-08 03:09:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:09:06 - End Time 2025-04-08 03:09:06 [2025-04-08 03:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859348', 'tblTempUsageDetail_20' ) start [2025-04-08 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859348', 'tblTempUsageDetail_20' ) end [2025-04-08 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859348', 'tblTempVendorCDR_20' ) start [2025-04-08 03:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859348', 'tblTempVendorCDR_20' ) end [2025-04-08 03:09:19] Production.INFO: ProcessCDR(1,14859348,1,1,2) [2025-04-08 03:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859348', 'tblTempUsageDetail_20' ) start [2025-04-08 03:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859348', 'tblTempUsageDetail_20' ) end [2025-04-08 03:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:09:23] Production.INFO: ==27408== Releasing lock... [2025-04-08 03:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:09:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:10:06 [end_date_ymd] => 2025-04-08 03:10:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:10:06' and `end` < '2025-04-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-04-08 03:10:19] Production.INFO: count ==452 [2025-04-08 03:10:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:10:06 - End Time 2025-04-08 03:10:06 [2025-04-08 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859354', 'tblTempUsageDetail_20' ) start [2025-04-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859354', 'tblTempUsageDetail_20' ) end [2025-04-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859354', 'tblTempVendorCDR_20' ) start [2025-04-08 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859354', 'tblTempVendorCDR_20' ) end [2025-04-08 03:10:19] Production.INFO: ProcessCDR(1,14859354,1,1,2) [2025-04-08 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859354', 'tblTempUsageDetail_20' ) start [2025-04-08 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859354', 'tblTempUsageDetail_20' ) end [2025-04-08 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:10:22] Production.INFO: ==27501== Releasing lock... [2025-04-08 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:10:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:11:05 [end_date_ymd] => 2025-04-08 03:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:11:05' and `end` < '2025-04-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-04-08 03:11:18] Production.INFO: count ==432 [2025-04-08 03:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:11:05 - End Time 2025-04-08 03:11:05 [2025-04-08 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859359', 'tblTempUsageDetail_20' ) start [2025-04-08 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859359', 'tblTempUsageDetail_20' ) end [2025-04-08 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859359', 'tblTempVendorCDR_20' ) start [2025-04-08 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859359', 'tblTempVendorCDR_20' ) end [2025-04-08 03:11:18] Production.INFO: ProcessCDR(1,14859359,1,1,2) [2025-04-08 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859359', 'tblTempUsageDetail_20' ) start [2025-04-08 03:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859359', 'tblTempUsageDetail_20' ) end [2025-04-08 03:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:11:21] Production.INFO: ==27591== Releasing lock... [2025-04-08 03:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:11:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:12:05 [end_date_ymd] => 2025-04-08 03:12:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:12:05' and `end` < '2025-04-08 03: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-04-08 03:12:18] Production.INFO: count ==435 [2025-04-08 03:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:12:05 - End Time 2025-04-08 03:12:05 [2025-04-08 03:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859364', 'tblTempUsageDetail_20' ) start [2025-04-08 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859364', 'tblTempUsageDetail_20' ) end [2025-04-08 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859364', 'tblTempVendorCDR_20' ) start [2025-04-08 03:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859364', 'tblTempVendorCDR_20' ) end [2025-04-08 03:12:18] Production.INFO: ProcessCDR(1,14859364,1,1,2) [2025-04-08 03:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859364', 'tblTempUsageDetail_20' ) start [2025-04-08 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859364', 'tblTempUsageDetail_20' ) end [2025-04-08 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:12:21] Production.INFO: ==27719== Releasing lock... [2025-04-08 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:12:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:13:05 [end_date_ymd] => 2025-04-08 03:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:13:05' and `end` < '2025-04-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-04-08 03:13:18] Production.INFO: count ==435 [2025-04-08 03:13:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:13:05 - End Time 2025-04-08 03:13:05 [2025-04-08 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859369', 'tblTempUsageDetail_20' ) start [2025-04-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859369', 'tblTempUsageDetail_20' ) end [2025-04-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859369', 'tblTempVendorCDR_20' ) start [2025-04-08 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859369', 'tblTempVendorCDR_20' ) end [2025-04-08 03:13:18] Production.INFO: ProcessCDR(1,14859369,1,1,2) [2025-04-08 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859369', 'tblTempUsageDetail_20' ) start [2025-04-08 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859369', 'tblTempUsageDetail_20' ) end [2025-04-08 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:13:22] Production.INFO: ==27891== Releasing lock... [2025-04-08 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:13:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:14:05 [end_date_ymd] => 2025-04-08 03:14:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:14:05' and `end` < '2025-04-08 03: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-04-08 03:14:18] Production.INFO: count ==435 [2025-04-08 03:14:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:14:05 - End Time 2025-04-08 03:14:05 [2025-04-08 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859374', 'tblTempUsageDetail_20' ) start [2025-04-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859374', 'tblTempUsageDetail_20' ) end [2025-04-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859374', 'tblTempVendorCDR_20' ) start [2025-04-08 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859374', 'tblTempVendorCDR_20' ) end [2025-04-08 03:14:18] Production.INFO: ProcessCDR(1,14859374,1,1,2) [2025-04-08 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859374', 'tblTempUsageDetail_20' ) start [2025-04-08 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859374', 'tblTempUsageDetail_20' ) end [2025-04-08 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:14:21] Production.INFO: ==27986== Releasing lock... [2025-04-08 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:14:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:15:05 [end_date_ymd] => 2025-04-08 03:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:15:05' and `end` < '2025-04-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-04-08 03:15:18] Production.INFO: count ==432 [2025-04-08 03:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:15:05 - End Time 2025-04-08 03:15:05 [2025-04-08 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859379', 'tblTempUsageDetail_20' ) start [2025-04-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859379', 'tblTempUsageDetail_20' ) end [2025-04-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859379', 'tblTempVendorCDR_20' ) start [2025-04-08 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859379', 'tblTempVendorCDR_20' ) end [2025-04-08 03:15:18] Production.INFO: ProcessCDR(1,14859379,1,1,2) [2025-04-08 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859379', 'tblTempUsageDetail_20' ) start [2025-04-08 03:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859379', 'tblTempUsageDetail_20' ) end [2025-04-08 03:15:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:15:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:15:23] Production.INFO: ==28076== Releasing lock... [2025-04-08 03:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:15:23] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:16:05 [end_date_ymd] => 2025-04-08 03:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:16:05' and `end` < '2025-04-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-04-08 03:16:18] Production.INFO: count ==423 [2025-04-08 03:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:16:05 - End Time 2025-04-08 03:16:05 [2025-04-08 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859384', 'tblTempUsageDetail_20' ) start [2025-04-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859384', 'tblTempUsageDetail_20' ) end [2025-04-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859384', 'tblTempVendorCDR_20' ) start [2025-04-08 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859384', 'tblTempVendorCDR_20' ) end [2025-04-08 03:16:18] Production.INFO: ProcessCDR(1,14859384,1,1,2) [2025-04-08 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859384', 'tblTempUsageDetail_20' ) start [2025-04-08 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859384', 'tblTempUsageDetail_20' ) end [2025-04-08 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:16:22] Production.INFO: ==28169== Releasing lock... [2025-04-08 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:16:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:17:05 [end_date_ymd] => 2025-04-08 03:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:17:05' and `end` < '2025-04-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-04-08 03:17:18] Production.INFO: count ==422 [2025-04-08 03:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:17:05 - End Time 2025-04-08 03:17:05 [2025-04-08 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859389', 'tblTempUsageDetail_20' ) start [2025-04-08 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859389', 'tblTempUsageDetail_20' ) end [2025-04-08 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859389', 'tblTempVendorCDR_20' ) start [2025-04-08 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859389', 'tblTempVendorCDR_20' ) end [2025-04-08 03:17:18] Production.INFO: ProcessCDR(1,14859389,1,1,2) [2025-04-08 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859389', 'tblTempUsageDetail_20' ) start [2025-04-08 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859389', 'tblTempUsageDetail_20' ) end [2025-04-08 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:17:21] Production.INFO: ==28340== Releasing lock... [2025-04-08 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:17:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:18:05 [end_date_ymd] => 2025-04-08 03:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:18:05' and `end` < '2025-04-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-04-08 03:18:18] Production.INFO: count ==421 [2025-04-08 03:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:18:05 - End Time 2025-04-08 03:18:05 [2025-04-08 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859394', 'tblTempUsageDetail_20' ) start [2025-04-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859394', 'tblTempUsageDetail_20' ) end [2025-04-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859394', 'tblTempVendorCDR_20' ) start [2025-04-08 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859394', 'tblTempVendorCDR_20' ) end [2025-04-08 03:18:18] Production.INFO: ProcessCDR(1,14859394,1,1,2) [2025-04-08 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859394', 'tblTempUsageDetail_20' ) start [2025-04-08 03:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859394', 'tblTempUsageDetail_20' ) end [2025-04-08 03:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:18:22] Production.INFO: ==28430== Releasing lock... [2025-04-08 03:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:19:05 [end_date_ymd] => 2025-04-08 03:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:19:05' and `end` < '2025-04-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-04-08 03:19:18] Production.INFO: count ==421 [2025-04-08 03:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:19:05 - End Time 2025-04-08 03:19:05 [2025-04-08 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859399', 'tblTempUsageDetail_20' ) start [2025-04-08 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859399', 'tblTempUsageDetail_20' ) end [2025-04-08 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859399', 'tblTempVendorCDR_20' ) start [2025-04-08 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859399', 'tblTempVendorCDR_20' ) end [2025-04-08 03:19:18] Production.INFO: ProcessCDR(1,14859399,1,1,2) [2025-04-08 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859399', 'tblTempUsageDetail_20' ) start [2025-04-08 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859399', 'tblTempUsageDetail_20' ) end [2025-04-08 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:19:21] Production.INFO: ==28530== Releasing lock... [2025-04-08 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:19:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:20:06 [end_date_ymd] => 2025-04-08 03:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:20:06' and `end` < '2025-04-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-04-08 03:20:19] Production.INFO: count ==431 [2025-04-08 03:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:20:06 - End Time 2025-04-08 03:20:06 [2025-04-08 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859405', 'tblTempUsageDetail_20' ) start [2025-04-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859405', 'tblTempUsageDetail_20' ) end [2025-04-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859405', 'tblTempVendorCDR_20' ) start [2025-04-08 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859405', 'tblTempVendorCDR_20' ) end [2025-04-08 03:20:19] Production.INFO: ProcessCDR(1,14859405,1,1,2) [2025-04-08 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859405', 'tblTempUsageDetail_20' ) start [2025-04-08 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859405', 'tblTempUsageDetail_20' ) end [2025-04-08 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:20:22] Production.INFO: ==28622== Releasing lock... [2025-04-08 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:21:05 [end_date_ymd] => 2025-04-08 03:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:21:05' and `end` < '2025-04-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-04-08 03:21:18] Production.INFO: count ==437 [2025-04-08 03:21:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:21:05 - End Time 2025-04-08 03:21:05 [2025-04-08 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859410', 'tblTempUsageDetail_20' ) start [2025-04-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859410', 'tblTempUsageDetail_20' ) end [2025-04-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859410', 'tblTempVendorCDR_20' ) start [2025-04-08 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859410', 'tblTempVendorCDR_20' ) end [2025-04-08 03:21:18] Production.INFO: ProcessCDR(1,14859410,1,1,2) [2025-04-08 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859410', 'tblTempUsageDetail_20' ) start [2025-04-08 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859410', 'tblTempUsageDetail_20' ) end [2025-04-08 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:21:21] Production.INFO: ==28711== Releasing lock... [2025-04-08 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:22:06 [end_date_ymd] => 2025-04-08 03:22:06 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:22:06' and `end` < '2025-04-08 03: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-04-08 03:22:19] Production.INFO: count ==435 [2025-04-08 03:22:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:22:06 - End Time 2025-04-08 03:22:06 [2025-04-08 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859415', 'tblTempUsageDetail_20' ) start [2025-04-08 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859415', 'tblTempUsageDetail_20' ) end [2025-04-08 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859415', 'tblTempVendorCDR_20' ) start [2025-04-08 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859415', 'tblTempVendorCDR_20' ) end [2025-04-08 03:22:19] Production.INFO: ProcessCDR(1,14859415,1,1,2) [2025-04-08 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859415', 'tblTempUsageDetail_20' ) start [2025-04-08 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859415', 'tblTempUsageDetail_20' ) end [2025-04-08 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:22:22] Production.INFO: ==28804== Releasing lock... [2025-04-08 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:22:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:23:06 [end_date_ymd] => 2025-04-08 03:23:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:23:06' and `end` < '2025-04-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-04-08 03:23:18] Production.INFO: count ==435 [2025-04-08 03:23:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:23:06 - End Time 2025-04-08 03:23:06 [2025-04-08 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859420', 'tblTempUsageDetail_20' ) start [2025-04-08 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859420', 'tblTempUsageDetail_20' ) end [2025-04-08 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859420', 'tblTempVendorCDR_20' ) start [2025-04-08 03:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859420', 'tblTempVendorCDR_20' ) end [2025-04-08 03:23:19] Production.INFO: ProcessCDR(1,14859420,1,1,2) [2025-04-08 03:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859420', 'tblTempUsageDetail_20' ) start [2025-04-08 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859420', 'tblTempUsageDetail_20' ) end [2025-04-08 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:23:22] Production.INFO: ==28893== Releasing lock... [2025-04-08 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:23:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:24:05 [end_date_ymd] => 2025-04-08 03:24:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:24:05' and `end` < '2025-04-08 03: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-04-08 03:24:18] Production.INFO: count ==433 [2025-04-08 03:24:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:24:05 - End Time 2025-04-08 03:24:05 [2025-04-08 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859425', 'tblTempUsageDetail_20' ) start [2025-04-08 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859425', 'tblTempUsageDetail_20' ) end [2025-04-08 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859425', 'tblTempVendorCDR_20' ) start [2025-04-08 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859425', 'tblTempVendorCDR_20' ) end [2025-04-08 03:24:18] Production.INFO: ProcessCDR(1,14859425,1,1,2) [2025-04-08 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859425', 'tblTempUsageDetail_20' ) start [2025-04-08 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859425', 'tblTempUsageDetail_20' ) end [2025-04-08 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:24:21] Production.INFO: ==28985== Releasing lock... [2025-04-08 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:25:06 [end_date_ymd] => 2025-04-08 03:25:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:25:06' and `end` < '2025-04-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-04-08 03:25:18] Production.INFO: count ==430 [2025-04-08 03:25:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:25:06 - End Time 2025-04-08 03:25:06 [2025-04-08 03:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859430', 'tblTempUsageDetail_20' ) start [2025-04-08 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859430', 'tblTempUsageDetail_20' ) end [2025-04-08 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859430', 'tblTempVendorCDR_20' ) start [2025-04-08 03:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859430', 'tblTempVendorCDR_20' ) end [2025-04-08 03:25:19] Production.INFO: ProcessCDR(1,14859430,1,1,2) [2025-04-08 03:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859430', 'tblTempUsageDetail_20' ) start [2025-04-08 03:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859430', 'tblTempUsageDetail_20' ) end [2025-04-08 03:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:25:22] Production.INFO: ==29079== Releasing lock... [2025-04-08 03:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:25:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:26:05 [end_date_ymd] => 2025-04-08 03:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:26:05' and `end` < '2025-04-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-04-08 03:26:18] Production.INFO: count ==429 [2025-04-08 03:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:26:05 - End Time 2025-04-08 03:26:05 [2025-04-08 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859435', 'tblTempUsageDetail_20' ) start [2025-04-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859435', 'tblTempUsageDetail_20' ) end [2025-04-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859435', 'tblTempVendorCDR_20' ) start [2025-04-08 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859435', 'tblTempVendorCDR_20' ) end [2025-04-08 03:26:18] Production.INFO: ProcessCDR(1,14859435,1,1,2) [2025-04-08 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859435', 'tblTempUsageDetail_20' ) start [2025-04-08 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859435', 'tblTempUsageDetail_20' ) end [2025-04-08 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:26:21] Production.INFO: ==29174== Releasing lock... [2025-04-08 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:27:05 [end_date_ymd] => 2025-04-08 03:27:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:27:05' and `end` < '2025-04-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-04-08 03:27:18] Production.INFO: count ==429 [2025-04-08 03:27:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:27:05 - End Time 2025-04-08 03:27:05 [2025-04-08 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859440', 'tblTempUsageDetail_20' ) start [2025-04-08 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859440', 'tblTempUsageDetail_20' ) end [2025-04-08 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859440', 'tblTempVendorCDR_20' ) start [2025-04-08 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859440', 'tblTempVendorCDR_20' ) end [2025-04-08 03:27:18] Production.INFO: ProcessCDR(1,14859440,1,1,2) [2025-04-08 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859440', 'tblTempUsageDetail_20' ) start [2025-04-08 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859440', 'tblTempUsageDetail_20' ) end [2025-04-08 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:27:21] Production.INFO: ==29263== Releasing lock... [2025-04-08 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:27:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:28:05 [end_date_ymd] => 2025-04-08 03:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:28:05' and `end` < '2025-04-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-04-08 03:28:18] Production.INFO: count ==429 [2025-04-08 03:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:28:05 - End Time 2025-04-08 03:28:05 [2025-04-08 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859445', 'tblTempUsageDetail_20' ) start [2025-04-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859445', 'tblTempUsageDetail_20' ) end [2025-04-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859445', 'tblTempVendorCDR_20' ) start [2025-04-08 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859445', 'tblTempVendorCDR_20' ) end [2025-04-08 03:28:18] Production.INFO: ProcessCDR(1,14859445,1,1,2) [2025-04-08 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859445', 'tblTempUsageDetail_20' ) start [2025-04-08 03:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859445', 'tblTempUsageDetail_20' ) end [2025-04-08 03:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:28:22] Production.INFO: ==29358== Releasing lock... [2025-04-08 03:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:28:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:29:05 [end_date_ymd] => 2025-04-08 03:29:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:29:05' and `end` < '2025-04-08 03: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-04-08 03:29:18] Production.INFO: count ==429 [2025-04-08 03:29:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:29:05 - End Time 2025-04-08 03:29:05 [2025-04-08 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859450', 'tblTempUsageDetail_20' ) start [2025-04-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859450', 'tblTempUsageDetail_20' ) end [2025-04-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859450', 'tblTempVendorCDR_20' ) start [2025-04-08 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859450', 'tblTempVendorCDR_20' ) end [2025-04-08 03:29:18] Production.INFO: ProcessCDR(1,14859450,1,1,2) [2025-04-08 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859450', 'tblTempUsageDetail_20' ) start [2025-04-08 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859450', 'tblTempUsageDetail_20' ) end [2025-04-08 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:29:21] Production.INFO: ==29486== Releasing lock... [2025-04-08 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:30:05 [end_date_ymd] => 2025-04-08 03:30:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:30:05' and `end` < '2025-04-08 03: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-04-08 03:30:18] Production.INFO: count ==429 [2025-04-08 03:30:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:30:05 - End Time 2025-04-08 03:30:05 [2025-04-08 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859455', 'tblTempUsageDetail_20' ) start [2025-04-08 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859455', 'tblTempUsageDetail_20' ) end [2025-04-08 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859455', 'tblTempVendorCDR_20' ) start [2025-04-08 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859455', 'tblTempVendorCDR_20' ) end [2025-04-08 03:30:18] Production.INFO: ProcessCDR(1,14859455,1,1,2) [2025-04-08 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859455', 'tblTempUsageDetail_20' ) start [2025-04-08 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859455', 'tblTempUsageDetail_20' ) end [2025-04-08 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:30:22] Production.INFO: ==29581== Releasing lock... [2025-04-08 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:30:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:31:05 [end_date_ymd] => 2025-04-08 03:31:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:31:05' and `end` < '2025-04-08 03: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-04-08 03:31:18] Production.INFO: count ==422 [2025-04-08 03:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:31:05 - End Time 2025-04-08 03:31:05 [2025-04-08 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859461', 'tblTempUsageDetail_20' ) start [2025-04-08 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859461', 'tblTempUsageDetail_20' ) end [2025-04-08 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859461', 'tblTempVendorCDR_20' ) start [2025-04-08 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859461', 'tblTempVendorCDR_20' ) end [2025-04-08 03:31:18] Production.INFO: ProcessCDR(1,14859461,1,1,2) [2025-04-08 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859461', 'tblTempUsageDetail_20' ) start [2025-04-08 03:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859461', 'tblTempUsageDetail_20' ) end [2025-04-08 03:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:31:22] Production.INFO: ==29673== Releasing lock... [2025-04-08 03:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:31:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:32:05 [end_date_ymd] => 2025-04-08 03:32:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:32:05' and `end` < '2025-04-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-04-08 03:32:18] Production.INFO: count ==422 [2025-04-08 03:32:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:32:05 - End Time 2025-04-08 03:32:05 [2025-04-08 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859466', 'tblTempUsageDetail_20' ) start [2025-04-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859466', 'tblTempUsageDetail_20' ) end [2025-04-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859466', 'tblTempVendorCDR_20' ) start [2025-04-08 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859466', 'tblTempVendorCDR_20' ) end [2025-04-08 03:32:18] Production.INFO: ProcessCDR(1,14859466,1,1,2) [2025-04-08 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859466', 'tblTempUsageDetail_20' ) start [2025-04-08 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859466', 'tblTempUsageDetail_20' ) end [2025-04-08 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:32:22] Production.INFO: ==29765== Releasing lock... [2025-04-08 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:32:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:33:05 [end_date_ymd] => 2025-04-08 03:33:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:33:05' and `end` < '2025-04-08 03: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-04-08 03:33:18] Production.INFO: count ==422 [2025-04-08 03:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:33:05 - End Time 2025-04-08 03:33:05 [2025-04-08 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859471', 'tblTempUsageDetail_20' ) start [2025-04-08 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859471', 'tblTempUsageDetail_20' ) end [2025-04-08 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859471', 'tblTempVendorCDR_20' ) start [2025-04-08 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859471', 'tblTempVendorCDR_20' ) end [2025-04-08 03:33:18] Production.INFO: ProcessCDR(1,14859471,1,1,2) [2025-04-08 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859471', 'tblTempUsageDetail_20' ) start [2025-04-08 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859471', 'tblTempUsageDetail_20' ) end [2025-04-08 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:33:22] Production.INFO: ==29854== Releasing lock... [2025-04-08 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:33:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:34:05 [end_date_ymd] => 2025-04-08 03:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:34:05' and `end` < '2025-04-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-04-08 03:34:17] Production.INFO: count ==419 [2025-04-08 03:34:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:34:05 - End Time 2025-04-08 03:34:05 [2025-04-08 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859476', 'tblTempUsageDetail_20' ) start [2025-04-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859476', 'tblTempUsageDetail_20' ) end [2025-04-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859476', 'tblTempVendorCDR_20' ) start [2025-04-08 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859476', 'tblTempVendorCDR_20' ) end [2025-04-08 03:34:18] Production.INFO: ProcessCDR(1,14859476,1,1,2) [2025-04-08 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859476', 'tblTempUsageDetail_20' ) start [2025-04-08 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859476', 'tblTempUsageDetail_20' ) end [2025-04-08 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:34:21] Production.INFO: ==29945== Releasing lock... [2025-04-08 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:34:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:35:06 [end_date_ymd] => 2025-04-08 03:35:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:35:06' and `end` < '2025-04-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-04-08 03:35:19] Production.INFO: count ==418 [2025-04-08 03:35:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:35:06 - End Time 2025-04-08 03:35:06 [2025-04-08 03:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859481', 'tblTempUsageDetail_20' ) start [2025-04-08 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859481', 'tblTempUsageDetail_20' ) end [2025-04-08 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859481', 'tblTempVendorCDR_20' ) start [2025-04-08 03:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859481', 'tblTempVendorCDR_20' ) end [2025-04-08 03:35:19] Production.INFO: ProcessCDR(1,14859481,1,1,2) [2025-04-08 03:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859481', 'tblTempUsageDetail_20' ) start [2025-04-08 03:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859481', 'tblTempUsageDetail_20' ) end [2025-04-08 03:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:35:22] Production.INFO: ==30038== Releasing lock... [2025-04-08 03:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 03:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:36:05 [end_date_ymd] => 2025-04-08 03:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:36:05' and `end` < '2025-04-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-04-08 03:36:18] Production.INFO: count ==411 [2025-04-08 03:36:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:36:05 - End Time 2025-04-08 03:36:05 [2025-04-08 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859486', 'tblTempUsageDetail_20' ) start [2025-04-08 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859486', 'tblTempUsageDetail_20' ) end [2025-04-08 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859486', 'tblTempVendorCDR_20' ) start [2025-04-08 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859486', 'tblTempVendorCDR_20' ) end [2025-04-08 03:36:18] Production.INFO: ProcessCDR(1,14859486,1,1,2) [2025-04-08 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859486', 'tblTempUsageDetail_20' ) start [2025-04-08 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859486', 'tblTempUsageDetail_20' ) end [2025-04-08 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:36:22] Production.INFO: ==30133== Releasing lock... [2025-04-08 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:36:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:37:05 [end_date_ymd] => 2025-04-08 03:37:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:37:05' and `end` < '2025-04-08 03: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-04-08 03:37:18] Production.INFO: count ==408 [2025-04-08 03:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:37:05 - End Time 2025-04-08 03:37:05 [2025-04-08 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859491', 'tblTempUsageDetail_20' ) start [2025-04-08 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859491', 'tblTempUsageDetail_20' ) end [2025-04-08 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859491', 'tblTempVendorCDR_20' ) start [2025-04-08 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859491', 'tblTempVendorCDR_20' ) end [2025-04-08 03:37:18] Production.INFO: ProcessCDR(1,14859491,1,1,2) [2025-04-08 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859491', 'tblTempUsageDetail_20' ) start [2025-04-08 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859491', 'tblTempUsageDetail_20' ) end [2025-04-08 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:37:22] Production.INFO: ==30219== Releasing lock... [2025-04-08 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:38:06 [end_date_ymd] => 2025-04-08 03:38:06 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:38:06' and `end` < '2025-04-08 03: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-04-08 03:38:19] Production.INFO: count ==407 [2025-04-08 03:38:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:38:06 - End Time 2025-04-08 03:38:06 [2025-04-08 03:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859496', 'tblTempUsageDetail_20' ) start [2025-04-08 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859496', 'tblTempUsageDetail_20' ) end [2025-04-08 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859496', 'tblTempVendorCDR_20' ) start [2025-04-08 03:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859496', 'tblTempVendorCDR_20' ) end [2025-04-08 03:38:19] Production.INFO: ProcessCDR(1,14859496,1,1,2) [2025-04-08 03:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859496', 'tblTempUsageDetail_20' ) start [2025-04-08 03:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859496', 'tblTempUsageDetail_20' ) end [2025-04-08 03:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:38:23] Production.INFO: ==30313== Releasing lock... [2025-04-08 03:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:38:23] Production.INFO: 31 MB #Memory Used# [2025-04-08 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:39:05 [end_date_ymd] => 2025-04-08 03:39:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:39:05' and `end` < '2025-04-08 03: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-04-08 03:39:17] Production.INFO: count ==404 [2025-04-08 03:39:17] Production.ERROR: pbx CDR StartTime 2025-04-08 00:39:05 - End Time 2025-04-08 03:39:05 [2025-04-08 03:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859501', 'tblTempUsageDetail_20' ) start [2025-04-08 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859501', 'tblTempUsageDetail_20' ) end [2025-04-08 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859501', 'tblTempVendorCDR_20' ) start [2025-04-08 03:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859501', 'tblTempVendorCDR_20' ) end [2025-04-08 03:39:17] Production.INFO: ProcessCDR(1,14859501,1,1,2) [2025-04-08 03:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859501', 'tblTempUsageDetail_20' ) start [2025-04-08 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859501', 'tblTempUsageDetail_20' ) end [2025-04-08 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:39:21] Production.INFO: ==30402== Releasing lock... [2025-04-08 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:39:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:40:06 [end_date_ymd] => 2025-04-08 03:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:40:06' and `end` < '2025-04-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-04-08 03:40:19] Production.INFO: count ==393 [2025-04-08 03:40:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:40:06 - End Time 2025-04-08 03:40:06 [2025-04-08 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859507', 'tblTempUsageDetail_20' ) start [2025-04-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859507', 'tblTempUsageDetail_20' ) end [2025-04-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859507', 'tblTempVendorCDR_20' ) start [2025-04-08 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859507', 'tblTempVendorCDR_20' ) end [2025-04-08 03:40:19] Production.INFO: ProcessCDR(1,14859507,1,1,2) [2025-04-08 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859507', 'tblTempUsageDetail_20' ) start [2025-04-08 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859507', 'tblTempUsageDetail_20' ) end [2025-04-08 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:40:22] Production.INFO: ==30493== Releasing lock... [2025-04-08 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:40:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:41:05 [end_date_ymd] => 2025-04-08 03:41:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:41:05' and `end` < '2025-04-08 03: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-04-08 03:41:18] Production.INFO: count ==378 [2025-04-08 03:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:41:05 - End Time 2025-04-08 03:41:05 [2025-04-08 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859512', 'tblTempUsageDetail_20' ) start [2025-04-08 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859512', 'tblTempUsageDetail_20' ) end [2025-04-08 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859512', 'tblTempVendorCDR_20' ) start [2025-04-08 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859512', 'tblTempVendorCDR_20' ) end [2025-04-08 03:41:18] Production.INFO: ProcessCDR(1,14859512,1,1,2) [2025-04-08 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859512', 'tblTempUsageDetail_20' ) start [2025-04-08 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859512', 'tblTempUsageDetail_20' ) end [2025-04-08 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:41:21] Production.INFO: ==30585== Releasing lock... [2025-04-08 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:41:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:42:06 [end_date_ymd] => 2025-04-08 03:42:06 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:42:06' and `end` < '2025-04-08 03: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-04-08 03:42:18] Production.INFO: count ==373 [2025-04-08 03:42:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:42:06 - End Time 2025-04-08 03:42:06 [2025-04-08 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859517', 'tblTempUsageDetail_20' ) start [2025-04-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859517', 'tblTempUsageDetail_20' ) end [2025-04-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859517', 'tblTempVendorCDR_20' ) start [2025-04-08 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859517', 'tblTempVendorCDR_20' ) end [2025-04-08 03:42:18] Production.INFO: ProcessCDR(1,14859517,1,1,2) [2025-04-08 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859517', 'tblTempUsageDetail_20' ) start [2025-04-08 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859517', 'tblTempUsageDetail_20' ) end [2025-04-08 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:42:22] Production.INFO: ==30677== Releasing lock... [2025-04-08 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:42:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:43:05 [end_date_ymd] => 2025-04-08 03:43:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:43:05' and `end` < '2025-04-08 03: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-04-08 03:43:18] Production.INFO: count ==373 [2025-04-08 03:43:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:43:05 - End Time 2025-04-08 03:43:05 [2025-04-08 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859522', 'tblTempUsageDetail_20' ) start [2025-04-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859522', 'tblTempUsageDetail_20' ) end [2025-04-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859522', 'tblTempVendorCDR_20' ) start [2025-04-08 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859522', 'tblTempVendorCDR_20' ) end [2025-04-08 03:43:18] Production.INFO: ProcessCDR(1,14859522,1,1,2) [2025-04-08 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859522', 'tblTempUsageDetail_20' ) start [2025-04-08 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859522', 'tblTempUsageDetail_20' ) end [2025-04-08 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:43:21] Production.INFO: ==30771== Releasing lock... [2025-04-08 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:43:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:44:06 [end_date_ymd] => 2025-04-08 03:44:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:44:06' and `end` < '2025-04-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-04-08 03:44:19] Production.INFO: count ==373 [2025-04-08 03:44:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:44:06 - End Time 2025-04-08 03:44:06 [2025-04-08 03:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859527', 'tblTempUsageDetail_20' ) start [2025-04-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859527', 'tblTempUsageDetail_20' ) end [2025-04-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859527', 'tblTempVendorCDR_20' ) start [2025-04-08 03:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859527', 'tblTempVendorCDR_20' ) end [2025-04-08 03:44:19] Production.INFO: ProcessCDR(1,14859527,1,1,2) [2025-04-08 03:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859527', 'tblTempUsageDetail_20' ) start [2025-04-08 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859527', 'tblTempUsageDetail_20' ) end [2025-04-08 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:44:22] Production.INFO: ==30869== Releasing lock... [2025-04-08 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:44:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:45:06 [end_date_ymd] => 2025-04-08 03:45:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:45:06' and `end` < '2025-04-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-04-08 03:45:18] Production.INFO: count ==373 [2025-04-08 03:45:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:45:06 - End Time 2025-04-08 03:45:06 [2025-04-08 03:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859532', 'tblTempUsageDetail_20' ) start [2025-04-08 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859532', 'tblTempUsageDetail_20' ) end [2025-04-08 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859532', 'tblTempVendorCDR_20' ) start [2025-04-08 03:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859532', 'tblTempVendorCDR_20' ) end [2025-04-08 03:45:19] Production.INFO: ProcessCDR(1,14859532,1,1,2) [2025-04-08 03:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859532', 'tblTempUsageDetail_20' ) start [2025-04-08 03:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859532', 'tblTempUsageDetail_20' ) end [2025-04-08 03:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:45:22] Production.INFO: ==31035== Releasing lock... [2025-04-08 03:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:45:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:46:05 [end_date_ymd] => 2025-04-08 03:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:46:05' and `end` < '2025-04-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-04-08 03:46:17] Production.INFO: count ==369 [2025-04-08 03:46:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:46:05 - End Time 2025-04-08 03:46:05 [2025-04-08 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859537', 'tblTempUsageDetail_20' ) start [2025-04-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859537', 'tblTempUsageDetail_20' ) end [2025-04-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859537', 'tblTempVendorCDR_20' ) start [2025-04-08 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859537', 'tblTempVendorCDR_20' ) end [2025-04-08 03:46:18] Production.INFO: ProcessCDR(1,14859537,1,1,2) [2025-04-08 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859537', 'tblTempUsageDetail_20' ) start [2025-04-08 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859537', 'tblTempUsageDetail_20' ) end [2025-04-08 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:46:21] Production.INFO: ==31125== Releasing lock... [2025-04-08 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:47:06 [end_date_ymd] => 2025-04-08 03:47:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:47:06' and `end` < '2025-04-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-04-08 03:47:19] Production.INFO: count ==369 [2025-04-08 03:47:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:47:06 - End Time 2025-04-08 03:47:06 [2025-04-08 03:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859542', 'tblTempUsageDetail_20' ) start [2025-04-08 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859542', 'tblTempUsageDetail_20' ) end [2025-04-08 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859542', 'tblTempVendorCDR_20' ) start [2025-04-08 03:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859542', 'tblTempVendorCDR_20' ) end [2025-04-08 03:47:19] Production.INFO: ProcessCDR(1,14859542,1,1,2) [2025-04-08 03:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859542', 'tblTempUsageDetail_20' ) start [2025-04-08 03:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859542', 'tblTempUsageDetail_20' ) end [2025-04-08 03:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:47:22] Production.INFO: ==31214== Releasing lock... [2025-04-08 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:47:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 03:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:48:05 [end_date_ymd] => 2025-04-08 03:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:48:05' and `end` < '2025-04-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-04-08 03:48:18] Production.INFO: count ==363 [2025-04-08 03:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:48:05 - End Time 2025-04-08 03:48:05 [2025-04-08 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859547', 'tblTempUsageDetail_20' ) start [2025-04-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859547', 'tblTempUsageDetail_20' ) end [2025-04-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859547', 'tblTempVendorCDR_20' ) start [2025-04-08 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859547', 'tblTempVendorCDR_20' ) end [2025-04-08 03:48:18] Production.INFO: ProcessCDR(1,14859547,1,1,2) [2025-04-08 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859547', 'tblTempUsageDetail_20' ) start [2025-04-08 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859547', 'tblTempUsageDetail_20' ) end [2025-04-08 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:48:21] Production.INFO: ==31302== Releasing lock... [2025-04-08 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:48:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:49:05 [end_date_ymd] => 2025-04-08 03:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:49:05' and `end` < '2025-04-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-04-08 03:49:18] Production.INFO: count ==361 [2025-04-08 03:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:49:05 - End Time 2025-04-08 03:49:05 [2025-04-08 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859552', 'tblTempUsageDetail_20' ) start [2025-04-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859552', 'tblTempUsageDetail_20' ) end [2025-04-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859552', 'tblTempVendorCDR_20' ) start [2025-04-08 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859552', 'tblTempVendorCDR_20' ) end [2025-04-08 03:49:18] Production.INFO: ProcessCDR(1,14859552,1,1,2) [2025-04-08 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859552', 'tblTempUsageDetail_20' ) start [2025-04-08 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859552', 'tblTempUsageDetail_20' ) end [2025-04-08 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:49:21] Production.INFO: ==31401== Releasing lock... [2025-04-08 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:49:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:50:06 [end_date_ymd] => 2025-04-08 03:50:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:50:06' and `end` < '2025-04-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-04-08 03:50:18] Production.INFO: count ==352 [2025-04-08 03:50:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:50:06 - End Time 2025-04-08 03:50:06 [2025-04-08 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859558', 'tblTempUsageDetail_20' ) start [2025-04-08 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859558', 'tblTempUsageDetail_20' ) end [2025-04-08 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859558', 'tblTempVendorCDR_20' ) start [2025-04-08 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859558', 'tblTempVendorCDR_20' ) end [2025-04-08 03:50:18] Production.INFO: ProcessCDR(1,14859558,1,1,2) [2025-04-08 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859558', 'tblTempUsageDetail_20' ) start [2025-04-08 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859558', 'tblTempUsageDetail_20' ) end [2025-04-08 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:50:22] Production.INFO: ==31496== Releasing lock... [2025-04-08 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:50:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:51:05 [end_date_ymd] => 2025-04-08 03:51:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:51:05' and `end` < '2025-04-08 03: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-04-08 03:51:18] Production.INFO: count ==352 [2025-04-08 03:51:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:51:05 - End Time 2025-04-08 03:51:05 [2025-04-08 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859563', 'tblTempUsageDetail_20' ) start [2025-04-08 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859563', 'tblTempUsageDetail_20' ) end [2025-04-08 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859563', 'tblTempVendorCDR_20' ) start [2025-04-08 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859563', 'tblTempVendorCDR_20' ) end [2025-04-08 03:51:18] Production.INFO: ProcessCDR(1,14859563,1,1,2) [2025-04-08 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859563', 'tblTempUsageDetail_20' ) start [2025-04-08 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859563', 'tblTempUsageDetail_20' ) end [2025-04-08 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:51:22] Production.INFO: ==31593== Releasing lock... [2025-04-08 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:52:06 [end_date_ymd] => 2025-04-08 03:52:06 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:52:06' and `end` < '2025-04-08 03: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-04-08 03:52:19] Production.INFO: count ==352 [2025-04-08 03:52:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:52:06 - End Time 2025-04-08 03:52:06 [2025-04-08 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859568', 'tblTempUsageDetail_20' ) start [2025-04-08 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859568', 'tblTempUsageDetail_20' ) end [2025-04-08 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859568', 'tblTempVendorCDR_20' ) start [2025-04-08 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859568', 'tblTempVendorCDR_20' ) end [2025-04-08 03:52:19] Production.INFO: ProcessCDR(1,14859568,1,1,2) [2025-04-08 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859568', 'tblTempUsageDetail_20' ) start [2025-04-08 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859568', 'tblTempUsageDetail_20' ) end [2025-04-08 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:52:22] Production.INFO: ==31683== Releasing lock... [2025-04-08 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:53:06 [end_date_ymd] => 2025-04-08 03:53:06 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:53:06' and `end` < '2025-04-08 03: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-04-08 03:53:18] Production.INFO: count ==352 [2025-04-08 03:53:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:53:06 - End Time 2025-04-08 03:53:06 [2025-04-08 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859573', 'tblTempUsageDetail_20' ) start [2025-04-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859573', 'tblTempUsageDetail_20' ) end [2025-04-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859573', 'tblTempVendorCDR_20' ) start [2025-04-08 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859573', 'tblTempVendorCDR_20' ) end [2025-04-08 03:53:18] Production.INFO: ProcessCDR(1,14859573,1,1,2) [2025-04-08 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859573', 'tblTempUsageDetail_20' ) start [2025-04-08 03:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859573', 'tblTempUsageDetail_20' ) end [2025-04-08 03:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:53:22] Production.INFO: ==31776== Releasing lock... [2025-04-08 03:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:54:05 [end_date_ymd] => 2025-04-08 03:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:54:05' and `end` < '2025-04-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-04-08 03:54:18] Production.INFO: count ==350 [2025-04-08 03:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:54:05 - End Time 2025-04-08 03:54:05 [2025-04-08 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859578', 'tblTempUsageDetail_20' ) start [2025-04-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859578', 'tblTempUsageDetail_20' ) end [2025-04-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859578', 'tblTempVendorCDR_20' ) start [2025-04-08 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859578', 'tblTempVendorCDR_20' ) end [2025-04-08 03:54:18] Production.INFO: ProcessCDR(1,14859578,1,1,2) [2025-04-08 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859578', 'tblTempUsageDetail_20' ) start [2025-04-08 03:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859578', 'tblTempUsageDetail_20' ) end [2025-04-08 03:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:54:22] Production.INFO: ==31873== Releasing lock... [2025-04-08 03:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:54:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:55:05 [end_date_ymd] => 2025-04-08 03:55:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:55:05' and `end` < '2025-04-08 03: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-04-08 03:55:18] Production.INFO: count ==349 [2025-04-08 03:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:55:05 - End Time 2025-04-08 03:55:05 [2025-04-08 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859583', 'tblTempUsageDetail_20' ) start [2025-04-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859583', 'tblTempUsageDetail_20' ) end [2025-04-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859583', 'tblTempVendorCDR_20' ) start [2025-04-08 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859583', 'tblTempVendorCDR_20' ) end [2025-04-08 03:55:18] Production.INFO: ProcessCDR(1,14859583,1,1,2) [2025-04-08 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859583', 'tblTempUsageDetail_20' ) start [2025-04-08 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859583', 'tblTempUsageDetail_20' ) end [2025-04-08 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:55:21] Production.INFO: ==31964== Releasing lock... [2025-04-08 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:55:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:56:05 [end_date_ymd] => 2025-04-08 03:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:56:05' and `end` < '2025-04-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-04-08 03:56:18] Production.INFO: count ==349 [2025-04-08 03:56:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:56:05 - End Time 2025-04-08 03:56:05 [2025-04-08 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859588', 'tblTempUsageDetail_20' ) start [2025-04-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859588', 'tblTempUsageDetail_20' ) end [2025-04-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859588', 'tblTempVendorCDR_20' ) start [2025-04-08 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859588', 'tblTempVendorCDR_20' ) end [2025-04-08 03:56:18] Production.INFO: ProcessCDR(1,14859588,1,1,2) [2025-04-08 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859588', 'tblTempUsageDetail_20' ) start [2025-04-08 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859588', 'tblTempUsageDetail_20' ) end [2025-04-08 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:56:22] Production.INFO: ==32055== Releasing lock... [2025-04-08 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:56:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:57:05 [end_date_ymd] => 2025-04-08 03:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 00:57:05' and `end` < '2025-04-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-04-08 03:57:18] Production.INFO: count ==354 [2025-04-08 03:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:57:05 - End Time 2025-04-08 03:57:05 [2025-04-08 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859593', 'tblTempUsageDetail_20' ) start [2025-04-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859593', 'tblTempUsageDetail_20' ) end [2025-04-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859593', 'tblTempVendorCDR_20' ) start [2025-04-08 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859593', 'tblTempVendorCDR_20' ) end [2025-04-08 03:57:18] Production.INFO: ProcessCDR(1,14859593,1,1,2) [2025-04-08 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859593', 'tblTempUsageDetail_20' ) start [2025-04-08 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859593', 'tblTempUsageDetail_20' ) end [2025-04-08 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:57:21] Production.INFO: ==32147== Releasing lock... [2025-04-08 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:57:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:58:06 [end_date_ymd] => 2025-04-08 03:58:06 [RateCDR] => 1 ) [2025-04-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-04-08 00:58:06' and `end` < '2025-04-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-04-08 03:58:19] Production.INFO: count ==353 [2025-04-08 03:58:19] Production.ERROR: pbx CDR StartTime 2025-04-08 00:58:06 - End Time 2025-04-08 03:58:06 [2025-04-08 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859598', 'tblTempUsageDetail_20' ) start [2025-04-08 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859598', 'tblTempUsageDetail_20' ) end [2025-04-08 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859598', 'tblTempVendorCDR_20' ) start [2025-04-08 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859598', 'tblTempVendorCDR_20' ) end [2025-04-08 03:58:19] Production.INFO: ProcessCDR(1,14859598,1,1,2) [2025-04-08 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859598', 'tblTempUsageDetail_20' ) start [2025-04-08 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859598', 'tblTempUsageDetail_20' ) end [2025-04-08 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:58:22] Production.INFO: ==32236== Releasing lock... [2025-04-08 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:58:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 00:59:05 [end_date_ymd] => 2025-04-08 03:59:05 [RateCDR] => 1 ) [2025-04-08 03: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-04-08 00:59:05' and `end` < '2025-04-08 03: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-04-08 03:59:18] Production.INFO: count ==353 [2025-04-08 03:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 00:59:05 - End Time 2025-04-08 03:59:05 [2025-04-08 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859603', 'tblTempUsageDetail_20' ) start [2025-04-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859603', 'tblTempUsageDetail_20' ) end [2025-04-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859603', 'tblTempVendorCDR_20' ) start [2025-04-08 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859603', 'tblTempVendorCDR_20' ) end [2025-04-08 03:59:18] Production.INFO: ProcessCDR(1,14859603,1,1,2) [2025-04-08 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859603', 'tblTempUsageDetail_20' ) start [2025-04-08 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859603', 'tblTempUsageDetail_20' ) end [2025-04-08 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 03:59:22] Production.INFO: ==32328== Releasing lock... [2025-04-08 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 03:59:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:00:07 [end_date_ymd] => 2025-04-08 04:00:07 [RateCDR] => 1 ) [2025-04-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-04-08 01:00:07' and `end` < '2025-04-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-04-08 04:00:20] Production.INFO: count ==349 [2025-04-08 04:00:20] Production.ERROR: pbx CDR StartTime 2025-04-08 01:00:07 - End Time 2025-04-08 04:00:07 [2025-04-08 04:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859609', 'tblTempUsageDetail_20' ) start [2025-04-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859609', 'tblTempUsageDetail_20' ) end [2025-04-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859609', 'tblTempVendorCDR_20' ) start [2025-04-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859609', 'tblTempVendorCDR_20' ) end [2025-04-08 04:00:20] Production.INFO: ProcessCDR(1,14859609,1,1,2) [2025-04-08 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859609', 'tblTempUsageDetail_20' ) start [2025-04-08 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859609', 'tblTempUsageDetail_20' ) end [2025-04-08 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:00:23] Production.INFO: ==32461== Releasing lock... [2025-04-08 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:00:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:01:05 [end_date_ymd] => 2025-04-08 04:01:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:01:05' and `end` < '2025-04-08 04: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-04-08 04:01:18] Production.INFO: count ==348 [2025-04-08 04:01:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:01:05 - End Time 2025-04-08 04:01:05 [2025-04-08 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859615', 'tblTempUsageDetail_20' ) start [2025-04-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859615', 'tblTempUsageDetail_20' ) end [2025-04-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859615', 'tblTempVendorCDR_20' ) start [2025-04-08 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859615', 'tblTempVendorCDR_20' ) end [2025-04-08 04:01:18] Production.INFO: ProcessCDR(1,14859615,1,1,2) [2025-04-08 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859615', 'tblTempUsageDetail_20' ) start [2025-04-08 04:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859615', 'tblTempUsageDetail_20' ) end [2025-04-08 04:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:01:22] Production.INFO: ==32567== Releasing lock... [2025-04-08 04:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:02:06 [end_date_ymd] => 2025-04-08 04:02:06 [RateCDR] => 1 ) [2025-04-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-04-08 01:02:06' and `end` < '2025-04-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-04-08 04:02:18] Production.INFO: count ==351 [2025-04-08 04:02:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:02:06 - End Time 2025-04-08 04:02:06 [2025-04-08 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859620', 'tblTempUsageDetail_20' ) start [2025-04-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859620', 'tblTempUsageDetail_20' ) end [2025-04-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859620', 'tblTempVendorCDR_20' ) start [2025-04-08 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859620', 'tblTempVendorCDR_20' ) end [2025-04-08 04:02:18] Production.INFO: ProcessCDR(1,14859620,1,1,2) [2025-04-08 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859620', 'tblTempUsageDetail_20' ) start [2025-04-08 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859620', 'tblTempUsageDetail_20' ) end [2025-04-08 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:02:22] Production.INFO: ==32657== Releasing lock... [2025-04-08 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 04:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:03:06 [end_date_ymd] => 2025-04-08 04:03:06 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:03:06' and `end` < '2025-04-08 04: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-04-08 04:03:19] Production.INFO: count ==352 [2025-04-08 04:03:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:03:06 - End Time 2025-04-08 04:03:06 [2025-04-08 04:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859625', 'tblTempUsageDetail_20' ) start [2025-04-08 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859625', 'tblTempUsageDetail_20' ) end [2025-04-08 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859625', 'tblTempVendorCDR_20' ) start [2025-04-08 04:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859625', 'tblTempVendorCDR_20' ) end [2025-04-08 04:03:19] Production.INFO: ProcessCDR(1,14859625,1,1,2) [2025-04-08 04:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859625', 'tblTempUsageDetail_20' ) start [2025-04-08 04:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859625', 'tblTempUsageDetail_20' ) end [2025-04-08 04:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:03:22] Production.INFO: ==32753== Releasing lock... [2025-04-08 04:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:04:05 [end_date_ymd] => 2025-04-08 04:04:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:04:05' and `end` < '2025-04-08 04: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-04-08 04:04:18] Production.INFO: count ==362 [2025-04-08 04:04:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:04:05 - End Time 2025-04-08 04:04:05 [2025-04-08 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859630', 'tblTempUsageDetail_20' ) start [2025-04-08 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859630', 'tblTempUsageDetail_20' ) end [2025-04-08 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859630', 'tblTempVendorCDR_20' ) start [2025-04-08 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859630', 'tblTempVendorCDR_20' ) end [2025-04-08 04:04:18] Production.INFO: ProcessCDR(1,14859630,1,1,2) [2025-04-08 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859630', 'tblTempUsageDetail_20' ) start [2025-04-08 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859630', 'tblTempUsageDetail_20' ) end [2025-04-08 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:04:22] Production.INFO: ==397== Releasing lock... [2025-04-08 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:05:05 [end_date_ymd] => 2025-04-08 04:05:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:05:05' and `end` < '2025-04-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-04-08 04:05:18] Production.INFO: count ==361 [2025-04-08 04:05:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:05:05 - End Time 2025-04-08 04:05:05 [2025-04-08 04:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859635', 'tblTempUsageDetail_20' ) start [2025-04-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859635', 'tblTempUsageDetail_20' ) end [2025-04-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859635', 'tblTempVendorCDR_20' ) start [2025-04-08 04:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859635', 'tblTempVendorCDR_20' ) end [2025-04-08 04:05:18] Production.INFO: ProcessCDR(1,14859635,1,1,2) [2025-04-08 04:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859635', 'tblTempUsageDetail_20' ) start [2025-04-08 04:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859635', 'tblTempUsageDetail_20' ) end [2025-04-08 04:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:05:22] Production.INFO: ==488== Releasing lock... [2025-04-08 04:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:05:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:06:06 [end_date_ymd] => 2025-04-08 04:06:06 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:06:06' and `end` < '2025-04-08 04: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-04-08 04:06:19] Production.INFO: count ==366 [2025-04-08 04:06:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:06:06 - End Time 2025-04-08 04:06:06 [2025-04-08 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859640', 'tblTempUsageDetail_20' ) start [2025-04-08 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859640', 'tblTempUsageDetail_20' ) end [2025-04-08 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859640', 'tblTempVendorCDR_20' ) start [2025-04-08 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859640', 'tblTempVendorCDR_20' ) end [2025-04-08 04:06:19] Production.INFO: ProcessCDR(1,14859640,1,1,2) [2025-04-08 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859640', 'tblTempUsageDetail_20' ) start [2025-04-08 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859640', 'tblTempUsageDetail_20' ) end [2025-04-08 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:06:22] Production.INFO: ==582== Releasing lock... [2025-04-08 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:06:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:07:05 [end_date_ymd] => 2025-04-08 04:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:07:05' and `end` < '2025-04-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-04-08 04:07:18] Production.INFO: count ==365 [2025-04-08 04:07:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:07:05 - End Time 2025-04-08 04:07:05 [2025-04-08 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859645', 'tblTempUsageDetail_20' ) start [2025-04-08 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859645', 'tblTempUsageDetail_20' ) end [2025-04-08 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859645', 'tblTempVendorCDR_20' ) start [2025-04-08 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859645', 'tblTempVendorCDR_20' ) end [2025-04-08 04:07:18] Production.INFO: ProcessCDR(1,14859645,1,1,2) [2025-04-08 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859645', 'tblTempUsageDetail_20' ) start [2025-04-08 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859645', 'tblTempUsageDetail_20' ) end [2025-04-08 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:07:21] Production.INFO: ==700== Releasing lock... [2025-04-08 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:08:05 [end_date_ymd] => 2025-04-08 04:08:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:08:05' and `end` < '2025-04-08 04: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-04-08 04:08:18] Production.INFO: count ==366 [2025-04-08 04:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:08:05 - End Time 2025-04-08 04:08:05 [2025-04-08 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859650', 'tblTempUsageDetail_20' ) start [2025-04-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859650', 'tblTempUsageDetail_20' ) end [2025-04-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859650', 'tblTempVendorCDR_20' ) start [2025-04-08 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859650', 'tblTempVendorCDR_20' ) end [2025-04-08 04:08:18] Production.INFO: ProcessCDR(1,14859650,1,1,2) [2025-04-08 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859650', 'tblTempUsageDetail_20' ) start [2025-04-08 04:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859650', 'tblTempUsageDetail_20' ) end [2025-04-08 04:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:08:23] Production.INFO: ==799== Releasing lock... [2025-04-08 04:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:08:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 04:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:09:04 [end_date_ymd] => 2025-04-08 04:09:04 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:09:04' and `end` < '2025-04-08 04: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-04-08 04:09:17] Production.INFO: count ==361 [2025-04-08 04:09:17] Production.ERROR: pbx CDR StartTime 2025-04-08 01:09:04 - End Time 2025-04-08 04:09:04 [2025-04-08 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859655', 'tblTempUsageDetail_20' ) start [2025-04-08 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859655', 'tblTempUsageDetail_20' ) end [2025-04-08 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859655', 'tblTempVendorCDR_20' ) start [2025-04-08 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859655', 'tblTempVendorCDR_20' ) end [2025-04-08 04:09:17] Production.INFO: ProcessCDR(1,14859655,1,1,2) [2025-04-08 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859655', 'tblTempUsageDetail_20' ) start [2025-04-08 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859655', 'tblTempUsageDetail_20' ) end [2025-04-08 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:09:20] Production.INFO: ==889== Releasing lock... [2025-04-08 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:09:20] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:10:06 [end_date_ymd] => 2025-04-08 04:10:06 [RateCDR] => 1 ) [2025-04-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-04-08 01:10:06' and `end` < '2025-04-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-04-08 04:10:19] Production.INFO: count ==352 [2025-04-08 04:10:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:10:06 - End Time 2025-04-08 04:10:06 [2025-04-08 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859661', 'tblTempUsageDetail_20' ) start [2025-04-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859661', 'tblTempUsageDetail_20' ) end [2025-04-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859661', 'tblTempVendorCDR_20' ) start [2025-04-08 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859661', 'tblTempVendorCDR_20' ) end [2025-04-08 04:10:19] Production.INFO: ProcessCDR(1,14859661,1,1,2) [2025-04-08 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859661', 'tblTempUsageDetail_20' ) start [2025-04-08 04:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859661', 'tblTempUsageDetail_20' ) end [2025-04-08 04:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:10:24] Production.INFO: ==987== Releasing lock... [2025-04-08 04:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:10:24] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 04:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:11:04 [end_date_ymd] => 2025-04-08 04:11:04 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:11:04' and `end` < '2025-04-08 04: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-04-08 04:11:17] Production.INFO: count ==345 [2025-04-08 04:11:17] Production.ERROR: pbx CDR StartTime 2025-04-08 01:11:04 - End Time 2025-04-08 04:11:04 [2025-04-08 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859666', 'tblTempUsageDetail_20' ) start [2025-04-08 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859666', 'tblTempUsageDetail_20' ) end [2025-04-08 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859666', 'tblTempVendorCDR_20' ) start [2025-04-08 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859666', 'tblTempVendorCDR_20' ) end [2025-04-08 04:11:17] Production.INFO: ProcessCDR(1,14859666,1,1,2) [2025-04-08 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859666', 'tblTempUsageDetail_20' ) start [2025-04-08 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859666', 'tblTempUsageDetail_20' ) end [2025-04-08 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:11:21] Production.INFO: ==1085== Releasing lock... [2025-04-08 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:11:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:12:05 [end_date_ymd] => 2025-04-08 04:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:12:05' and `end` < '2025-04-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-04-08 04:12:18] Production.INFO: count ==342 [2025-04-08 04:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:12:05 - End Time 2025-04-08 04:12:05 [2025-04-08 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859671', 'tblTempUsageDetail_20' ) start [2025-04-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859671', 'tblTempUsageDetail_20' ) end [2025-04-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859671', 'tblTempVendorCDR_20' ) start [2025-04-08 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859671', 'tblTempVendorCDR_20' ) end [2025-04-08 04:12:18] Production.INFO: ProcessCDR(1,14859671,1,1,2) [2025-04-08 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859671', 'tblTempUsageDetail_20' ) start [2025-04-08 04:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859671', 'tblTempUsageDetail_20' ) end [2025-04-08 04:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:12:22] Production.INFO: ==1186== Releasing lock... [2025-04-08 04:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:12:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:13:05 [end_date_ymd] => 2025-04-08 04:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:13:05' and `end` < '2025-04-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-04-08 04:13:17] Production.INFO: count ==342 [2025-04-08 04:13:17] Production.ERROR: pbx CDR StartTime 2025-04-08 01:13:05 - End Time 2025-04-08 04:13:05 [2025-04-08 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859676', 'tblTempUsageDetail_20' ) start [2025-04-08 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859676', 'tblTempUsageDetail_20' ) end [2025-04-08 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859676', 'tblTempVendorCDR_20' ) start [2025-04-08 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859676', 'tblTempVendorCDR_20' ) end [2025-04-08 04:13:17] Production.INFO: ProcessCDR(1,14859676,1,1,2) [2025-04-08 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859676', 'tblTempUsageDetail_20' ) start [2025-04-08 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859676', 'tblTempUsageDetail_20' ) end [2025-04-08 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:13:21] Production.INFO: ==1286== Releasing lock... [2025-04-08 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:13:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:14:05 [end_date_ymd] => 2025-04-08 04:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:14:05' and `end` < '2025-04-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-04-08 04:14:18] Production.INFO: count ==341 [2025-04-08 04:14:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:14:05 - End Time 2025-04-08 04:14:05 [2025-04-08 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859681', 'tblTempUsageDetail_20' ) start [2025-04-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859681', 'tblTempUsageDetail_20' ) end [2025-04-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859681', 'tblTempVendorCDR_20' ) start [2025-04-08 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859681', 'tblTempVendorCDR_20' ) end [2025-04-08 04:14:18] Production.INFO: ProcessCDR(1,14859681,1,1,2) [2025-04-08 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859681', 'tblTempUsageDetail_20' ) start [2025-04-08 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859681', 'tblTempUsageDetail_20' ) end [2025-04-08 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:14:21] Production.INFO: ==1378== Releasing lock... [2025-04-08 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:14:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 04:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:15:06 [end_date_ymd] => 2025-04-08 04:15:06 [RateCDR] => 1 ) [2025-04-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-04-08 01:15:06' and `end` < '2025-04-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-04-08 04:15:18] Production.INFO: count ==341 [2025-04-08 04:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:15:06 - End Time 2025-04-08 04:15:06 [2025-04-08 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859686', 'tblTempUsageDetail_20' ) start [2025-04-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859686', 'tblTempUsageDetail_20' ) end [2025-04-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859686', 'tblTempVendorCDR_20' ) start [2025-04-08 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859686', 'tblTempVendorCDR_20' ) end [2025-04-08 04:15:18] Production.INFO: ProcessCDR(1,14859686,1,1,2) [2025-04-08 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859686', 'tblTempUsageDetail_20' ) start [2025-04-08 04:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859686', 'tblTempUsageDetail_20' ) end [2025-04-08 04:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:15:22] Production.INFO: ==1544== Releasing lock... [2025-04-08 04:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:15:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:16:05 [end_date_ymd] => 2025-04-08 04:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:16:05' and `end` < '2025-04-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-04-08 04:16:18] Production.INFO: count ==341 [2025-04-08 04:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:16:05 - End Time 2025-04-08 04:16:05 [2025-04-08 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859691', 'tblTempUsageDetail_20' ) start [2025-04-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859691', 'tblTempUsageDetail_20' ) end [2025-04-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859691', 'tblTempVendorCDR_20' ) start [2025-04-08 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859691', 'tblTempVendorCDR_20' ) end [2025-04-08 04:16:18] Production.INFO: ProcessCDR(1,14859691,1,1,2) [2025-04-08 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859691', 'tblTempUsageDetail_20' ) start [2025-04-08 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859691', 'tblTempUsageDetail_20' ) end [2025-04-08 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:16:21] Production.INFO: ==1638== Releasing lock... [2025-04-08 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 04:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:17:06 [end_date_ymd] => 2025-04-08 04:17:06 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:17:06' and `end` < '2025-04-08 04: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-04-08 04:17:18] Production.INFO: count ==341 [2025-04-08 04:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:17:06 - End Time 2025-04-08 04:17:06 [2025-04-08 04:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859696', 'tblTempUsageDetail_20' ) start [2025-04-08 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859696', 'tblTempUsageDetail_20' ) end [2025-04-08 04:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859696', 'tblTempVendorCDR_20' ) start [2025-04-08 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859696', 'tblTempVendorCDR_20' ) end [2025-04-08 04:17:19] Production.INFO: ProcessCDR(1,14859696,1,1,2) [2025-04-08 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859696', 'tblTempUsageDetail_20' ) start [2025-04-08 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859696', 'tblTempUsageDetail_20' ) end [2025-04-08 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:17:22] Production.INFO: ==1732== Releasing lock... [2025-04-08 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:17:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:18:06 [end_date_ymd] => 2025-04-08 04:18:06 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:18:06' and `end` < '2025-04-08 04: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-04-08 04:18:18] Production.INFO: count ==340 [2025-04-08 04:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:18:06 - End Time 2025-04-08 04:18:06 [2025-04-08 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859701', 'tblTempUsageDetail_20' ) start [2025-04-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859701', 'tblTempUsageDetail_20' ) end [2025-04-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859701', 'tblTempVendorCDR_20' ) start [2025-04-08 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859701', 'tblTempVendorCDR_20' ) end [2025-04-08 04:18:18] Production.INFO: ProcessCDR(1,14859701,1,1,2) [2025-04-08 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859701', 'tblTempUsageDetail_20' ) start [2025-04-08 04:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859701', 'tblTempUsageDetail_20' ) end [2025-04-08 04:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:18:22] Production.INFO: ==1822== Releasing lock... [2025-04-08 04:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:18:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:19:05 [end_date_ymd] => 2025-04-08 04:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:19:05' and `end` < '2025-04-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-04-08 04:19:18] Production.INFO: count ==335 [2025-04-08 04:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:19:05 - End Time 2025-04-08 04:19:05 [2025-04-08 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859706', 'tblTempUsageDetail_20' ) start [2025-04-08 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859706', 'tblTempUsageDetail_20' ) end [2025-04-08 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859706', 'tblTempVendorCDR_20' ) start [2025-04-08 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859706', 'tblTempVendorCDR_20' ) end [2025-04-08 04:19:18] Production.INFO: ProcessCDR(1,14859706,1,1,2) [2025-04-08 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859706', 'tblTempUsageDetail_20' ) start [2025-04-08 04:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859706', 'tblTempUsageDetail_20' ) end [2025-04-08 04:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:19:22] Production.INFO: ==1922== Releasing lock... [2025-04-08 04:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:19:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:20:06 [end_date_ymd] => 2025-04-08 04:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 01:20:06' and `end` < '2025-04-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-04-08 04:20:19] Production.INFO: count ==335 [2025-04-08 04:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:20:06 - End Time 2025-04-08 04:20:06 [2025-04-08 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859712', 'tblTempUsageDetail_20' ) start [2025-04-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859712', 'tblTempUsageDetail_20' ) end [2025-04-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859712', 'tblTempVendorCDR_20' ) start [2025-04-08 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859712', 'tblTempVendorCDR_20' ) end [2025-04-08 04:20:19] Production.INFO: ProcessCDR(1,14859712,1,1,2) [2025-04-08 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859712', 'tblTempUsageDetail_20' ) start [2025-04-08 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859712', 'tblTempUsageDetail_20' ) end [2025-04-08 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:20:22] Production.INFO: ==2042== Releasing lock... [2025-04-08 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:20:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:21:05 [end_date_ymd] => 2025-04-08 04:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:21:05' and `end` < '2025-04-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-04-08 04:21:18] Production.INFO: count ==330 [2025-04-08 04:21:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:21:05 - End Time 2025-04-08 04:21:05 [2025-04-08 04:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859717', 'tblTempUsageDetail_20' ) start [2025-04-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859717', 'tblTempUsageDetail_20' ) end [2025-04-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859717', 'tblTempVendorCDR_20' ) start [2025-04-08 04:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859717', 'tblTempVendorCDR_20' ) end [2025-04-08 04:21:18] Production.INFO: ProcessCDR(1,14859717,1,1,2) [2025-04-08 04:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859717', 'tblTempUsageDetail_20' ) start [2025-04-08 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859717', 'tblTempUsageDetail_20' ) end [2025-04-08 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:21:22] Production.INFO: ==2140== Releasing lock... [2025-04-08 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:21:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:22:05 [end_date_ymd] => 2025-04-08 04:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:22:05' and `end` < '2025-04-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-04-08 04:22:18] Production.INFO: count ==330 [2025-04-08 04:22:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:22:05 - End Time 2025-04-08 04:22:05 [2025-04-08 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859722', 'tblTempUsageDetail_20' ) start [2025-04-08 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859722', 'tblTempUsageDetail_20' ) end [2025-04-08 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859722', 'tblTempVendorCDR_20' ) start [2025-04-08 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859722', 'tblTempVendorCDR_20' ) end [2025-04-08 04:22:18] Production.INFO: ProcessCDR(1,14859722,1,1,2) [2025-04-08 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859722', 'tblTempUsageDetail_20' ) start [2025-04-08 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859722', 'tblTempUsageDetail_20' ) end [2025-04-08 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:22:21] Production.INFO: ==2256== Releasing lock... [2025-04-08 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:23:06 [end_date_ymd] => 2025-04-08 04:23:06 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:23:06' and `end` < '2025-04-08 04: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-04-08 04:23:18] Production.INFO: count ==337 [2025-04-08 04:23:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:23:06 - End Time 2025-04-08 04:23:06 [2025-04-08 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859727', 'tblTempUsageDetail_20' ) start [2025-04-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859727', 'tblTempUsageDetail_20' ) end [2025-04-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859727', 'tblTempVendorCDR_20' ) start [2025-04-08 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859727', 'tblTempVendorCDR_20' ) end [2025-04-08 04:23:18] Production.INFO: ProcessCDR(1,14859727,1,1,2) [2025-04-08 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859727', 'tblTempUsageDetail_20' ) start [2025-04-08 04:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859727', 'tblTempUsageDetail_20' ) end [2025-04-08 04:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:23:22] Production.INFO: ==2369== Releasing lock... [2025-04-08 04:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:23:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:24:05 [end_date_ymd] => 2025-04-08 04:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:24:05' and `end` < '2025-04-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-04-08 04:24:18] Production.INFO: count ==337 [2025-04-08 04:24:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:24:05 - End Time 2025-04-08 04:24:05 [2025-04-08 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859732', 'tblTempUsageDetail_20' ) start [2025-04-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859732', 'tblTempUsageDetail_20' ) end [2025-04-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859732', 'tblTempVendorCDR_20' ) start [2025-04-08 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859732', 'tblTempVendorCDR_20' ) end [2025-04-08 04:24:18] Production.INFO: ProcessCDR(1,14859732,1,1,2) [2025-04-08 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859732', 'tblTempUsageDetail_20' ) start [2025-04-08 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859732', 'tblTempUsageDetail_20' ) end [2025-04-08 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:24:21] Production.INFO: ==2477== Releasing lock... [2025-04-08 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:25:05 [end_date_ymd] => 2025-04-08 04:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:25:05' and `end` < '2025-04-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-04-08 04:25:18] Production.INFO: count ==337 [2025-04-08 04:25:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:25:05 - End Time 2025-04-08 04:25:05 [2025-04-08 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859737', 'tblTempUsageDetail_20' ) start [2025-04-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859737', 'tblTempUsageDetail_20' ) end [2025-04-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859737', 'tblTempVendorCDR_20' ) start [2025-04-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859737', 'tblTempVendorCDR_20' ) end [2025-04-08 04:25:18] Production.INFO: ProcessCDR(1,14859737,1,1,2) [2025-04-08 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859737', 'tblTempUsageDetail_20' ) start [2025-04-08 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859737', 'tblTempUsageDetail_20' ) end [2025-04-08 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:25:21] Production.INFO: ==2601== Releasing lock... [2025-04-08 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:26:05 [end_date_ymd] => 2025-04-08 04:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:26:05' and `end` < '2025-04-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-04-08 04:26:18] Production.INFO: count ==334 [2025-04-08 04:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:26:05 - End Time 2025-04-08 04:26:05 [2025-04-08 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859742', 'tblTempUsageDetail_20' ) start [2025-04-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859742', 'tblTempUsageDetail_20' ) end [2025-04-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859742', 'tblTempVendorCDR_20' ) start [2025-04-08 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859742', 'tblTempVendorCDR_20' ) end [2025-04-08 04:26:18] Production.INFO: ProcessCDR(1,14859742,1,1,2) [2025-04-08 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859742', 'tblTempUsageDetail_20' ) start [2025-04-08 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859742', 'tblTempUsageDetail_20' ) end [2025-04-08 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:26:21] Production.INFO: ==2702== Releasing lock... [2025-04-08 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:26:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:27:05 [end_date_ymd] => 2025-04-08 04:27:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:27:05' and `end` < '2025-04-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-04-08 04:27:18] Production.INFO: count ==334 [2025-04-08 04:27:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:27:05 - End Time 2025-04-08 04:27:05 [2025-04-08 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859747', 'tblTempUsageDetail_20' ) start [2025-04-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859747', 'tblTempUsageDetail_20' ) end [2025-04-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859747', 'tblTempVendorCDR_20' ) start [2025-04-08 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859747', 'tblTempVendorCDR_20' ) end [2025-04-08 04:27:18] Production.INFO: ProcessCDR(1,14859747,1,1,2) [2025-04-08 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859747', 'tblTempUsageDetail_20' ) start [2025-04-08 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859747', 'tblTempUsageDetail_20' ) end [2025-04-08 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:27:21] Production.INFO: ==2810== Releasing lock... [2025-04-08 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:28:05 [end_date_ymd] => 2025-04-08 04:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:28:05' and `end` < '2025-04-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-04-08 04:28:18] Production.INFO: count ==334 [2025-04-08 04:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:28:05 - End Time 2025-04-08 04:28:05 [2025-04-08 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859752', 'tblTempUsageDetail_20' ) start [2025-04-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859752', 'tblTempUsageDetail_20' ) end [2025-04-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859752', 'tblTempVendorCDR_20' ) start [2025-04-08 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859752', 'tblTempVendorCDR_20' ) end [2025-04-08 04:28:18] Production.INFO: ProcessCDR(1,14859752,1,1,2) [2025-04-08 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859752', 'tblTempUsageDetail_20' ) start [2025-04-08 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859752', 'tblTempUsageDetail_20' ) end [2025-04-08 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:28:22] Production.INFO: ==2921== Releasing lock... [2025-04-08 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:28:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:29:05 [end_date_ymd] => 2025-04-08 04:29:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:29:05' and `end` < '2025-04-08 04: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-04-08 04:29:18] Production.INFO: count ==328 [2025-04-08 04:29:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:29:05 - End Time 2025-04-08 04:29:05 [2025-04-08 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859757', 'tblTempUsageDetail_20' ) start [2025-04-08 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859757', 'tblTempUsageDetail_20' ) end [2025-04-08 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859757', 'tblTempVendorCDR_20' ) start [2025-04-08 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859757', 'tblTempVendorCDR_20' ) end [2025-04-08 04:29:18] Production.INFO: ProcessCDR(1,14859757,1,1,2) [2025-04-08 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859757', 'tblTempUsageDetail_20' ) start [2025-04-08 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859757', 'tblTempUsageDetail_20' ) end [2025-04-08 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:29:21] Production.INFO: ==3033== Releasing lock... [2025-04-08 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:30:06 [end_date_ymd] => 2025-04-08 04:30:06 [RateCDR] => 1 ) [2025-04-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-04-08 01:30:06' and `end` < '2025-04-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-04-08 04:30:19] Production.INFO: count ==319 [2025-04-08 04:30:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:30:06 - End Time 2025-04-08 04:30:06 [2025-04-08 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859764', 'tblTempUsageDetail_20' ) start [2025-04-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859764', 'tblTempUsageDetail_20' ) end [2025-04-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859764', 'tblTempVendorCDR_20' ) start [2025-04-08 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859764', 'tblTempVendorCDR_20' ) end [2025-04-08 04:30:19] Production.INFO: ProcessCDR(1,14859764,1,1,2) [2025-04-08 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859764', 'tblTempUsageDetail_20' ) start [2025-04-08 04:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859764', 'tblTempUsageDetail_20' ) end [2025-04-08 04:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:30:23] Production.INFO: ==3140== Releasing lock... [2025-04-08 04:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:30:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:31:05 [end_date_ymd] => 2025-04-08 04:31:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:31:05' and `end` < '2025-04-08 04: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-04-08 04:31:18] Production.INFO: count ==297 [2025-04-08 04:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:31:05 - End Time 2025-04-08 04:31:05 [2025-04-08 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859769', 'tblTempUsageDetail_20' ) start [2025-04-08 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859769', 'tblTempUsageDetail_20' ) end [2025-04-08 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859769', 'tblTempVendorCDR_20' ) start [2025-04-08 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859769', 'tblTempVendorCDR_20' ) end [2025-04-08 04:31:18] Production.INFO: ProcessCDR(1,14859769,1,1,2) [2025-04-08 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859769', 'tblTempUsageDetail_20' ) start [2025-04-08 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859769', 'tblTempUsageDetail_20' ) end [2025-04-08 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:31:21] Production.INFO: ==3566== Releasing lock... [2025-04-08 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:32:05 [end_date_ymd] => 2025-04-08 04:32:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:32:05' and `end` < '2025-04-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-04-08 04:32:18] Production.INFO: count ==293 [2025-04-08 04:32:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:32:05 - End Time 2025-04-08 04:32:05 [2025-04-08 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859774', 'tblTempUsageDetail_20' ) start [2025-04-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859774', 'tblTempUsageDetail_20' ) end [2025-04-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859774', 'tblTempVendorCDR_20' ) start [2025-04-08 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859774', 'tblTempVendorCDR_20' ) end [2025-04-08 04:32:18] Production.INFO: ProcessCDR(1,14859774,1,1,2) [2025-04-08 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859774', 'tblTempUsageDetail_20' ) start [2025-04-08 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859774', 'tblTempUsageDetail_20' ) end [2025-04-08 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:32:21] Production.INFO: ==3717== Releasing lock... [2025-04-08 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:32:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 04:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:33:04 [end_date_ymd] => 2025-04-08 04:33:04 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:33:04' and `end` < '2025-04-08 04: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-04-08 04:33:17] Production.INFO: count ==292 [2025-04-08 04:33:17] Production.ERROR: pbx CDR StartTime 2025-04-08 01:33:04 - End Time 2025-04-08 04:33:04 [2025-04-08 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859779', 'tblTempUsageDetail_20' ) start [2025-04-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859779', 'tblTempUsageDetail_20' ) end [2025-04-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859779', 'tblTempVendorCDR_20' ) start [2025-04-08 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859779', 'tblTempVendorCDR_20' ) end [2025-04-08 04:33:17] Production.INFO: ProcessCDR(1,14859779,1,1,2) [2025-04-08 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859779', 'tblTempUsageDetail_20' ) start [2025-04-08 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859779', 'tblTempUsageDetail_20' ) end [2025-04-08 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:33:20] Production.INFO: ==3833== Releasing lock... [2025-04-08 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:33:20] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:34:05 [end_date_ymd] => 2025-04-08 04:34:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:34:05' and `end` < '2025-04-08 04: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-04-08 04:34:18] Production.INFO: count ==292 [2025-04-08 04:34:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:34:05 - End Time 2025-04-08 04:34:05 [2025-04-08 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859784', 'tblTempUsageDetail_20' ) start [2025-04-08 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859784', 'tblTempUsageDetail_20' ) end [2025-04-08 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859784', 'tblTempVendorCDR_20' ) start [2025-04-08 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859784', 'tblTempVendorCDR_20' ) end [2025-04-08 04:34:18] Production.INFO: ProcessCDR(1,14859784,1,1,2) [2025-04-08 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859784', 'tblTempUsageDetail_20' ) start [2025-04-08 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859784', 'tblTempUsageDetail_20' ) end [2025-04-08 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:34:21] Production.INFO: ==3942== Releasing lock... [2025-04-08 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:34:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:35:05 [end_date_ymd] => 2025-04-08 04:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:35:05' and `end` < '2025-04-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-04-08 04:35:18] Production.INFO: count ==289 [2025-04-08 04:35:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:35:05 - End Time 2025-04-08 04:35:05 [2025-04-08 04:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859789', 'tblTempUsageDetail_20' ) start [2025-04-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859789', 'tblTempUsageDetail_20' ) end [2025-04-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859789', 'tblTempVendorCDR_20' ) start [2025-04-08 04:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859789', 'tblTempVendorCDR_20' ) end [2025-04-08 04:35:18] Production.INFO: ProcessCDR(1,14859789,1,1,2) [2025-04-08 04:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859789', 'tblTempUsageDetail_20' ) start [2025-04-08 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859789', 'tblTempUsageDetail_20' ) end [2025-04-08 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:35:22] Production.INFO: ==4063== Releasing lock... [2025-04-08 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:35:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:36:05 [end_date_ymd] => 2025-04-08 04:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:36:05' and `end` < '2025-04-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-04-08 04:36:17] Production.INFO: count ==289 [2025-04-08 04:36:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:36:05 - End Time 2025-04-08 04:36:05 [2025-04-08 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859794', 'tblTempUsageDetail_20' ) start [2025-04-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859794', 'tblTempUsageDetail_20' ) end [2025-04-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859794', 'tblTempVendorCDR_20' ) start [2025-04-08 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859794', 'tblTempVendorCDR_20' ) end [2025-04-08 04:36:18] Production.INFO: ProcessCDR(1,14859794,1,1,2) [2025-04-08 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859794', 'tblTempUsageDetail_20' ) start [2025-04-08 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859794', 'tblTempUsageDetail_20' ) end [2025-04-08 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:36:21] Production.INFO: ==4163== Releasing lock... [2025-04-08 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:37:06 [end_date_ymd] => 2025-04-08 04:37:06 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:37:06' and `end` < '2025-04-08 04: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-04-08 04:37:18] Production.INFO: count ==287 [2025-04-08 04:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:37:06 - End Time 2025-04-08 04:37:06 [2025-04-08 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859799', 'tblTempUsageDetail_20' ) start [2025-04-08 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859799', 'tblTempUsageDetail_20' ) end [2025-04-08 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859799', 'tblTempVendorCDR_20' ) start [2025-04-08 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859799', 'tblTempVendorCDR_20' ) end [2025-04-08 04:37:18] Production.INFO: ProcessCDR(1,14859799,1,1,2) [2025-04-08 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859799', 'tblTempUsageDetail_20' ) start [2025-04-08 04:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859799', 'tblTempUsageDetail_20' ) end [2025-04-08 04:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:37:22] Production.INFO: ==4288== Releasing lock... [2025-04-08 04:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:37:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:38:05 [end_date_ymd] => 2025-04-08 04:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:38:05' and `end` < '2025-04-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-04-08 04:38:18] Production.INFO: count ==279 [2025-04-08 04:38:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:38:05 - End Time 2025-04-08 04:38:05 [2025-04-08 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859804', 'tblTempUsageDetail_20' ) start [2025-04-08 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859804', 'tblTempUsageDetail_20' ) end [2025-04-08 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859804', 'tblTempVendorCDR_20' ) start [2025-04-08 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859804', 'tblTempVendorCDR_20' ) end [2025-04-08 04:38:18] Production.INFO: ProcessCDR(1,14859804,1,1,2) [2025-04-08 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859804', 'tblTempUsageDetail_20' ) start [2025-04-08 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859804', 'tblTempUsageDetail_20' ) end [2025-04-08 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:38:21] Production.INFO: ==4388== Releasing lock... [2025-04-08 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:39:05 [end_date_ymd] => 2025-04-08 04:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:39:05' and `end` < '2025-04-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-04-08 04:39:18] Production.INFO: count ==277 [2025-04-08 04:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:39:05 - End Time 2025-04-08 04:39:05 [2025-04-08 04:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859809', 'tblTempUsageDetail_20' ) start [2025-04-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859809', 'tblTempUsageDetail_20' ) end [2025-04-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859809', 'tblTempVendorCDR_20' ) start [2025-04-08 04:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859809', 'tblTempVendorCDR_20' ) end [2025-04-08 04:39:18] Production.INFO: ProcessCDR(1,14859809,1,1,2) [2025-04-08 04:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859809', 'tblTempUsageDetail_20' ) start [2025-04-08 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859809', 'tblTempUsageDetail_20' ) end [2025-04-08 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:39:22] Production.INFO: ==4480== Releasing lock... [2025-04-08 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:39:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:40:06 [end_date_ymd] => 2025-04-08 04:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 01:40:06' and `end` < '2025-04-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-04-08 04:40:18] Production.INFO: count ==269 [2025-04-08 04:40:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:40:06 - End Time 2025-04-08 04:40:06 [2025-04-08 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859814', 'tblTempUsageDetail_20' ) start [2025-04-08 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859814', 'tblTempUsageDetail_20' ) end [2025-04-08 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859814', 'tblTempVendorCDR_20' ) start [2025-04-08 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859814', 'tblTempVendorCDR_20' ) end [2025-04-08 04:40:18] Production.INFO: ProcessCDR(1,14859814,1,1,2) [2025-04-08 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859814', 'tblTempUsageDetail_20' ) start [2025-04-08 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859814', 'tblTempUsageDetail_20' ) end [2025-04-08 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:40:22] Production.INFO: ==4570== Releasing lock... [2025-04-08 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:41:05 [end_date_ymd] => 2025-04-08 04:41:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:41:05' and `end` < '2025-04-08 04: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-04-08 04:41:18] Production.INFO: count ==261 [2025-04-08 04:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:41:05 - End Time 2025-04-08 04:41:05 [2025-04-08 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859820', 'tblTempUsageDetail_20' ) start [2025-04-08 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859820', 'tblTempUsageDetail_20' ) end [2025-04-08 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859820', 'tblTempVendorCDR_20' ) start [2025-04-08 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859820', 'tblTempVendorCDR_20' ) end [2025-04-08 04:41:18] Production.INFO: ProcessCDR(1,14859820,1,1,2) [2025-04-08 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859820', 'tblTempUsageDetail_20' ) start [2025-04-08 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859820', 'tblTempUsageDetail_20' ) end [2025-04-08 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:41:21] Production.INFO: ==4671== Releasing lock... [2025-04-08 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:42:05 [end_date_ymd] => 2025-04-08 04:42:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:42:05' and `end` < '2025-04-08 04: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-04-08 04:42:17] Production.INFO: count ==261 [2025-04-08 04:42:17] Production.ERROR: pbx CDR StartTime 2025-04-08 01:42:05 - End Time 2025-04-08 04:42:05 [2025-04-08 04:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859825', 'tblTempUsageDetail_20' ) start [2025-04-08 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859825', 'tblTempUsageDetail_20' ) end [2025-04-08 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859825', 'tblTempVendorCDR_20' ) start [2025-04-08 04:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859825', 'tblTempVendorCDR_20' ) end [2025-04-08 04:42:17] Production.INFO: ProcessCDR(1,14859825,1,1,2) [2025-04-08 04:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859825', 'tblTempUsageDetail_20' ) start [2025-04-08 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859825', 'tblTempUsageDetail_20' ) end [2025-04-08 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:42:21] Production.INFO: ==4768== Releasing lock... [2025-04-08 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:43:05 [end_date_ymd] => 2025-04-08 04:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:43:05' and `end` < '2025-04-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-04-08 04:43:18] Production.INFO: count ==261 [2025-04-08 04:43:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:43:05 - End Time 2025-04-08 04:43:05 [2025-04-08 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859830', 'tblTempUsageDetail_20' ) start [2025-04-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859830', 'tblTempUsageDetail_20' ) end [2025-04-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859830', 'tblTempVendorCDR_20' ) start [2025-04-08 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859830', 'tblTempVendorCDR_20' ) end [2025-04-08 04:43:18] Production.INFO: ProcessCDR(1,14859830,1,1,2) [2025-04-08 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859830', 'tblTempUsageDetail_20' ) start [2025-04-08 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859830', 'tblTempUsageDetail_20' ) end [2025-04-08 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:43:22] Production.INFO: ==4863== Releasing lock... [2025-04-08 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:44:05 [end_date_ymd] => 2025-04-08 04:44:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:44:05' and `end` < '2025-04-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-04-08 04:44:18] Production.INFO: count ==260 [2025-04-08 04:44:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:44:05 - End Time 2025-04-08 04:44:05 [2025-04-08 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859835', 'tblTempUsageDetail_20' ) start [2025-04-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859835', 'tblTempUsageDetail_20' ) end [2025-04-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859835', 'tblTempVendorCDR_20' ) start [2025-04-08 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859835', 'tblTempVendorCDR_20' ) end [2025-04-08 04:44:18] Production.INFO: ProcessCDR(1,14859835,1,1,2) [2025-04-08 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859835', 'tblTempUsageDetail_20' ) start [2025-04-08 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859835', 'tblTempUsageDetail_20' ) end [2025-04-08 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:44:21] Production.INFO: ==4948== Releasing lock... [2025-04-08 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:45:05 [end_date_ymd] => 2025-04-08 04:45:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:45:05' and `end` < '2025-04-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-04-08 04:45:17] Production.INFO: count ==260 [2025-04-08 04:45:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:45:05 - End Time 2025-04-08 04:45:05 [2025-04-08 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859840', 'tblTempUsageDetail_20' ) start [2025-04-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859840', 'tblTempUsageDetail_20' ) end [2025-04-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859840', 'tblTempVendorCDR_20' ) start [2025-04-08 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859840', 'tblTempVendorCDR_20' ) end [2025-04-08 04:45:18] Production.INFO: ProcessCDR(1,14859840,1,1,2) [2025-04-08 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859840', 'tblTempUsageDetail_20' ) start [2025-04-08 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859840', 'tblTempUsageDetail_20' ) end [2025-04-08 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:45:21] Production.INFO: ==5035== Releasing lock... [2025-04-08 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:45:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:46:05 [end_date_ymd] => 2025-04-08 04:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:46:05' and `end` < '2025-04-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-04-08 04:46:18] Production.INFO: count ==260 [2025-04-08 04:46:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:46:05 - End Time 2025-04-08 04:46:05 [2025-04-08 04:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859845', 'tblTempUsageDetail_20' ) start [2025-04-08 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859845', 'tblTempUsageDetail_20' ) end [2025-04-08 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859845', 'tblTempVendorCDR_20' ) start [2025-04-08 04:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859845', 'tblTempVendorCDR_20' ) end [2025-04-08 04:46:18] Production.INFO: ProcessCDR(1,14859845,1,1,2) [2025-04-08 04:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859845', 'tblTempUsageDetail_20' ) start [2025-04-08 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859845', 'tblTempUsageDetail_20' ) end [2025-04-08 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:46:21] Production.INFO: ==5160== Releasing lock... [2025-04-08 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:47:05 [end_date_ymd] => 2025-04-08 04:47:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:47:05' and `end` < '2025-04-08 04: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-04-08 04:47:18] Production.INFO: count ==260 [2025-04-08 04:47:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:47:05 - End Time 2025-04-08 04:47:05 [2025-04-08 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859850', 'tblTempUsageDetail_20' ) start [2025-04-08 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859850', 'tblTempUsageDetail_20' ) end [2025-04-08 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859850', 'tblTempVendorCDR_20' ) start [2025-04-08 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859850', 'tblTempVendorCDR_20' ) end [2025-04-08 04:47:18] Production.INFO: ProcessCDR(1,14859850,1,1,2) [2025-04-08 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859850', 'tblTempUsageDetail_20' ) start [2025-04-08 04:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859850', 'tblTempUsageDetail_20' ) end [2025-04-08 04:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:47:22] Production.INFO: ==5247== Releasing lock... [2025-04-08 04:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:48:05 [end_date_ymd] => 2025-04-08 04:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:48:05' and `end` < '2025-04-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-04-08 04:48:18] Production.INFO: count ==260 [2025-04-08 04:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:48:05 - End Time 2025-04-08 04:48:05 [2025-04-08 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859855', 'tblTempUsageDetail_20' ) start [2025-04-08 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859855', 'tblTempUsageDetail_20' ) end [2025-04-08 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859855', 'tblTempVendorCDR_20' ) start [2025-04-08 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859855', 'tblTempVendorCDR_20' ) end [2025-04-08 04:48:18] Production.INFO: ProcessCDR(1,14859855,1,1,2) [2025-04-08 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859855', 'tblTempUsageDetail_20' ) start [2025-04-08 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859855', 'tblTempUsageDetail_20' ) end [2025-04-08 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:48:21] Production.INFO: ==5329== Releasing lock... [2025-04-08 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:48:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:49:05 [end_date_ymd] => 2025-04-08 04:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:49:05' and `end` < '2025-04-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-04-08 04:49:19] Production.INFO: count ==258 [2025-04-08 04:49:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:49:05 - End Time 2025-04-08 04:49:05 [2025-04-08 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859860', 'tblTempUsageDetail_20' ) start [2025-04-08 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859860', 'tblTempUsageDetail_20' ) end [2025-04-08 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859860', 'tblTempVendorCDR_20' ) start [2025-04-08 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859860', 'tblTempVendorCDR_20' ) end [2025-04-08 04:49:19] Production.INFO: ProcessCDR(1,14859860,1,1,2) [2025-04-08 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859860', 'tblTempUsageDetail_20' ) start [2025-04-08 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859860', 'tblTempUsageDetail_20' ) end [2025-04-08 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:49:22] Production.INFO: ==5431== Releasing lock... [2025-04-08 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:49:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:50:05 [end_date_ymd] => 2025-04-08 04:50:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:50:05' and `end` < '2025-04-08 04: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-04-08 04:50:19] Production.INFO: count ==244 [2025-04-08 04:50:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:50:05 - End Time 2025-04-08 04:50:05 [2025-04-08 04:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859865', 'tblTempUsageDetail_20' ) start [2025-04-08 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859865', 'tblTempUsageDetail_20' ) end [2025-04-08 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859865', 'tblTempVendorCDR_20' ) start [2025-04-08 04:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859865', 'tblTempVendorCDR_20' ) end [2025-04-08 04:50:19] Production.INFO: ProcessCDR(1,14859865,1,1,2) [2025-04-08 04:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859865', 'tblTempUsageDetail_20' ) start [2025-04-08 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859865', 'tblTempUsageDetail_20' ) end [2025-04-08 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:50:22] Production.INFO: ==5521== Releasing lock... [2025-04-08 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:51:05 [end_date_ymd] => 2025-04-08 04:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:51:05' and `end` < '2025-04-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-04-08 04:51:19] Production.INFO: count ==238 [2025-04-08 04:51:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:51:05 - End Time 2025-04-08 04:51:05 [2025-04-08 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859871', 'tblTempUsageDetail_20' ) start [2025-04-08 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859871', 'tblTempUsageDetail_20' ) end [2025-04-08 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859871', 'tblTempVendorCDR_20' ) start [2025-04-08 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859871', 'tblTempVendorCDR_20' ) end [2025-04-08 04:51:19] Production.INFO: ProcessCDR(1,14859871,1,1,2) [2025-04-08 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859871', 'tblTempUsageDetail_20' ) start [2025-04-08 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859871', 'tblTempUsageDetail_20' ) end [2025-04-08 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:51:22] Production.INFO: ==5608== Releasing lock... [2025-04-08 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:52:05 [end_date_ymd] => 2025-04-08 04:52:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:52:05' and `end` < '2025-04-08 04: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-04-08 04:52:19] Production.INFO: count ==238 [2025-04-08 04:52:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:52:05 - End Time 2025-04-08 04:52:05 [2025-04-08 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859876', 'tblTempUsageDetail_20' ) start [2025-04-08 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859876', 'tblTempUsageDetail_20' ) end [2025-04-08 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859876', 'tblTempVendorCDR_20' ) start [2025-04-08 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859876', 'tblTempVendorCDR_20' ) end [2025-04-08 04:52:19] Production.INFO: ProcessCDR(1,14859876,1,1,2) [2025-04-08 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859876', 'tblTempUsageDetail_20' ) start [2025-04-08 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859876', 'tblTempUsageDetail_20' ) end [2025-04-08 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:52:22] Production.INFO: ==5694== Releasing lock... [2025-04-08 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:53:05 [end_date_ymd] => 2025-04-08 04:53:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:53:05' and `end` < '2025-04-08 04: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-04-08 04:53:20] Production.INFO: count ==242 [2025-04-08 04:53:20] Production.ERROR: pbx CDR StartTime 2025-04-08 01:53:05 - End Time 2025-04-08 04:53:05 [2025-04-08 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859881', 'tblTempUsageDetail_20' ) start [2025-04-08 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859881', 'tblTempUsageDetail_20' ) end [2025-04-08 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859881', 'tblTempVendorCDR_20' ) start [2025-04-08 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859881', 'tblTempVendorCDR_20' ) end [2025-04-08 04:53:20] Production.INFO: ProcessCDR(1,14859881,1,1,2) [2025-04-08 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859881', 'tblTempUsageDetail_20' ) start [2025-04-08 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859881', 'tblTempUsageDetail_20' ) end [2025-04-08 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:53:23] Production.INFO: ==5785== Releasing lock... [2025-04-08 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:53:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:54:04 [end_date_ymd] => 2025-04-08 04:54:04 [RateCDR] => 1 ) [2025-04-08 04:54: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-04-08 01:54:04' and `end` < '2025-04-08 04:54: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-04-08 04:54:19] Production.INFO: count ==246 [2025-04-08 04:54:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:54:04 - End Time 2025-04-08 04:54:04 [2025-04-08 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859886', 'tblTempUsageDetail_20' ) start [2025-04-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859886', 'tblTempUsageDetail_20' ) end [2025-04-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859886', 'tblTempVendorCDR_20' ) start [2025-04-08 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859886', 'tblTempVendorCDR_20' ) end [2025-04-08 04:54:19] Production.INFO: ProcessCDR(1,14859886,1,1,2) [2025-04-08 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859886', 'tblTempUsageDetail_20' ) start [2025-04-08 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859886', 'tblTempUsageDetail_20' ) end [2025-04-08 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:54:22] Production.INFO: ==5865== Releasing lock... [2025-04-08 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:55:05 [end_date_ymd] => 2025-04-08 04:55:05 [RateCDR] => 1 ) [2025-04-08 04: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-04-08 01:55:05' and `end` < '2025-04-08 04: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-04-08 04:55:18] Production.INFO: count ==246 [2025-04-08 04:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:55:05 - End Time 2025-04-08 04:55:05 [2025-04-08 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859891', 'tblTempUsageDetail_20' ) start [2025-04-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859891', 'tblTempUsageDetail_20' ) end [2025-04-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859891', 'tblTempVendorCDR_20' ) start [2025-04-08 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859891', 'tblTempVendorCDR_20' ) end [2025-04-08 04:55:18] Production.INFO: ProcessCDR(1,14859891,1,1,2) [2025-04-08 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859891', 'tblTempUsageDetail_20' ) start [2025-04-08 04:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859891', 'tblTempUsageDetail_20' ) end [2025-04-08 04:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:55:21] Production.INFO: ==5950== Releasing lock... [2025-04-08 04:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:56:05 [end_date_ymd] => 2025-04-08 04:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:56:05' and `end` < '2025-04-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-04-08 04:56:17] Production.INFO: count ==246 [2025-04-08 04:56:17] Production.ERROR: pbx CDR StartTime 2025-04-08 01:56:05 - End Time 2025-04-08 04:56:05 [2025-04-08 04:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859896', 'tblTempUsageDetail_20' ) start [2025-04-08 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859896', 'tblTempUsageDetail_20' ) end [2025-04-08 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859896', 'tblTempVendorCDR_20' ) start [2025-04-08 04:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859896', 'tblTempVendorCDR_20' ) end [2025-04-08 04:56:17] Production.INFO: ProcessCDR(1,14859896,1,1,2) [2025-04-08 04:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859896', 'tblTempUsageDetail_20' ) start [2025-04-08 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859896', 'tblTempUsageDetail_20' ) end [2025-04-08 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:56:21] Production.INFO: ==6037== Releasing lock... [2025-04-08 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:57:05 [end_date_ymd] => 2025-04-08 04:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:57:05' and `end` < '2025-04-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-04-08 04:57:18] Production.INFO: count ==246 [2025-04-08 04:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:57:05 - End Time 2025-04-08 04:57:05 [2025-04-08 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859901', 'tblTempUsageDetail_20' ) start [2025-04-08 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859901', 'tblTempUsageDetail_20' ) end [2025-04-08 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859901', 'tblTempVendorCDR_20' ) start [2025-04-08 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859901', 'tblTempVendorCDR_20' ) end [2025-04-08 04:57:18] Production.INFO: ProcessCDR(1,14859901,1,1,2) [2025-04-08 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859901', 'tblTempUsageDetail_20' ) start [2025-04-08 04:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859901', 'tblTempUsageDetail_20' ) end [2025-04-08 04:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:57:22] Production.INFO: ==6121== Releasing lock... [2025-04-08 04:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:58:05 [end_date_ymd] => 2025-04-08 04:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:58:05' and `end` < '2025-04-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-04-08 04:58:18] Production.INFO: count ==241 [2025-04-08 04:58:19] Production.ERROR: pbx CDR StartTime 2025-04-08 01:58:05 - End Time 2025-04-08 04:58:05 [2025-04-08 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859906', 'tblTempUsageDetail_20' ) start [2025-04-08 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859906', 'tblTempUsageDetail_20' ) end [2025-04-08 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859906', 'tblTempVendorCDR_20' ) start [2025-04-08 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859906', 'tblTempVendorCDR_20' ) end [2025-04-08 04:58:19] Production.INFO: ProcessCDR(1,14859906,1,1,2) [2025-04-08 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859906', 'tblTempUsageDetail_20' ) start [2025-04-08 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859906', 'tblTempUsageDetail_20' ) end [2025-04-08 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:58:22] Production.INFO: ==6205== Releasing lock... [2025-04-08 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:58:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 01:59:05 [end_date_ymd] => 2025-04-08 04:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 01:59:05' and `end` < '2025-04-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-04-08 04:59:18] Production.INFO: count ==243 [2025-04-08 04:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 01:59:05 - End Time 2025-04-08 04:59:05 [2025-04-08 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859911', 'tblTempUsageDetail_20' ) start [2025-04-08 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859911', 'tblTempUsageDetail_20' ) end [2025-04-08 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859911', 'tblTempVendorCDR_20' ) start [2025-04-08 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859911', 'tblTempVendorCDR_20' ) end [2025-04-08 04:59:18] Production.INFO: ProcessCDR(1,14859911,1,1,2) [2025-04-08 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859911', 'tblTempUsageDetail_20' ) start [2025-04-08 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859911', 'tblTempUsageDetail_20' ) end [2025-04-08 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 04:59:21] Production.INFO: ==6284== Releasing lock... [2025-04-08 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 04:59:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:00:06 [end_date_ymd] => 2025-04-08 05:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 02:00:06' and `end` < '2025-04-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-04-08 05:00:20] Production.INFO: count ==243 [2025-04-08 05:00:20] Production.ERROR: pbx CDR StartTime 2025-04-08 02:00:06 - End Time 2025-04-08 05:00:06 [2025-04-08 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859916', 'tblTempUsageDetail_20' ) start [2025-04-08 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859916', 'tblTempUsageDetail_20' ) end [2025-04-08 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859916', 'tblTempVendorCDR_20' ) start [2025-04-08 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859916', 'tblTempVendorCDR_20' ) end [2025-04-08 05:00:20] Production.INFO: ProcessCDR(1,14859916,1,1,2) [2025-04-08 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859916', 'tblTempUsageDetail_20' ) start [2025-04-08 05:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859916', 'tblTempUsageDetail_20' ) end [2025-04-08 05:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:00:23] Production.INFO: ==6374== Releasing lock... [2025-04-08 05:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:00:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:01:05 [end_date_ymd] => 2025-04-08 05:01:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:01:05' and `end` < '2025-04-08 05: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-04-08 05:01:18] Production.INFO: count ==256 [2025-04-08 05:01:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:01:05 - End Time 2025-04-08 05:01:05 [2025-04-08 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859922', 'tblTempUsageDetail_20' ) start [2025-04-08 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859922', 'tblTempUsageDetail_20' ) end [2025-04-08 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859922', 'tblTempVendorCDR_20' ) start [2025-04-08 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859922', 'tblTempVendorCDR_20' ) end [2025-04-08 05:01:18] Production.INFO: ProcessCDR(1,14859922,1,1,2) [2025-04-08 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859922', 'tblTempUsageDetail_20' ) start [2025-04-08 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859922', 'tblTempUsageDetail_20' ) end [2025-04-08 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:01:21] Production.INFO: ==6470== Releasing lock... [2025-04-08 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:02:06 [end_date_ymd] => 2025-04-08 05:02:06 [RateCDR] => 1 ) [2025-04-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-04-08 02:02:06' and `end` < '2025-04-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-04-08 05:02:19] Production.INFO: count ==245 [2025-04-08 05:02:19] Production.ERROR: pbx CDR StartTime 2025-04-08 02:02:06 - End Time 2025-04-08 05:02:06 [2025-04-08 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859927', 'tblTempUsageDetail_20' ) start [2025-04-08 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859927', 'tblTempUsageDetail_20' ) end [2025-04-08 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859927', 'tblTempVendorCDR_20' ) start [2025-04-08 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859927', 'tblTempVendorCDR_20' ) end [2025-04-08 05:02:19] Production.INFO: ProcessCDR(1,14859927,1,1,2) [2025-04-08 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859927', 'tblTempUsageDetail_20' ) start [2025-04-08 05:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859927', 'tblTempUsageDetail_20' ) end [2025-04-08 05:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:02:23] Production.INFO: ==6603== Releasing lock... [2025-04-08 05:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:02:23] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:03:05 [end_date_ymd] => 2025-04-08 05:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:03:05' and `end` < '2025-04-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-04-08 05:03:18] Production.INFO: count ==246 [2025-04-08 05:03:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:03:05 - End Time 2025-04-08 05:03:05 [2025-04-08 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859932', 'tblTempUsageDetail_20' ) start [2025-04-08 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859932', 'tblTempUsageDetail_20' ) end [2025-04-08 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859932', 'tblTempVendorCDR_20' ) start [2025-04-08 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859932', 'tblTempVendorCDR_20' ) end [2025-04-08 05:03:18] Production.INFO: ProcessCDR(1,14859932,1,1,2) [2025-04-08 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859932', 'tblTempUsageDetail_20' ) start [2025-04-08 05:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859932', 'tblTempUsageDetail_20' ) end [2025-04-08 05:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:03:24] Production.INFO: ==6688== Releasing lock... [2025-04-08 05:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:03:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:04:06 [end_date_ymd] => 2025-04-08 05:04:06 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:04:06' and `end` < '2025-04-08 05: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-04-08 05:04:19] Production.INFO: count ==246 [2025-04-08 05:04:19] Production.ERROR: pbx CDR StartTime 2025-04-08 02:04:06 - End Time 2025-04-08 05:04:06 [2025-04-08 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859937', 'tblTempUsageDetail_20' ) start [2025-04-08 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859937', 'tblTempUsageDetail_20' ) end [2025-04-08 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859937', 'tblTempVendorCDR_20' ) start [2025-04-08 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859937', 'tblTempVendorCDR_20' ) end [2025-04-08 05:04:19] Production.INFO: ProcessCDR(1,14859937,1,1,2) [2025-04-08 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859937', 'tblTempUsageDetail_20' ) start [2025-04-08 05:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859937', 'tblTempUsageDetail_20' ) end [2025-04-08 05:04:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:04:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:04:23] Production.INFO: ==6770== Releasing lock... [2025-04-08 05:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:04:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:05:06 [end_date_ymd] => 2025-04-08 05:05:06 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:05:06' and `end` < '2025-04-08 05: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-04-08 05:05:19] Production.INFO: count ==246 [2025-04-08 05:05:19] Production.ERROR: pbx CDR StartTime 2025-04-08 02:05:06 - End Time 2025-04-08 05:05:06 [2025-04-08 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859942', 'tblTempUsageDetail_20' ) start [2025-04-08 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859942', 'tblTempUsageDetail_20' ) end [2025-04-08 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859942', 'tblTempVendorCDR_20' ) start [2025-04-08 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859942', 'tblTempVendorCDR_20' ) end [2025-04-08 05:05:19] Production.INFO: ProcessCDR(1,14859942,1,1,2) [2025-04-08 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859942', 'tblTempUsageDetail_20' ) start [2025-04-08 05:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859942', 'tblTempUsageDetail_20' ) end [2025-04-08 05:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:05:23] Production.INFO: ==6850== Releasing lock... [2025-04-08 05:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:05:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:06:06 [end_date_ymd] => 2025-04-08 05:06:06 [RateCDR] => 1 ) [2025-04-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-04-08 02:06:06' and `end` < '2025-04-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-04-08 05:06:18] Production.INFO: count ==246 [2025-04-08 05:06:19] Production.ERROR: pbx CDR StartTime 2025-04-08 02:06:06 - End Time 2025-04-08 05:06:06 [2025-04-08 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859947', 'tblTempUsageDetail_20' ) start [2025-04-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859947', 'tblTempUsageDetail_20' ) end [2025-04-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859947', 'tblTempVendorCDR_20' ) start [2025-04-08 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859947', 'tblTempVendorCDR_20' ) end [2025-04-08 05:06:19] Production.INFO: ProcessCDR(1,14859947,1,1,2) [2025-04-08 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859947', 'tblTempUsageDetail_20' ) start [2025-04-08 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859947', 'tblTempUsageDetail_20' ) end [2025-04-08 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:06:22] Production.INFO: ==6937== Releasing lock... [2025-04-08 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:06:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:07:05 [end_date_ymd] => 2025-04-08 05:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:07:05' and `end` < '2025-04-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-04-08 05:07:18] Production.INFO: count ==246 [2025-04-08 05:07:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:07:05 - End Time 2025-04-08 05:07:05 [2025-04-08 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859952', 'tblTempUsageDetail_20' ) start [2025-04-08 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859952', 'tblTempUsageDetail_20' ) end [2025-04-08 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859952', 'tblTempVendorCDR_20' ) start [2025-04-08 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859952', 'tblTempVendorCDR_20' ) end [2025-04-08 05:07:18] Production.INFO: ProcessCDR(1,14859952,1,1,2) [2025-04-08 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859952', 'tblTempUsageDetail_20' ) start [2025-04-08 05:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859952', 'tblTempUsageDetail_20' ) end [2025-04-08 05:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:07:22] Production.INFO: ==7021== Releasing lock... [2025-04-08 05:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:07:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:08:05 [end_date_ymd] => 2025-04-08 05:08:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:08:05' and `end` < '2025-04-08 05: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-04-08 05:08:18] Production.INFO: count ==246 [2025-04-08 05:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:08:05 - End Time 2025-04-08 05:08:05 [2025-04-08 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859957', 'tblTempUsageDetail_20' ) start [2025-04-08 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859957', 'tblTempUsageDetail_20' ) end [2025-04-08 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859957', 'tblTempVendorCDR_20' ) start [2025-04-08 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859957', 'tblTempVendorCDR_20' ) end [2025-04-08 05:08:18] Production.INFO: ProcessCDR(1,14859957,1,1,2) [2025-04-08 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859957', 'tblTempUsageDetail_20' ) start [2025-04-08 05:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859957', 'tblTempUsageDetail_20' ) end [2025-04-08 05:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:08:22] Production.INFO: ==7112== Releasing lock... [2025-04-08 05:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:09:05 [end_date_ymd] => 2025-04-08 05:09:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:09:05' and `end` < '2025-04-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-04-08 05:09:17] Production.INFO: count ==246 [2025-04-08 05:09:17] Production.ERROR: pbx CDR StartTime 2025-04-08 02:09:05 - End Time 2025-04-08 05:09:05 [2025-04-08 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859962', 'tblTempUsageDetail_20' ) start [2025-04-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859962', 'tblTempUsageDetail_20' ) end [2025-04-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859962', 'tblTempVendorCDR_20' ) start [2025-04-08 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859962', 'tblTempVendorCDR_20' ) end [2025-04-08 05:09:17] Production.INFO: ProcessCDR(1,14859962,1,1,2) [2025-04-08 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859962', 'tblTempUsageDetail_20' ) start [2025-04-08 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859962', 'tblTempUsageDetail_20' ) end [2025-04-08 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:09:21] Production.INFO: ==7194== Releasing lock... [2025-04-08 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:10:05 [end_date_ymd] => 2025-04-08 05:10:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:10:05' and `end` < '2025-04-08 05: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-04-08 05:10:18] Production.INFO: count ==253 [2025-04-08 05:10:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:10:05 - End Time 2025-04-08 05:10:05 [2025-04-08 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859968', 'tblTempUsageDetail_20' ) start [2025-04-08 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859968', 'tblTempUsageDetail_20' ) end [2025-04-08 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859968', 'tblTempVendorCDR_20' ) start [2025-04-08 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859968', 'tblTempVendorCDR_20' ) end [2025-04-08 05:10:18] Production.INFO: ProcessCDR(1,14859968,1,1,2) [2025-04-08 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859968', 'tblTempUsageDetail_20' ) start [2025-04-08 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859968', 'tblTempUsageDetail_20' ) end [2025-04-08 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:10:22] Production.INFO: ==7279== Releasing lock... [2025-04-08 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:11:05 [end_date_ymd] => 2025-04-08 05:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:11:05' and `end` < '2025-04-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-04-08 05:11:18] Production.INFO: count ==261 [2025-04-08 05:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:11:05 - End Time 2025-04-08 05:11:05 [2025-04-08 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859973', 'tblTempUsageDetail_20' ) start [2025-04-08 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859973', 'tblTempUsageDetail_20' ) end [2025-04-08 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859973', 'tblTempVendorCDR_20' ) start [2025-04-08 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859973', 'tblTempVendorCDR_20' ) end [2025-04-08 05:11:18] Production.INFO: ProcessCDR(1,14859973,1,1,2) [2025-04-08 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859973', 'tblTempUsageDetail_20' ) start [2025-04-08 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859973', 'tblTempUsageDetail_20' ) end [2025-04-08 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:11:21] Production.INFO: ==7365== Releasing lock... [2025-04-08 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:12:05 [end_date_ymd] => 2025-04-08 05:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:12:05' and `end` < '2025-04-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-04-08 05:12:18] Production.INFO: count ==261 [2025-04-08 05:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:12:05 - End Time 2025-04-08 05:12:05 [2025-04-08 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859978', 'tblTempUsageDetail_20' ) start [2025-04-08 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859978', 'tblTempUsageDetail_20' ) end [2025-04-08 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859978', 'tblTempVendorCDR_20' ) start [2025-04-08 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859978', 'tblTempVendorCDR_20' ) end [2025-04-08 05:12:18] Production.INFO: ProcessCDR(1,14859978,1,1,2) [2025-04-08 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859978', 'tblTempUsageDetail_20' ) start [2025-04-08 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859978', 'tblTempUsageDetail_20' ) end [2025-04-08 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:12:21] Production.INFO: ==7452== Releasing lock... [2025-04-08 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 05:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:13:06 [end_date_ymd] => 2025-04-08 05:13:06 [RateCDR] => 1 ) [2025-04-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-04-08 02:13:06' and `end` < '2025-04-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-04-08 05:13:18] Production.INFO: count ==263 [2025-04-08 05:13:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:13:06 - End Time 2025-04-08 05:13:06 [2025-04-08 05:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859983', 'tblTempUsageDetail_20' ) start [2025-04-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859983', 'tblTempUsageDetail_20' ) end [2025-04-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859983', 'tblTempVendorCDR_20' ) start [2025-04-08 05:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859983', 'tblTempVendorCDR_20' ) end [2025-04-08 05:13:18] Production.INFO: ProcessCDR(1,14859983,1,1,2) [2025-04-08 05:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859983', 'tblTempUsageDetail_20' ) start [2025-04-08 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859983', 'tblTempUsageDetail_20' ) end [2025-04-08 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:13:22] Production.INFO: ==7535== Releasing lock... [2025-04-08 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:13:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:14:05 [end_date_ymd] => 2025-04-08 05:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:14:05' and `end` < '2025-04-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-04-08 05:14:17] Production.INFO: count ==263 [2025-04-08 05:14:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:14:05 - End Time 2025-04-08 05:14:05 [2025-04-08 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859988', 'tblTempUsageDetail_20' ) start [2025-04-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859988', 'tblTempUsageDetail_20' ) end [2025-04-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859988', 'tblTempVendorCDR_20' ) start [2025-04-08 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859988', 'tblTempVendorCDR_20' ) end [2025-04-08 05:14:18] Production.INFO: ProcessCDR(1,14859988,1,1,2) [2025-04-08 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859988', 'tblTempUsageDetail_20' ) start [2025-04-08 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859988', 'tblTempUsageDetail_20' ) end [2025-04-08 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:14:21] Production.INFO: ==7617== Releasing lock... [2025-04-08 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 05:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:15:05 [end_date_ymd] => 2025-04-08 05:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:15:05' and `end` < '2025-04-08 05: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-04-08 05:15:18] Production.INFO: count ==263 [2025-04-08 05:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:15:05 - End Time 2025-04-08 05:15:05 [2025-04-08 05:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859993', 'tblTempUsageDetail_20' ) start [2025-04-08 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859993', 'tblTempUsageDetail_20' ) end [2025-04-08 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859993', 'tblTempVendorCDR_20' ) start [2025-04-08 05:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859993', 'tblTempVendorCDR_20' ) end [2025-04-08 05:15:18] Production.INFO: ProcessCDR(1,14859993,1,1,2) [2025-04-08 05:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859993', 'tblTempUsageDetail_20' ) start [2025-04-08 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859993', 'tblTempUsageDetail_20' ) end [2025-04-08 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:15:22] Production.INFO: ==7704== Releasing lock... [2025-04-08 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:15:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:16:05 [end_date_ymd] => 2025-04-08 05:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:16:05' and `end` < '2025-04-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-04-08 05:16:18] Production.INFO: count ==262 [2025-04-08 05:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:16:05 - End Time 2025-04-08 05:16:05 [2025-04-08 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859998', 'tblTempUsageDetail_20' ) start [2025-04-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14859998', 'tblTempUsageDetail_20' ) end [2025-04-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859998', 'tblTempVendorCDR_20' ) start [2025-04-08 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14859998', 'tblTempVendorCDR_20' ) end [2025-04-08 05:16:18] Production.INFO: ProcessCDR(1,14859998,1,1,2) [2025-04-08 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14859998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14859998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14859998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14859998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859998', 'tblTempUsageDetail_20' ) start [2025-04-08 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14859998', 'tblTempUsageDetail_20' ) end [2025-04-08 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:16:21] Production.INFO: ==7785== Releasing lock... [2025-04-08 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:17:05 [end_date_ymd] => 2025-04-08 05:17:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:17:05' and `end` < '2025-04-08 05: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-04-08 05:17:18] Production.INFO: count ==261 [2025-04-08 05:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:17:05 - End Time 2025-04-08 05:17:05 [2025-04-08 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860003', 'tblTempUsageDetail_20' ) start [2025-04-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860003', 'tblTempUsageDetail_20' ) end [2025-04-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860003', 'tblTempVendorCDR_20' ) start [2025-04-08 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860003', 'tblTempVendorCDR_20' ) end [2025-04-08 05:17:18] Production.INFO: ProcessCDR(1,14860003,1,1,2) [2025-04-08 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860003', 'tblTempUsageDetail_20' ) start [2025-04-08 05:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860003', 'tblTempUsageDetail_20' ) end [2025-04-08 05:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:17:21] Production.INFO: ==7909== Releasing lock... [2025-04-08 05:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:18:05 [end_date_ymd] => 2025-04-08 05:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:18:05' and `end` < '2025-04-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-04-08 05:18:18] Production.INFO: count ==260 [2025-04-08 05:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:18:05 - End Time 2025-04-08 05:18:05 [2025-04-08 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860008', 'tblTempUsageDetail_20' ) start [2025-04-08 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860008', 'tblTempUsageDetail_20' ) end [2025-04-08 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860008', 'tblTempVendorCDR_20' ) start [2025-04-08 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860008', 'tblTempVendorCDR_20' ) end [2025-04-08 05:18:18] Production.INFO: ProcessCDR(1,14860008,1,1,2) [2025-04-08 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860008', 'tblTempUsageDetail_20' ) start [2025-04-08 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860008', 'tblTempUsageDetail_20' ) end [2025-04-08 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:18:21] Production.INFO: ==8004== Releasing lock... [2025-04-08 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:19:05 [end_date_ymd] => 2025-04-08 05:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:19:05' and `end` < '2025-04-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-04-08 05:19:18] Production.INFO: count ==260 [2025-04-08 05:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:19:05 - End Time 2025-04-08 05:19:05 [2025-04-08 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860013', 'tblTempUsageDetail_20' ) start [2025-04-08 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860013', 'tblTempUsageDetail_20' ) end [2025-04-08 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860013', 'tblTempVendorCDR_20' ) start [2025-04-08 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860013', 'tblTempVendorCDR_20' ) end [2025-04-08 05:19:18] Production.INFO: ProcessCDR(1,14860013,1,1,2) [2025-04-08 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860013', 'tblTempUsageDetail_20' ) start [2025-04-08 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860013', 'tblTempUsageDetail_20' ) end [2025-04-08 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:19:21] Production.INFO: ==8087== Releasing lock... [2025-04-08 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:20:06 [end_date_ymd] => 2025-04-08 05:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 02:20:06' and `end` < '2025-04-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-04-08 05:20:19] Production.INFO: count ==259 [2025-04-08 05:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 02:20:06 - End Time 2025-04-08 05:20:06 [2025-04-08 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860019', 'tblTempUsageDetail_20' ) start [2025-04-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860019', 'tblTempUsageDetail_20' ) end [2025-04-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860019', 'tblTempVendorCDR_20' ) start [2025-04-08 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860019', 'tblTempVendorCDR_20' ) end [2025-04-08 05:20:19] Production.INFO: ProcessCDR(1,14860019,1,1,2) [2025-04-08 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860019', 'tblTempUsageDetail_20' ) start [2025-04-08 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860019', 'tblTempUsageDetail_20' ) end [2025-04-08 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:20:22] Production.INFO: ==8179== Releasing lock... [2025-04-08 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:21:05 [end_date_ymd] => 2025-04-08 05:21:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:21:05' and `end` < '2025-04-08 05: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-04-08 05:21:18] Production.INFO: count ==259 [2025-04-08 05:21:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:21:05 - End Time 2025-04-08 05:21:05 [2025-04-08 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860024', 'tblTempUsageDetail_20' ) start [2025-04-08 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860024', 'tblTempUsageDetail_20' ) end [2025-04-08 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860024', 'tblTempVendorCDR_20' ) start [2025-04-08 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860024', 'tblTempVendorCDR_20' ) end [2025-04-08 05:21:18] Production.INFO: ProcessCDR(1,14860024,1,1,2) [2025-04-08 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860024', 'tblTempUsageDetail_20' ) start [2025-04-08 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860024', 'tblTempUsageDetail_20' ) end [2025-04-08 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:21:21] Production.INFO: ==8274== Releasing lock... [2025-04-08 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:22:05 [end_date_ymd] => 2025-04-08 05:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:22:05' and `end` < '2025-04-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-04-08 05:22:17] Production.INFO: count ==256 [2025-04-08 05:22:17] Production.ERROR: pbx CDR StartTime 2025-04-08 02:22:05 - End Time 2025-04-08 05:22:05 [2025-04-08 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860029', 'tblTempUsageDetail_20' ) start [2025-04-08 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860029', 'tblTempUsageDetail_20' ) end [2025-04-08 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860029', 'tblTempVendorCDR_20' ) start [2025-04-08 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860029', 'tblTempVendorCDR_20' ) end [2025-04-08 05:22:17] Production.INFO: ProcessCDR(1,14860029,1,1,2) [2025-04-08 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860029', 'tblTempUsageDetail_20' ) start [2025-04-08 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860029', 'tblTempUsageDetail_20' ) end [2025-04-08 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:22:21] Production.INFO: ==8366== Releasing lock... [2025-04-08 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:23:05 [end_date_ymd] => 2025-04-08 05:23:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:23:05' and `end` < '2025-04-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-04-08 05:23:18] Production.INFO: count ==252 [2025-04-08 05:23:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:23:05 - End Time 2025-04-08 05:23:05 [2025-04-08 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860034', 'tblTempUsageDetail_20' ) start [2025-04-08 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860034', 'tblTempUsageDetail_20' ) end [2025-04-08 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860034', 'tblTempVendorCDR_20' ) start [2025-04-08 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860034', 'tblTempVendorCDR_20' ) end [2025-04-08 05:23:18] Production.INFO: ProcessCDR(1,14860034,1,1,2) [2025-04-08 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860034', 'tblTempUsageDetail_20' ) start [2025-04-08 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860034', 'tblTempUsageDetail_20' ) end [2025-04-08 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:23:21] Production.INFO: ==8449== Releasing lock... [2025-04-08 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:24:05 [end_date_ymd] => 2025-04-08 05:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:24:05' and `end` < '2025-04-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-04-08 05:24:17] Production.INFO: count ==251 [2025-04-08 05:24:17] Production.ERROR: pbx CDR StartTime 2025-04-08 02:24:05 - End Time 2025-04-08 05:24:05 [2025-04-08 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860039', 'tblTempUsageDetail_20' ) start [2025-04-08 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860039', 'tblTempUsageDetail_20' ) end [2025-04-08 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860039', 'tblTempVendorCDR_20' ) start [2025-04-08 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860039', 'tblTempVendorCDR_20' ) end [2025-04-08 05:24:17] Production.INFO: ProcessCDR(1,14860039,1,1,2) [2025-04-08 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860039', 'tblTempUsageDetail_20' ) start [2025-04-08 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860039', 'tblTempUsageDetail_20' ) end [2025-04-08 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:24:21] Production.INFO: ==8533== Releasing lock... [2025-04-08 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:25:05 [end_date_ymd] => 2025-04-08 05:25:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:25:05' and `end` < '2025-04-08 05: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-04-08 05:25:18] Production.INFO: count ==243 [2025-04-08 05:25:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:25:05 - End Time 2025-04-08 05:25:05 [2025-04-08 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860044', 'tblTempUsageDetail_20' ) start [2025-04-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860044', 'tblTempUsageDetail_20' ) end [2025-04-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860044', 'tblTempVendorCDR_20' ) start [2025-04-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860044', 'tblTempVendorCDR_20' ) end [2025-04-08 05:25:18] Production.INFO: ProcessCDR(1,14860044,1,1,2) [2025-04-08 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860044', 'tblTempUsageDetail_20' ) start [2025-04-08 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860044', 'tblTempUsageDetail_20' ) end [2025-04-08 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:25:21] Production.INFO: ==8617== Releasing lock... [2025-04-08 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:25:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:26:05 [end_date_ymd] => 2025-04-08 05:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:26:05' and `end` < '2025-04-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-04-08 05:26:18] Production.INFO: count ==243 [2025-04-08 05:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:26:05 - End Time 2025-04-08 05:26:05 [2025-04-08 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860049', 'tblTempUsageDetail_20' ) start [2025-04-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860049', 'tblTempUsageDetail_20' ) end [2025-04-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860049', 'tblTempVendorCDR_20' ) start [2025-04-08 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860049', 'tblTempVendorCDR_20' ) end [2025-04-08 05:26:18] Production.INFO: ProcessCDR(1,14860049,1,1,2) [2025-04-08 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860049', 'tblTempUsageDetail_20' ) start [2025-04-08 05:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860049', 'tblTempUsageDetail_20' ) end [2025-04-08 05:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:26:21] Production.INFO: ==8705== Releasing lock... [2025-04-08 05:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:27:04 [end_date_ymd] => 2025-04-08 05:27:04 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:27:04' and `end` < '2025-04-08 05: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-04-08 05:27:17] Production.INFO: count ==243 [2025-04-08 05:27:17] Production.ERROR: pbx CDR StartTime 2025-04-08 02:27:04 - End Time 2025-04-08 05:27:04 [2025-04-08 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860054', 'tblTempUsageDetail_20' ) start [2025-04-08 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860054', 'tblTempUsageDetail_20' ) end [2025-04-08 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860054', 'tblTempVendorCDR_20' ) start [2025-04-08 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860054', 'tblTempVendorCDR_20' ) end [2025-04-08 05:27:17] Production.INFO: ProcessCDR(1,14860054,1,1,2) [2025-04-08 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860054', 'tblTempUsageDetail_20' ) start [2025-04-08 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860054', 'tblTempUsageDetail_20' ) end [2025-04-08 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:27:20] Production.INFO: ==8783== Releasing lock... [2025-04-08 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:27:20] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:28:05 [end_date_ymd] => 2025-04-08 05:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:28:05' and `end` < '2025-04-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-04-08 05:28:18] Production.INFO: count ==243 [2025-04-08 05:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:28:05 - End Time 2025-04-08 05:28:05 [2025-04-08 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860059', 'tblTempUsageDetail_20' ) start [2025-04-08 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860059', 'tblTempUsageDetail_20' ) end [2025-04-08 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860059', 'tblTempVendorCDR_20' ) start [2025-04-08 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860059', 'tblTempVendorCDR_20' ) end [2025-04-08 05:28:18] Production.INFO: ProcessCDR(1,14860059,1,1,2) [2025-04-08 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860059', 'tblTempUsageDetail_20' ) start [2025-04-08 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860059', 'tblTempUsageDetail_20' ) end [2025-04-08 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:28:21] Production.INFO: ==8865== Releasing lock... [2025-04-08 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:29:05 [end_date_ymd] => 2025-04-08 05:29:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:29:05' and `end` < '2025-04-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-04-08 05:29:18] Production.INFO: count ==243 [2025-04-08 05:29:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:29:05 - End Time 2025-04-08 05:29:05 [2025-04-08 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860064', 'tblTempUsageDetail_20' ) start [2025-04-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860064', 'tblTempUsageDetail_20' ) end [2025-04-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860064', 'tblTempVendorCDR_20' ) start [2025-04-08 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860064', 'tblTempVendorCDR_20' ) end [2025-04-08 05:29:18] Production.INFO: ProcessCDR(1,14860064,1,1,2) [2025-04-08 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860064', 'tblTempUsageDetail_20' ) start [2025-04-08 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860064', 'tblTempUsageDetail_20' ) end [2025-04-08 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:29:21] Production.INFO: ==8938== Releasing lock... [2025-04-08 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:30:06 [end_date_ymd] => 2025-04-08 05:30:06 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:30:06' and `end` < '2025-04-08 05: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-04-08 05:30:19] Production.INFO: count ==241 [2025-04-08 05:30:19] Production.ERROR: pbx CDR StartTime 2025-04-08 02:30:06 - End Time 2025-04-08 05:30:06 [2025-04-08 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860069', 'tblTempUsageDetail_20' ) start [2025-04-08 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860069', 'tblTempUsageDetail_20' ) end [2025-04-08 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860069', 'tblTempVendorCDR_20' ) start [2025-04-08 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860069', 'tblTempVendorCDR_20' ) end [2025-04-08 05:30:19] Production.INFO: ProcessCDR(1,14860069,1,1,2) [2025-04-08 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860069', 'tblTempUsageDetail_20' ) start [2025-04-08 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860069', 'tblTempUsageDetail_20' ) end [2025-04-08 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:30:22] Production.INFO: ==9021== Releasing lock... [2025-04-08 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:30:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:31:05 [end_date_ymd] => 2025-04-08 05:31:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:31:05' and `end` < '2025-04-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-04-08 05:31:17] Production.INFO: count ==241 [2025-04-08 05:31:17] Production.ERROR: pbx CDR StartTime 2025-04-08 02:31:05 - End Time 2025-04-08 05:31:05 [2025-04-08 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860075', 'tblTempUsageDetail_20' ) start [2025-04-08 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860075', 'tblTempUsageDetail_20' ) end [2025-04-08 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860075', 'tblTempVendorCDR_20' ) start [2025-04-08 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860075', 'tblTempVendorCDR_20' ) end [2025-04-08 05:31:17] Production.INFO: ProcessCDR(1,14860075,1,1,2) [2025-04-08 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860075', 'tblTempUsageDetail_20' ) start [2025-04-08 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860075', 'tblTempUsageDetail_20' ) end [2025-04-08 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:31:21] Production.INFO: ==9106== Releasing lock... [2025-04-08 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:31:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:32:05 [end_date_ymd] => 2025-04-08 05:32:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:32:05' and `end` < '2025-04-08 05: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-04-08 05:32:18] Production.INFO: count ==241 [2025-04-08 05:32:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:32:05 - End Time 2025-04-08 05:32:05 [2025-04-08 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860080', 'tblTempUsageDetail_20' ) start [2025-04-08 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860080', 'tblTempUsageDetail_20' ) end [2025-04-08 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860080', 'tblTempVendorCDR_20' ) start [2025-04-08 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860080', 'tblTempVendorCDR_20' ) end [2025-04-08 05:32:18] Production.INFO: ProcessCDR(1,14860080,1,1,2) [2025-04-08 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860080', 'tblTempUsageDetail_20' ) start [2025-04-08 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860080', 'tblTempUsageDetail_20' ) end [2025-04-08 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:32:21] Production.INFO: ==9187== Releasing lock... [2025-04-08 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:32:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:33:05 [end_date_ymd] => 2025-04-08 05:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:33:05' and `end` < '2025-04-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-04-08 05:33:18] Production.INFO: count ==241 [2025-04-08 05:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:33:05 - End Time 2025-04-08 05:33:05 [2025-04-08 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860085', 'tblTempUsageDetail_20' ) start [2025-04-08 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860085', 'tblTempUsageDetail_20' ) end [2025-04-08 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860085', 'tblTempVendorCDR_20' ) start [2025-04-08 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860085', 'tblTempVendorCDR_20' ) end [2025-04-08 05:33:18] Production.INFO: ProcessCDR(1,14860085,1,1,2) [2025-04-08 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860085', 'tblTempUsageDetail_20' ) start [2025-04-08 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860085', 'tblTempUsageDetail_20' ) end [2025-04-08 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:33:22] Production.INFO: ==9310== Releasing lock... [2025-04-08 05:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:33:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:34:05 [end_date_ymd] => 2025-04-08 05:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:34:05' and `end` < '2025-04-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-04-08 05:34:17] Production.INFO: count ==241 [2025-04-08 05:34:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:34:05 - End Time 2025-04-08 05:34:05 [2025-04-08 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860090', 'tblTempUsageDetail_20' ) start [2025-04-08 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860090', 'tblTempUsageDetail_20' ) end [2025-04-08 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860090', 'tblTempVendorCDR_20' ) start [2025-04-08 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860090', 'tblTempVendorCDR_20' ) end [2025-04-08 05:34:18] Production.INFO: ProcessCDR(1,14860090,1,1,2) [2025-04-08 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860090', 'tblTempUsageDetail_20' ) start [2025-04-08 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860090', 'tblTempUsageDetail_20' ) end [2025-04-08 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:34:21] Production.INFO: ==9397== Releasing lock... [2025-04-08 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:34:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:35:04 [end_date_ymd] => 2025-04-08 05:35:04 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:35:04' and `end` < '2025-04-08 05: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-04-08 05:35:17] Production.INFO: count ==241 [2025-04-08 05:35:17] Production.ERROR: pbx CDR StartTime 2025-04-08 02:35:04 - End Time 2025-04-08 05:35:04 [2025-04-08 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860095', 'tblTempUsageDetail_20' ) start [2025-04-08 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860095', 'tblTempUsageDetail_20' ) end [2025-04-08 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860095', 'tblTempVendorCDR_20' ) start [2025-04-08 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860095', 'tblTempVendorCDR_20' ) end [2025-04-08 05:35:17] Production.INFO: ProcessCDR(1,14860095,1,1,2) [2025-04-08 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860095', 'tblTempUsageDetail_20' ) start [2025-04-08 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860095', 'tblTempUsageDetail_20' ) end [2025-04-08 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:35:20] Production.INFO: ==9471== Releasing lock... [2025-04-08 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:35:20] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:36:05 [end_date_ymd] => 2025-04-08 05:36:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:36:05' and `end` < '2025-04-08 05: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-04-08 05:36:18] Production.INFO: count ==241 [2025-04-08 05:36:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:36:05 - End Time 2025-04-08 05:36:05 [2025-04-08 05:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860100', 'tblTempUsageDetail_20' ) start [2025-04-08 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860100', 'tblTempUsageDetail_20' ) end [2025-04-08 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860100', 'tblTempVendorCDR_20' ) start [2025-04-08 05:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860100', 'tblTempVendorCDR_20' ) end [2025-04-08 05:36:18] Production.INFO: ProcessCDR(1,14860100,1,1,2) [2025-04-08 05:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860100', 'tblTempUsageDetail_20' ) start [2025-04-08 05:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860100', 'tblTempUsageDetail_20' ) end [2025-04-08 05:36:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:36:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:36:21] Production.INFO: ==9566== Releasing lock... [2025-04-08 05:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:36:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:37:05 [end_date_ymd] => 2025-04-08 05:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:37:05' and `end` < '2025-04-08 05: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-04-08 05:37:18] Production.INFO: count ==241 [2025-04-08 05:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:37:05 - End Time 2025-04-08 05:37:05 [2025-04-08 05:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860105', 'tblTempUsageDetail_20' ) start [2025-04-08 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860105', 'tblTempUsageDetail_20' ) end [2025-04-08 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860105', 'tblTempVendorCDR_20' ) start [2025-04-08 05:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860105', 'tblTempVendorCDR_20' ) end [2025-04-08 05:37:18] Production.INFO: ProcessCDR(1,14860105,1,1,2) [2025-04-08 05:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860105', 'tblTempUsageDetail_20' ) start [2025-04-08 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860105', 'tblTempUsageDetail_20' ) end [2025-04-08 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:37:21] Production.INFO: ==9652== Releasing lock... [2025-04-08 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:37:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:38:05 [end_date_ymd] => 2025-04-08 05:38:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:38:05' and `end` < '2025-04-08 05: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-04-08 05:38:18] Production.INFO: count ==240 [2025-04-08 05:38:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:38:05 - End Time 2025-04-08 05:38:05 [2025-04-08 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860110', 'tblTempUsageDetail_20' ) start [2025-04-08 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860110', 'tblTempUsageDetail_20' ) end [2025-04-08 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860110', 'tblTempVendorCDR_20' ) start [2025-04-08 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860110', 'tblTempVendorCDR_20' ) end [2025-04-08 05:38:18] Production.INFO: ProcessCDR(1,14860110,1,1,2) [2025-04-08 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860110', 'tblTempUsageDetail_20' ) start [2025-04-08 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860110', 'tblTempUsageDetail_20' ) end [2025-04-08 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:38:21] Production.INFO: ==9736== Releasing lock... [2025-04-08 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:39:05 [end_date_ymd] => 2025-04-08 05:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:39:05' and `end` < '2025-04-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-04-08 05:39:18] Production.INFO: count ==232 [2025-04-08 05:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:39:05 - End Time 2025-04-08 05:39:05 [2025-04-08 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860115', 'tblTempUsageDetail_20' ) start [2025-04-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860115', 'tblTempUsageDetail_20' ) end [2025-04-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860115', 'tblTempVendorCDR_20' ) start [2025-04-08 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860115', 'tblTempVendorCDR_20' ) end [2025-04-08 05:39:18] Production.INFO: ProcessCDR(1,14860115,1,1,2) [2025-04-08 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860115', 'tblTempUsageDetail_20' ) start [2025-04-08 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860115', 'tblTempUsageDetail_20' ) end [2025-04-08 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:39:22] Production.INFO: ==9819== Releasing lock... [2025-04-08 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:39:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:40:06 [end_date_ymd] => 2025-04-08 05:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 02:40:06' and `end` < '2025-04-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-04-08 05:40:18] Production.INFO: count ==218 [2025-04-08 05:40:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:40:06 - End Time 2025-04-08 05:40:06 [2025-04-08 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860121', 'tblTempUsageDetail_20' ) start [2025-04-08 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860121', 'tblTempUsageDetail_20' ) end [2025-04-08 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860121', 'tblTempVendorCDR_20' ) start [2025-04-08 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860121', 'tblTempVendorCDR_20' ) end [2025-04-08 05:40:18] Production.INFO: ProcessCDR(1,14860121,1,1,2) [2025-04-08 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860121', 'tblTempUsageDetail_20' ) start [2025-04-08 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860121', 'tblTempUsageDetail_20' ) end [2025-04-08 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:40:22] Production.INFO: ==9903== Releasing lock... [2025-04-08 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:40:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:41:05 [end_date_ymd] => 2025-04-08 05:41:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:41:05' and `end` < '2025-04-08 05: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-04-08 05:41:18] Production.INFO: count ==209 [2025-04-08 05:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:41:05 - End Time 2025-04-08 05:41:05 [2025-04-08 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860126', 'tblTempUsageDetail_20' ) start [2025-04-08 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860126', 'tblTempUsageDetail_20' ) end [2025-04-08 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860126', 'tblTempVendorCDR_20' ) start [2025-04-08 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860126', 'tblTempVendorCDR_20' ) end [2025-04-08 05:41:18] Production.INFO: ProcessCDR(1,14860126,1,1,2) [2025-04-08 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860126', 'tblTempUsageDetail_20' ) start [2025-04-08 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860126', 'tblTempUsageDetail_20' ) end [2025-04-08 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:41:21] Production.INFO: ==9992== Releasing lock... [2025-04-08 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:41:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:42:05 [end_date_ymd] => 2025-04-08 05:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:42:05' and `end` < '2025-04-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-04-08 05:42:18] Production.INFO: count ==209 [2025-04-08 05:42:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:42:05 - End Time 2025-04-08 05:42:05 [2025-04-08 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860131', 'tblTempUsageDetail_20' ) start [2025-04-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860131', 'tblTempUsageDetail_20' ) end [2025-04-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860131', 'tblTempVendorCDR_20' ) start [2025-04-08 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860131', 'tblTempVendorCDR_20' ) end [2025-04-08 05:42:18] Production.INFO: ProcessCDR(1,14860131,1,1,2) [2025-04-08 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860131', 'tblTempUsageDetail_20' ) start [2025-04-08 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860131', 'tblTempUsageDetail_20' ) end [2025-04-08 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:42:21] Production.INFO: ==10076== Releasing lock... [2025-04-08 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:42:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:43:05 [end_date_ymd] => 2025-04-08 05:43:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:43:05' and `end` < '2025-04-08 05: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-04-08 05:43:18] Production.INFO: count ==209 [2025-04-08 05:43:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:43:05 - End Time 2025-04-08 05:43:05 [2025-04-08 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860136', 'tblTempUsageDetail_20' ) start [2025-04-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860136', 'tblTempUsageDetail_20' ) end [2025-04-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860136', 'tblTempVendorCDR_20' ) start [2025-04-08 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860136', 'tblTempVendorCDR_20' ) end [2025-04-08 05:43:18] Production.INFO: ProcessCDR(1,14860136,1,1,2) [2025-04-08 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860136', 'tblTempUsageDetail_20' ) start [2025-04-08 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860136', 'tblTempUsageDetail_20' ) end [2025-04-08 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:43:21] Production.INFO: ==10157== Releasing lock... [2025-04-08 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:43:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:44:05 [end_date_ymd] => 2025-04-08 05:44:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:44:05' and `end` < '2025-04-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-04-08 05:44:17] Production.INFO: count ==209 [2025-04-08 05:44:17] Production.ERROR: pbx CDR StartTime 2025-04-08 02:44:05 - End Time 2025-04-08 05:44:05 [2025-04-08 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860141', 'tblTempUsageDetail_20' ) start [2025-04-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860141', 'tblTempUsageDetail_20' ) end [2025-04-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860141', 'tblTempVendorCDR_20' ) start [2025-04-08 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860141', 'tblTempVendorCDR_20' ) end [2025-04-08 05:44:17] Production.INFO: ProcessCDR(1,14860141,1,1,2) [2025-04-08 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860141', 'tblTempUsageDetail_20' ) start [2025-04-08 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860141', 'tblTempUsageDetail_20' ) end [2025-04-08 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:44:21] Production.INFO: ==10232== Releasing lock... [2025-04-08 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:44:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:45:05 [end_date_ymd] => 2025-04-08 05:45:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:45:05' and `end` < '2025-04-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-04-08 05:45:18] Production.INFO: count ==209 [2025-04-08 05:45:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:45:05 - End Time 2025-04-08 05:45:05 [2025-04-08 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860146', 'tblTempUsageDetail_20' ) start [2025-04-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860146', 'tblTempUsageDetail_20' ) end [2025-04-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860146', 'tblTempVendorCDR_20' ) start [2025-04-08 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860146', 'tblTempVendorCDR_20' ) end [2025-04-08 05:45:18] Production.INFO: ProcessCDR(1,14860146,1,1,2) [2025-04-08 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860146', 'tblTempUsageDetail_20' ) start [2025-04-08 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860146', 'tblTempUsageDetail_20' ) end [2025-04-08 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:45:21] Production.INFO: ==10306== Releasing lock... [2025-04-08 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:45:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:46:05 [end_date_ymd] => 2025-04-08 05:46:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:46:05' and `end` < '2025-04-08 05: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-04-08 05:46:17] Production.INFO: count ==208 [2025-04-08 05:46:17] Production.ERROR: pbx CDR StartTime 2025-04-08 02:46:05 - End Time 2025-04-08 05:46:05 [2025-04-08 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860151', 'tblTempUsageDetail_20' ) start [2025-04-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860151', 'tblTempUsageDetail_20' ) end [2025-04-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860151', 'tblTempVendorCDR_20' ) start [2025-04-08 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860151', 'tblTempVendorCDR_20' ) end [2025-04-08 05:46:17] Production.INFO: ProcessCDR(1,14860151,1,1,2) [2025-04-08 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860151', 'tblTempUsageDetail_20' ) start [2025-04-08 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860151', 'tblTempUsageDetail_20' ) end [2025-04-08 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:46:21] Production.INFO: ==10381== Releasing lock... [2025-04-08 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:46:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:47:05 [end_date_ymd] => 2025-04-08 05:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:47:05' and `end` < '2025-04-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-04-08 05:47:17] Production.INFO: count ==207 [2025-04-08 05:47:17] Production.ERROR: pbx CDR StartTime 2025-04-08 02:47:05 - End Time 2025-04-08 05:47:05 [2025-04-08 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860156', 'tblTempUsageDetail_20' ) start [2025-04-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860156', 'tblTempUsageDetail_20' ) end [2025-04-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860156', 'tblTempVendorCDR_20' ) start [2025-04-08 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860156', 'tblTempVendorCDR_20' ) end [2025-04-08 05:47:17] Production.INFO: ProcessCDR(1,14860156,1,1,2) [2025-04-08 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860156', 'tblTempUsageDetail_20' ) start [2025-04-08 05:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860156', 'tblTempUsageDetail_20' ) end [2025-04-08 05:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:47:21] Production.INFO: ==10453== Releasing lock... [2025-04-08 05:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:48:05 [end_date_ymd] => 2025-04-08 05:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:48:05' and `end` < '2025-04-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-04-08 05:48:18] Production.INFO: count ==206 [2025-04-08 05:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:48:05 - End Time 2025-04-08 05:48:05 [2025-04-08 05:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860161', 'tblTempUsageDetail_20' ) start [2025-04-08 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860161', 'tblTempUsageDetail_20' ) end [2025-04-08 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860161', 'tblTempVendorCDR_20' ) start [2025-04-08 05:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860161', 'tblTempVendorCDR_20' ) end [2025-04-08 05:48:18] Production.INFO: ProcessCDR(1,14860161,1,1,2) [2025-04-08 05:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860161', 'tblTempUsageDetail_20' ) start [2025-04-08 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860161', 'tblTempUsageDetail_20' ) end [2025-04-08 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:48:22] Production.INFO: ==10566== Releasing lock... [2025-04-08 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:48:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:49:05 [end_date_ymd] => 2025-04-08 05:49:05 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:49:05' and `end` < '2025-04-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-04-08 05:49:18] Production.INFO: count ==206 [2025-04-08 05:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:49:05 - End Time 2025-04-08 05:49:05 [2025-04-08 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860166', 'tblTempUsageDetail_20' ) start [2025-04-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860166', 'tblTempUsageDetail_20' ) end [2025-04-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860166', 'tblTempVendorCDR_20' ) start [2025-04-08 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860166', 'tblTempVendorCDR_20' ) end [2025-04-08 05:49:18] Production.INFO: ProcessCDR(1,14860166,1,1,2) [2025-04-08 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860166', 'tblTempUsageDetail_20' ) start [2025-04-08 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860166', 'tblTempUsageDetail_20' ) end [2025-04-08 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:49:21] Production.INFO: ==10637== Releasing lock... [2025-04-08 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:49:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:50:06 [end_date_ymd] => 2025-04-08 05:50:06 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:50:06' and `end` < '2025-04-08 05: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-04-08 05:50:19] Production.INFO: count ==211 [2025-04-08 05:50:19] Production.ERROR: pbx CDR StartTime 2025-04-08 02:50:06 - End Time 2025-04-08 05:50:06 [2025-04-08 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860172', 'tblTempUsageDetail_20' ) start [2025-04-08 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860172', 'tblTempUsageDetail_20' ) end [2025-04-08 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860172', 'tblTempVendorCDR_20' ) start [2025-04-08 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860172', 'tblTempVendorCDR_20' ) end [2025-04-08 05:50:19] Production.INFO: ProcessCDR(1,14860172,1,1,2) [2025-04-08 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860172', 'tblTempUsageDetail_20' ) start [2025-04-08 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860172', 'tblTempUsageDetail_20' ) end [2025-04-08 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:50:22] Production.INFO: ==10715== Releasing lock... [2025-04-08 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:50:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 05:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:51:05 [end_date_ymd] => 2025-04-08 05:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:51:05' and `end` < '2025-04-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-04-08 05:51:18] Production.INFO: count ==208 [2025-04-08 05:51:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:51:05 - End Time 2025-04-08 05:51:05 [2025-04-08 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860177', 'tblTempUsageDetail_20' ) start [2025-04-08 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860177', 'tblTempUsageDetail_20' ) end [2025-04-08 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860177', 'tblTempVendorCDR_20' ) start [2025-04-08 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860177', 'tblTempVendorCDR_20' ) end [2025-04-08 05:51:18] Production.INFO: ProcessCDR(1,14860177,1,1,2) [2025-04-08 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860177', 'tblTempUsageDetail_20' ) start [2025-04-08 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860177', 'tblTempUsageDetail_20' ) end [2025-04-08 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:51:21] Production.INFO: ==10789== Releasing lock... [2025-04-08 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:51:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:52:05 [end_date_ymd] => 2025-04-08 05:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:52:05' and `end` < '2025-04-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-04-08 05:52:18] Production.INFO: count ==206 [2025-04-08 05:52:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:52:05 - End Time 2025-04-08 05:52:05 [2025-04-08 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860182', 'tblTempUsageDetail_20' ) start [2025-04-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860182', 'tblTempUsageDetail_20' ) end [2025-04-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860182', 'tblTempVendorCDR_20' ) start [2025-04-08 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860182', 'tblTempVendorCDR_20' ) end [2025-04-08 05:52:18] Production.INFO: ProcessCDR(1,14860182,1,1,2) [2025-04-08 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860182', 'tblTempUsageDetail_20' ) start [2025-04-08 05:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860182', 'tblTempUsageDetail_20' ) end [2025-04-08 05:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:52:22] Production.INFO: ==10870== Releasing lock... [2025-04-08 05:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:52:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:53:05 [end_date_ymd] => 2025-04-08 05:53:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:53:05' and `end` < '2025-04-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-04-08 05:53:18] Production.INFO: count ==206 [2025-04-08 05:53:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:53:05 - End Time 2025-04-08 05:53:05 [2025-04-08 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860187', 'tblTempUsageDetail_20' ) start [2025-04-08 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860187', 'tblTempUsageDetail_20' ) end [2025-04-08 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860187', 'tblTempVendorCDR_20' ) start [2025-04-08 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860187', 'tblTempVendorCDR_20' ) end [2025-04-08 05:53:18] Production.INFO: ProcessCDR(1,14860187,1,1,2) [2025-04-08 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860187', 'tblTempUsageDetail_20' ) start [2025-04-08 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860187', 'tblTempUsageDetail_20' ) end [2025-04-08 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:53:21] Production.INFO: ==10943== Releasing lock... [2025-04-08 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:53:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:54:05 [end_date_ymd] => 2025-04-08 05:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:54:05' and `end` < '2025-04-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-04-08 05:54:18] Production.INFO: count ==206 [2025-04-08 05:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:54:05 - End Time 2025-04-08 05:54:05 [2025-04-08 05:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860192', 'tblTempUsageDetail_20' ) start [2025-04-08 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860192', 'tblTempUsageDetail_20' ) end [2025-04-08 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860192', 'tblTempVendorCDR_20' ) start [2025-04-08 05:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860192', 'tblTempVendorCDR_20' ) end [2025-04-08 05:54:18] Production.INFO: ProcessCDR(1,14860192,1,1,2) [2025-04-08 05:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860192', 'tblTempUsageDetail_20' ) start [2025-04-08 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860192', 'tblTempUsageDetail_20' ) end [2025-04-08 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:54:21] Production.INFO: ==11014== Releasing lock... [2025-04-08 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:54:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:55:05 [end_date_ymd] => 2025-04-08 05:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:55:05' and `end` < '2025-04-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-04-08 05:55:18] Production.INFO: count ==206 [2025-04-08 05:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:55:05 - End Time 2025-04-08 05:55:05 [2025-04-08 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860197', 'tblTempUsageDetail_20' ) start [2025-04-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860197', 'tblTempUsageDetail_20' ) end [2025-04-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860197', 'tblTempVendorCDR_20' ) start [2025-04-08 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860197', 'tblTempVendorCDR_20' ) end [2025-04-08 05:55:18] Production.INFO: ProcessCDR(1,14860197,1,1,2) [2025-04-08 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860197', 'tblTempUsageDetail_20' ) start [2025-04-08 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860197', 'tblTempUsageDetail_20' ) end [2025-04-08 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:55:21] Production.INFO: ==11087== Releasing lock... [2025-04-08 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:55:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:56:05 [end_date_ymd] => 2025-04-08 05:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:56:05' and `end` < '2025-04-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-04-08 05:56:18] Production.INFO: count ==206 [2025-04-08 05:56:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:56:05 - End Time 2025-04-08 05:56:05 [2025-04-08 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860202', 'tblTempUsageDetail_20' ) start [2025-04-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860202', 'tblTempUsageDetail_20' ) end [2025-04-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860202', 'tblTempVendorCDR_20' ) start [2025-04-08 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860202', 'tblTempVendorCDR_20' ) end [2025-04-08 05:56:18] Production.INFO: ProcessCDR(1,14860202,1,1,2) [2025-04-08 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860202', 'tblTempUsageDetail_20' ) start [2025-04-08 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860202', 'tblTempUsageDetail_20' ) end [2025-04-08 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:56:22] Production.INFO: ==11162== Releasing lock... [2025-04-08 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:56:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:57:05 [end_date_ymd] => 2025-04-08 05:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:57:05' and `end` < '2025-04-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-04-08 05:57:18] Production.INFO: count ==206 [2025-04-08 05:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:57:05 - End Time 2025-04-08 05:57:05 [2025-04-08 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860207', 'tblTempUsageDetail_20' ) start [2025-04-08 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860207', 'tblTempUsageDetail_20' ) end [2025-04-08 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860207', 'tblTempVendorCDR_20' ) start [2025-04-08 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860207', 'tblTempVendorCDR_20' ) end [2025-04-08 05:57:18] Production.INFO: ProcessCDR(1,14860207,1,1,2) [2025-04-08 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860207', 'tblTempUsageDetail_20' ) start [2025-04-08 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860207', 'tblTempUsageDetail_20' ) end [2025-04-08 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:57:21] Production.INFO: ==11231== Releasing lock... [2025-04-08 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:57:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:58:05 [end_date_ymd] => 2025-04-08 05:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 02:58:05' and `end` < '2025-04-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-04-08 05:58:18] Production.INFO: count ==208 [2025-04-08 05:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 02:58:05 - End Time 2025-04-08 05:58:05 [2025-04-08 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860212', 'tblTempUsageDetail_20' ) start [2025-04-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860212', 'tblTempUsageDetail_20' ) end [2025-04-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860212', 'tblTempVendorCDR_20' ) start [2025-04-08 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860212', 'tblTempVendorCDR_20' ) end [2025-04-08 05:58:18] Production.INFO: ProcessCDR(1,14860212,1,1,2) [2025-04-08 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860212', 'tblTempUsageDetail_20' ) start [2025-04-08 05:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860212', 'tblTempUsageDetail_20' ) end [2025-04-08 05:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:58:21] Production.INFO: ==11306== Releasing lock... [2025-04-08 05:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:58:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 05:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 02:59:06 [end_date_ymd] => 2025-04-08 05:59:06 [RateCDR] => 1 ) [2025-04-08 05: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-04-08 02:59:06' and `end` < '2025-04-08 05: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-04-08 05:59:19] Production.INFO: count ==213 [2025-04-08 05:59:19] Production.ERROR: pbx CDR StartTime 2025-04-08 02:59:06 - End Time 2025-04-08 05:59:06 [2025-04-08 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860217', 'tblTempUsageDetail_20' ) start [2025-04-08 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860217', 'tblTempUsageDetail_20' ) end [2025-04-08 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860217', 'tblTempVendorCDR_20' ) start [2025-04-08 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860217', 'tblTempVendorCDR_20' ) end [2025-04-08 05:59:19] Production.INFO: ProcessCDR(1,14860217,1,1,2) [2025-04-08 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860217', 'tblTempUsageDetail_20' ) start [2025-04-08 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860217', 'tblTempUsageDetail_20' ) end [2025-04-08 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 05:59:22] Production.INFO: ==11376== Releasing lock... [2025-04-08 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 05:59:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:00:06 [end_date_ymd] => 2025-04-08 06:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 03:00:06' and `end` < '2025-04-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-04-08 06:00:19] Production.INFO: count ==211 [2025-04-08 06:00:19] Production.ERROR: pbx CDR StartTime 2025-04-08 03:00:06 - End Time 2025-04-08 06:00:06 [2025-04-08 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860223', 'tblTempUsageDetail_20' ) start [2025-04-08 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860223', 'tblTempUsageDetail_20' ) end [2025-04-08 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860223', 'tblTempVendorCDR_20' ) start [2025-04-08 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860223', 'tblTempVendorCDR_20' ) end [2025-04-08 06:00:19] Production.INFO: ProcessCDR(1,14860223,1,1,2) [2025-04-08 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860223', 'tblTempUsageDetail_20' ) start [2025-04-08 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860223', 'tblTempUsageDetail_20' ) end [2025-04-08 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:00:23] Production.INFO: ==11457== Releasing lock... [2025-04-08 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:01:05 [end_date_ymd] => 2025-04-08 06:01:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:01:05' and `end` < '2025-04-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-04-08 06:01:18] Production.INFO: count ==216 [2025-04-08 06:01:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:01:05 - End Time 2025-04-08 06:01:05 [2025-04-08 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860228', 'tblTempUsageDetail_20' ) start [2025-04-08 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860228', 'tblTempUsageDetail_20' ) end [2025-04-08 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860228', 'tblTempVendorCDR_20' ) start [2025-04-08 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860228', 'tblTempVendorCDR_20' ) end [2025-04-08 06:01:18] Production.INFO: ProcessCDR(1,14860228,1,1,2) [2025-04-08 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860228', 'tblTempUsageDetail_20' ) start [2025-04-08 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860228', 'tblTempUsageDetail_20' ) end [2025-04-08 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:01:22] Production.INFO: ==11548== Releasing lock... [2025-04-08 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:02:05 [end_date_ymd] => 2025-04-08 06:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:02:05' and `end` < '2025-04-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-04-08 06:02:18] Production.INFO: count ==216 [2025-04-08 06:02:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:02:05 - End Time 2025-04-08 06:02:05 [2025-04-08 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860233', 'tblTempUsageDetail_20' ) start [2025-04-08 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860233', 'tblTempUsageDetail_20' ) end [2025-04-08 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860233', 'tblTempVendorCDR_20' ) start [2025-04-08 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860233', 'tblTempVendorCDR_20' ) end [2025-04-08 06:02:18] Production.INFO: ProcessCDR(1,14860233,1,1,2) [2025-04-08 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860233', 'tblTempUsageDetail_20' ) start [2025-04-08 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860233', 'tblTempUsageDetail_20' ) end [2025-04-08 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:02:21] Production.INFO: ==11622== Releasing lock... [2025-04-08 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:03:04 [end_date_ymd] => 2025-04-08 06:03:04 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:03:04' and `end` < '2025-04-08 06: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-04-08 06:03:17] Production.INFO: count ==217 [2025-04-08 06:03:17] Production.ERROR: pbx CDR StartTime 2025-04-08 03:03:04 - End Time 2025-04-08 06:03:04 [2025-04-08 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860238', 'tblTempUsageDetail_20' ) start [2025-04-08 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860238', 'tblTempUsageDetail_20' ) end [2025-04-08 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860238', 'tblTempVendorCDR_20' ) start [2025-04-08 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860238', 'tblTempVendorCDR_20' ) end [2025-04-08 06:03:17] Production.INFO: ProcessCDR(1,14860238,1,1,2) [2025-04-08 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860238', 'tblTempUsageDetail_20' ) start [2025-04-08 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860238', 'tblTempUsageDetail_20' ) end [2025-04-08 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:03:22] Production.INFO: ==11716== Releasing lock... [2025-04-08 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:03:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:04:05 [end_date_ymd] => 2025-04-08 06:04:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:04:05' and `end` < '2025-04-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-04-08 06:04:18] Production.INFO: count ==212 [2025-04-08 06:04:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:04:05 - End Time 2025-04-08 06:04:05 [2025-04-08 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860243', 'tblTempUsageDetail_20' ) start [2025-04-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860243', 'tblTempUsageDetail_20' ) end [2025-04-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860243', 'tblTempVendorCDR_20' ) start [2025-04-08 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860243', 'tblTempVendorCDR_20' ) end [2025-04-08 06:04:18] Production.INFO: ProcessCDR(1,14860243,1,1,2) [2025-04-08 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860243', 'tblTempUsageDetail_20' ) start [2025-04-08 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860243', 'tblTempUsageDetail_20' ) end [2025-04-08 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:04:21] Production.INFO: ==11848== Releasing lock... [2025-04-08 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:05:06 [end_date_ymd] => 2025-04-08 06:05:06 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:05:06' and `end` < '2025-04-08 06: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-04-08 06:05:19] Production.INFO: count ==213 [2025-04-08 06:05:19] Production.ERROR: pbx CDR StartTime 2025-04-08 03:05:06 - End Time 2025-04-08 06:05:06 [2025-04-08 06:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860248', 'tblTempUsageDetail_20' ) start [2025-04-08 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860248', 'tblTempUsageDetail_20' ) end [2025-04-08 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860248', 'tblTempVendorCDR_20' ) start [2025-04-08 06:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860248', 'tblTempVendorCDR_20' ) end [2025-04-08 06:05:19] Production.INFO: ProcessCDR(1,14860248,1,1,2) [2025-04-08 06:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860248', 'tblTempUsageDetail_20' ) start [2025-04-08 06:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860248', 'tblTempUsageDetail_20' ) end [2025-04-08 06:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:05:24] Production.INFO: ==11921== Releasing lock... [2025-04-08 06:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:05:24] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:06:06 [end_date_ymd] => 2025-04-08 06:06:06 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:06:06' and `end` < '2025-04-08 06: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-04-08 06:06:18] Production.INFO: count ==208 [2025-04-08 06:06:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:06:06 - End Time 2025-04-08 06:06:06 [2025-04-08 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860253', 'tblTempUsageDetail_20' ) start [2025-04-08 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860253', 'tblTempUsageDetail_20' ) end [2025-04-08 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860253', 'tblTempVendorCDR_20' ) start [2025-04-08 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860253', 'tblTempVendorCDR_20' ) end [2025-04-08 06:06:18] Production.INFO: ProcessCDR(1,14860253,1,1,2) [2025-04-08 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860253', 'tblTempUsageDetail_20' ) start [2025-04-08 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860253', 'tblTempUsageDetail_20' ) end [2025-04-08 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:06:22] Production.INFO: ==11997== Releasing lock... [2025-04-08 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:06:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:07:05 [end_date_ymd] => 2025-04-08 06:07:05 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:07:05' and `end` < '2025-04-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-04-08 06:07:18] Production.INFO: count ==208 [2025-04-08 06:07:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:07:05 - End Time 2025-04-08 06:07:05 [2025-04-08 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860258', 'tblTempUsageDetail_20' ) start [2025-04-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860258', 'tblTempUsageDetail_20' ) end [2025-04-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860258', 'tblTempVendorCDR_20' ) start [2025-04-08 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860258', 'tblTempVendorCDR_20' ) end [2025-04-08 06:07:18] Production.INFO: ProcessCDR(1,14860258,1,1,2) [2025-04-08 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860258', 'tblTempUsageDetail_20' ) start [2025-04-08 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860258', 'tblTempUsageDetail_20' ) end [2025-04-08 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:07:22] Production.INFO: ==12070== Releasing lock... [2025-04-08 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:07:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:08:05 [end_date_ymd] => 2025-04-08 06:08:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:08:05' and `end` < '2025-04-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-04-08 06:08:18] Production.INFO: count ==208 [2025-04-08 06:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:08:05 - End Time 2025-04-08 06:08:05 [2025-04-08 06:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860263', 'tblTempUsageDetail_20' ) start [2025-04-08 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860263', 'tblTempUsageDetail_20' ) end [2025-04-08 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860263', 'tblTempVendorCDR_20' ) start [2025-04-08 06:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860263', 'tblTempVendorCDR_20' ) end [2025-04-08 06:08:18] Production.INFO: ProcessCDR(1,14860263,1,1,2) [2025-04-08 06:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860263', 'tblTempUsageDetail_20' ) start [2025-04-08 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860263', 'tblTempUsageDetail_20' ) end [2025-04-08 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:08:21] Production.INFO: ==12144== Releasing lock... [2025-04-08 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:08:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:09:05 [end_date_ymd] => 2025-04-08 06:09:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:09:05' and `end` < '2025-04-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-04-08 06:09:18] Production.INFO: count ==208 [2025-04-08 06:09:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:09:05 - End Time 2025-04-08 06:09:05 [2025-04-08 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860268', 'tblTempUsageDetail_20' ) start [2025-04-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860268', 'tblTempUsageDetail_20' ) end [2025-04-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860268', 'tblTempVendorCDR_20' ) start [2025-04-08 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860268', 'tblTempVendorCDR_20' ) end [2025-04-08 06:09:18] Production.INFO: ProcessCDR(1,14860268,1,1,2) [2025-04-08 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860268', 'tblTempUsageDetail_20' ) start [2025-04-08 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860268', 'tblTempUsageDetail_20' ) end [2025-04-08 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:09:21] Production.INFO: ==12217== Releasing lock... [2025-04-08 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:09:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:10:05 [end_date_ymd] => 2025-04-08 06:10:05 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:10:05' and `end` < '2025-04-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-04-08 06:10:18] Production.INFO: count ==207 [2025-04-08 06:10:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:10:05 - End Time 2025-04-08 06:10:05 [2025-04-08 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860274', 'tblTempUsageDetail_20' ) start [2025-04-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860274', 'tblTempUsageDetail_20' ) end [2025-04-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860274', 'tblTempVendorCDR_20' ) start [2025-04-08 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860274', 'tblTempVendorCDR_20' ) end [2025-04-08 06:10:18] Production.INFO: ProcessCDR(1,14860274,1,1,2) [2025-04-08 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860274', 'tblTempUsageDetail_20' ) start [2025-04-08 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860274', 'tblTempUsageDetail_20' ) end [2025-04-08 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:10:22] Production.INFO: ==12292== Releasing lock... [2025-04-08 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:10:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:11:05 [end_date_ymd] => 2025-04-08 06:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:11:05' and `end` < '2025-04-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-04-08 06:11:18] Production.INFO: count ==205 [2025-04-08 06:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:11:05 - End Time 2025-04-08 06:11:05 [2025-04-08 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860279', 'tblTempUsageDetail_20' ) start [2025-04-08 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860279', 'tblTempUsageDetail_20' ) end [2025-04-08 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860279', 'tblTempVendorCDR_20' ) start [2025-04-08 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860279', 'tblTempVendorCDR_20' ) end [2025-04-08 06:11:18] Production.INFO: ProcessCDR(1,14860279,1,1,2) [2025-04-08 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860279', 'tblTempUsageDetail_20' ) start [2025-04-08 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860279', 'tblTempUsageDetail_20' ) end [2025-04-08 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:11:21] Production.INFO: ==12368== Releasing lock... [2025-04-08 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:11:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:12:06 [end_date_ymd] => 2025-04-08 06:12:06 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:12:06' and `end` < '2025-04-08 06: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-04-08 06:12:19] Production.INFO: count ==203 [2025-04-08 06:12:19] Production.ERROR: pbx CDR StartTime 2025-04-08 03:12:06 - End Time 2025-04-08 06:12:06 [2025-04-08 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860284', 'tblTempUsageDetail_20' ) start [2025-04-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860284', 'tblTempUsageDetail_20' ) end [2025-04-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860284', 'tblTempVendorCDR_20' ) start [2025-04-08 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860284', 'tblTempVendorCDR_20' ) end [2025-04-08 06:12:19] Production.INFO: ProcessCDR(1,14860284,1,1,2) [2025-04-08 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860284', 'tblTempUsageDetail_20' ) start [2025-04-08 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860284', 'tblTempUsageDetail_20' ) end [2025-04-08 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:12:22] Production.INFO: ==12442== Releasing lock... [2025-04-08 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:12:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:13:06 [end_date_ymd] => 2025-04-08 06:13:06 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:13:06' and `end` < '2025-04-08 06: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-04-08 06:13:18] Production.INFO: count ==203 [2025-04-08 06:13:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:13:06 - End Time 2025-04-08 06:13:06 [2025-04-08 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860289', 'tblTempUsageDetail_20' ) start [2025-04-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860289', 'tblTempUsageDetail_20' ) end [2025-04-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860289', 'tblTempVendorCDR_20' ) start [2025-04-08 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860289', 'tblTempVendorCDR_20' ) end [2025-04-08 06:13:18] Production.INFO: ProcessCDR(1,14860289,1,1,2) [2025-04-08 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860289', 'tblTempUsageDetail_20' ) start [2025-04-08 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860289', 'tblTempUsageDetail_20' ) end [2025-04-08 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:13:21] Production.INFO: ==12512== Releasing lock... [2025-04-08 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:13:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:14:04 [end_date_ymd] => 2025-04-08 06:14:04 [RateCDR] => 1 ) [2025-04-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-04-08 03:14:04' and `end` < '2025-04-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-04-08 06:14:17] Production.INFO: count ==203 [2025-04-08 06:14:17] Production.ERROR: pbx CDR StartTime 2025-04-08 03:14:04 - End Time 2025-04-08 06:14:04 [2025-04-08 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860294', 'tblTempUsageDetail_20' ) start [2025-04-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860294', 'tblTempUsageDetail_20' ) end [2025-04-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860294', 'tblTempVendorCDR_20' ) start [2025-04-08 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860294', 'tblTempVendorCDR_20' ) end [2025-04-08 06:14:17] Production.INFO: ProcessCDR(1,14860294,1,1,2) [2025-04-08 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860294', 'tblTempUsageDetail_20' ) start [2025-04-08 06:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860294', 'tblTempUsageDetail_20' ) end [2025-04-08 06:14:20] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:14:20] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:14:20] Production.INFO: ==12586== Releasing lock... [2025-04-08 06:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:14:20] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:15:05 [end_date_ymd] => 2025-04-08 06:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:15:05' and `end` < '2025-04-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-04-08 06:15:18] Production.INFO: count ==202 [2025-04-08 06:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:15:05 - End Time 2025-04-08 06:15:05 [2025-04-08 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860299', 'tblTempUsageDetail_20' ) start [2025-04-08 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860299', 'tblTempUsageDetail_20' ) end [2025-04-08 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860299', 'tblTempVendorCDR_20' ) start [2025-04-08 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860299', 'tblTempVendorCDR_20' ) end [2025-04-08 06:15:18] Production.INFO: ProcessCDR(1,14860299,1,1,2) [2025-04-08 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860299', 'tblTempUsageDetail_20' ) start [2025-04-08 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860299', 'tblTempUsageDetail_20' ) end [2025-04-08 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:15:21] Production.INFO: ==12661== Releasing lock... [2025-04-08 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:16:05 [end_date_ymd] => 2025-04-08 06:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:16:05' and `end` < '2025-04-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-04-08 06:16:18] Production.INFO: count ==202 [2025-04-08 06:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:16:05 - End Time 2025-04-08 06:16:05 [2025-04-08 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860304', 'tblTempUsageDetail_20' ) start [2025-04-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860304', 'tblTempUsageDetail_20' ) end [2025-04-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860304', 'tblTempVendorCDR_20' ) start [2025-04-08 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860304', 'tblTempVendorCDR_20' ) end [2025-04-08 06:16:18] Production.INFO: ProcessCDR(1,14860304,1,1,2) [2025-04-08 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860304', 'tblTempUsageDetail_20' ) start [2025-04-08 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860304', 'tblTempUsageDetail_20' ) end [2025-04-08 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:16:21] Production.INFO: ==12734== Releasing lock... [2025-04-08 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:16:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:17:05 [end_date_ymd] => 2025-04-08 06:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:17:05' and `end` < '2025-04-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-04-08 06:17:18] Production.INFO: count ==202 [2025-04-08 06:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:17:05 - End Time 2025-04-08 06:17:05 [2025-04-08 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860309', 'tblTempUsageDetail_20' ) start [2025-04-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860309', 'tblTempUsageDetail_20' ) end [2025-04-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860309', 'tblTempVendorCDR_20' ) start [2025-04-08 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860309', 'tblTempVendorCDR_20' ) end [2025-04-08 06:17:18] Production.INFO: ProcessCDR(1,14860309,1,1,2) [2025-04-08 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860309', 'tblTempUsageDetail_20' ) start [2025-04-08 06:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860309', 'tblTempUsageDetail_20' ) end [2025-04-08 06:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:17:22] Production.INFO: ==12807== Releasing lock... [2025-04-08 06:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:17:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:18:05 [end_date_ymd] => 2025-04-08 06:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:18:05' and `end` < '2025-04-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-04-08 06:18:18] Production.INFO: count ==202 [2025-04-08 06:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:18:05 - End Time 2025-04-08 06:18:05 [2025-04-08 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860314', 'tblTempUsageDetail_20' ) start [2025-04-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860314', 'tblTempUsageDetail_20' ) end [2025-04-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860314', 'tblTempVendorCDR_20' ) start [2025-04-08 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860314', 'tblTempVendorCDR_20' ) end [2025-04-08 06:18:18] Production.INFO: ProcessCDR(1,14860314,1,1,2) [2025-04-08 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860314', 'tblTempUsageDetail_20' ) start [2025-04-08 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860314', 'tblTempUsageDetail_20' ) end [2025-04-08 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:18:21] Production.INFO: ==12881== Releasing lock... [2025-04-08 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:19:05 [end_date_ymd] => 2025-04-08 06:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:19:05' and `end` < '2025-04-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-04-08 06:19:18] Production.INFO: count ==202 [2025-04-08 06:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:19:05 - End Time 2025-04-08 06:19:05 [2025-04-08 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860319', 'tblTempUsageDetail_20' ) start [2025-04-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860319', 'tblTempUsageDetail_20' ) end [2025-04-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860319', 'tblTempVendorCDR_20' ) start [2025-04-08 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860319', 'tblTempVendorCDR_20' ) end [2025-04-08 06:19:18] Production.INFO: ProcessCDR(1,14860319,1,1,2) [2025-04-08 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860319', 'tblTempUsageDetail_20' ) start [2025-04-08 06:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860319', 'tblTempUsageDetail_20' ) end [2025-04-08 06:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:19:22] Production.INFO: ==12998== Releasing lock... [2025-04-08 06:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:19:22] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:20:06 [end_date_ymd] => 2025-04-08 06:20:06 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:20:06' and `end` < '2025-04-08 06: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-04-08 06:20:18] Production.INFO: count ==192 [2025-04-08 06:20:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:20:06 - End Time 2025-04-08 06:20:06 [2025-04-08 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860324', 'tblTempUsageDetail_20' ) start [2025-04-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860324', 'tblTempUsageDetail_20' ) end [2025-04-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860324', 'tblTempVendorCDR_20' ) start [2025-04-08 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860324', 'tblTempVendorCDR_20' ) end [2025-04-08 06:20:18] Production.INFO: ProcessCDR(1,14860324,1,1,2) [2025-04-08 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860324', 'tblTempUsageDetail_20' ) start [2025-04-08 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860324', 'tblTempUsageDetail_20' ) end [2025-04-08 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:20:22] Production.INFO: ==13077== Releasing lock... [2025-04-08 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:20:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-08 06:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:21:04 [end_date_ymd] => 2025-04-08 06:21:04 [RateCDR] => 1 ) [2025-04-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-04-08 03:21:04' and `end` < '2025-04-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-04-08 06:21:17] Production.INFO: count ==186 [2025-04-08 06:21:17] Production.ERROR: pbx CDR StartTime 2025-04-08 03:21:04 - End Time 2025-04-08 06:21:04 [2025-04-08 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860330', 'tblTempUsageDetail_20' ) start [2025-04-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860330', 'tblTempUsageDetail_20' ) end [2025-04-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860330', 'tblTempVendorCDR_20' ) start [2025-04-08 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860330', 'tblTempVendorCDR_20' ) end [2025-04-08 06:21:17] Production.INFO: ProcessCDR(1,14860330,1,1,2) [2025-04-08 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860330', 'tblTempUsageDetail_20' ) start [2025-04-08 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860330', 'tblTempUsageDetail_20' ) end [2025-04-08 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:21:21] Production.INFO: ==13150== Releasing lock... [2025-04-08 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:21:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-08 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:22:05 [end_date_ymd] => 2025-04-08 06:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:22:05' and `end` < '2025-04-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-04-08 06:22:18] Production.INFO: count ==186 [2025-04-08 06:22:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:22:05 - End Time 2025-04-08 06:22:05 [2025-04-08 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860335', 'tblTempUsageDetail_20' ) start [2025-04-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860335', 'tblTempUsageDetail_20' ) end [2025-04-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860335', 'tblTempVendorCDR_20' ) start [2025-04-08 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860335', 'tblTempVendorCDR_20' ) end [2025-04-08 06:22:18] Production.INFO: ProcessCDR(1,14860335,1,1,2) [2025-04-08 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860335', 'tblTempUsageDetail_20' ) start [2025-04-08 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860335', 'tblTempUsageDetail_20' ) end [2025-04-08 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:22:21] Production.INFO: ==13227== Releasing lock... [2025-04-08 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:22:21] Production.INFO: 29.5 MB #Memory Used# [2025-04-08 06:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:23:06 [end_date_ymd] => 2025-04-08 06:23:06 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:23:06' and `end` < '2025-04-08 06: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-04-08 06:23:18] Production.INFO: count ==186 [2025-04-08 06:23:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:23:06 - End Time 2025-04-08 06:23:06 [2025-04-08 06:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860340', 'tblTempUsageDetail_20' ) start [2025-04-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860340', 'tblTempUsageDetail_20' ) end [2025-04-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860340', 'tblTempVendorCDR_20' ) start [2025-04-08 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860340', 'tblTempVendorCDR_20' ) end [2025-04-08 06:23:18] Production.INFO: ProcessCDR(1,14860340,1,1,2) [2025-04-08 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860340', 'tblTempUsageDetail_20' ) start [2025-04-08 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860340', 'tblTempUsageDetail_20' ) end [2025-04-08 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:23:22] Production.INFO: ==13305== Releasing lock... [2025-04-08 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:23:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-08 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:24:05 [end_date_ymd] => 2025-04-08 06:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:24:05' and `end` < '2025-04-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-04-08 06:24:18] Production.INFO: count ==191 [2025-04-08 06:24:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:24:05 - End Time 2025-04-08 06:24:05 [2025-04-08 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860345', 'tblTempUsageDetail_20' ) start [2025-04-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860345', 'tblTempUsageDetail_20' ) end [2025-04-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860345', 'tblTempVendorCDR_20' ) start [2025-04-08 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860345', 'tblTempVendorCDR_20' ) end [2025-04-08 06:24:18] Production.INFO: ProcessCDR(1,14860345,1,1,2) [2025-04-08 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860345', 'tblTempUsageDetail_20' ) start [2025-04-08 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860345', 'tblTempUsageDetail_20' ) end [2025-04-08 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:24:21] Production.INFO: ==13379== Releasing lock... [2025-04-08 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:24:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:25:05 [end_date_ymd] => 2025-04-08 06:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:25:05' and `end` < '2025-04-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-04-08 06:25:18] Production.INFO: count ==196 [2025-04-08 06:25:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:25:05 - End Time 2025-04-08 06:25:05 [2025-04-08 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860350', 'tblTempUsageDetail_20' ) start [2025-04-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860350', 'tblTempUsageDetail_20' ) end [2025-04-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860350', 'tblTempVendorCDR_20' ) start [2025-04-08 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860350', 'tblTempVendorCDR_20' ) end [2025-04-08 06:25:18] Production.INFO: ProcessCDR(1,14860350,1,1,2) [2025-04-08 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860350', 'tblTempUsageDetail_20' ) start [2025-04-08 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860350', 'tblTempUsageDetail_20' ) end [2025-04-08 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:25:21] Production.INFO: ==13452== Releasing lock... [2025-04-08 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:25:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:26:05 [end_date_ymd] => 2025-04-08 06:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:26:05' and `end` < '2025-04-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-04-08 06:26:18] Production.INFO: count ==196 [2025-04-08 06:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:26:05 - End Time 2025-04-08 06:26:05 [2025-04-08 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860355', 'tblTempUsageDetail_20' ) start [2025-04-08 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860355', 'tblTempUsageDetail_20' ) end [2025-04-08 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860355', 'tblTempVendorCDR_20' ) start [2025-04-08 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860355', 'tblTempVendorCDR_20' ) end [2025-04-08 06:26:18] Production.INFO: ProcessCDR(1,14860355,1,1,2) [2025-04-08 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860355', 'tblTempUsageDetail_20' ) start [2025-04-08 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860355', 'tblTempUsageDetail_20' ) end [2025-04-08 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:26:22] Production.INFO: ==13527== Releasing lock... [2025-04-08 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:26:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:27:05 [end_date_ymd] => 2025-04-08 06:27:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:27:05' and `end` < '2025-04-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-04-08 06:27:18] Production.INFO: count ==196 [2025-04-08 06:27:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:27:05 - End Time 2025-04-08 06:27:05 [2025-04-08 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860360', 'tblTempUsageDetail_20' ) start [2025-04-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860360', 'tblTempUsageDetail_20' ) end [2025-04-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860360', 'tblTempVendorCDR_20' ) start [2025-04-08 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860360', 'tblTempVendorCDR_20' ) end [2025-04-08 06:27:18] Production.INFO: ProcessCDR(1,14860360,1,1,2) [2025-04-08 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860360', 'tblTempUsageDetail_20' ) start [2025-04-08 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860360', 'tblTempUsageDetail_20' ) end [2025-04-08 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:27:22] Production.INFO: ==13597== Releasing lock... [2025-04-08 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:27:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:28:05 [end_date_ymd] => 2025-04-08 06:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:28:05' and `end` < '2025-04-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-04-08 06:28:18] Production.INFO: count ==196 [2025-04-08 06:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:28:05 - End Time 2025-04-08 06:28:05 [2025-04-08 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860365', 'tblTempUsageDetail_20' ) start [2025-04-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860365', 'tblTempUsageDetail_20' ) end [2025-04-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860365', 'tblTempVendorCDR_20' ) start [2025-04-08 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860365', 'tblTempVendorCDR_20' ) end [2025-04-08 06:28:18] Production.INFO: ProcessCDR(1,14860365,1,1,2) [2025-04-08 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860365', 'tblTempUsageDetail_20' ) start [2025-04-08 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860365', 'tblTempUsageDetail_20' ) end [2025-04-08 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:28:21] Production.INFO: ==13672== Releasing lock... [2025-04-08 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:28:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:29:06 [end_date_ymd] => 2025-04-08 06:29:06 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:29:06' and `end` < '2025-04-08 06: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-04-08 06:29:19] Production.INFO: count ==196 [2025-04-08 06:29:19] Production.ERROR: pbx CDR StartTime 2025-04-08 03:29:06 - End Time 2025-04-08 06:29:06 [2025-04-08 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860370', 'tblTempUsageDetail_20' ) start [2025-04-08 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860370', 'tblTempUsageDetail_20' ) end [2025-04-08 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860370', 'tblTempVendorCDR_20' ) start [2025-04-08 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860370', 'tblTempVendorCDR_20' ) end [2025-04-08 06:29:19] Production.INFO: ProcessCDR(1,14860370,1,1,2) [2025-04-08 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860370', 'tblTempUsageDetail_20' ) start [2025-04-08 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860370', 'tblTempUsageDetail_20' ) end [2025-04-08 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:29:22] Production.INFO: ==13746== Releasing lock... [2025-04-08 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:29:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:30:05 [end_date_ymd] => 2025-04-08 06:30:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:30:05' and `end` < '2025-04-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-04-08 06:30:18] Production.INFO: count ==190 [2025-04-08 06:30:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:30:05 - End Time 2025-04-08 06:30:05 [2025-04-08 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860376', 'tblTempUsageDetail_20' ) start [2025-04-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860376', 'tblTempUsageDetail_20' ) end [2025-04-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860376', 'tblTempVendorCDR_20' ) start [2025-04-08 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860376', 'tblTempVendorCDR_20' ) end [2025-04-08 06:30:18] Production.INFO: ProcessCDR(1,14860376,1,1,2) [2025-04-08 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860376', 'tblTempUsageDetail_20' ) start [2025-04-08 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860376', 'tblTempUsageDetail_20' ) end [2025-04-08 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:30:21] Production.INFO: ==13823== Releasing lock... [2025-04-08 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:30:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:31:05 [end_date_ymd] => 2025-04-08 06:31:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:31:05' and `end` < '2025-04-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-04-08 06:31:18] Production.INFO: count ==190 [2025-04-08 06:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:31:05 - End Time 2025-04-08 06:31:05 [2025-04-08 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860381', 'tblTempUsageDetail_20' ) start [2025-04-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860381', 'tblTempUsageDetail_20' ) end [2025-04-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860381', 'tblTempVendorCDR_20' ) start [2025-04-08 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860381', 'tblTempVendorCDR_20' ) end [2025-04-08 06:31:18] Production.INFO: ProcessCDR(1,14860381,1,1,2) [2025-04-08 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860381', 'tblTempUsageDetail_20' ) start [2025-04-08 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860381', 'tblTempUsageDetail_20' ) end [2025-04-08 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:31:21] Production.INFO: ==13899== Releasing lock... [2025-04-08 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:31:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:32:05 [end_date_ymd] => 2025-04-08 06:32:05 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:32:05' and `end` < '2025-04-08 06: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-04-08 06:32:17] Production.INFO: count ==190 [2025-04-08 06:32:17] Production.ERROR: pbx CDR StartTime 2025-04-08 03:32:05 - End Time 2025-04-08 06:32:05 [2025-04-08 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860386', 'tblTempUsageDetail_20' ) start [2025-04-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860386', 'tblTempUsageDetail_20' ) end [2025-04-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860386', 'tblTempVendorCDR_20' ) start [2025-04-08 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860386', 'tblTempVendorCDR_20' ) end [2025-04-08 06:32:17] Production.INFO: ProcessCDR(1,14860386,1,1,2) [2025-04-08 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860386', 'tblTempUsageDetail_20' ) start [2025-04-08 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860386', 'tblTempUsageDetail_20' ) end [2025-04-08 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:32:21] Production.INFO: ==13971== Releasing lock... [2025-04-08 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:32:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:33:05 [end_date_ymd] => 2025-04-08 06:33:05 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:33:05' and `end` < '2025-04-08 06: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-04-08 06:33:18] Production.INFO: count ==190 [2025-04-08 06:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:33:05 - End Time 2025-04-08 06:33:05 [2025-04-08 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860391', 'tblTempUsageDetail_20' ) start [2025-04-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860391', 'tblTempUsageDetail_20' ) end [2025-04-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860391', 'tblTempVendorCDR_20' ) start [2025-04-08 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860391', 'tblTempVendorCDR_20' ) end [2025-04-08 06:33:18] Production.INFO: ProcessCDR(1,14860391,1,1,2) [2025-04-08 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860391', 'tblTempUsageDetail_20' ) start [2025-04-08 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860391', 'tblTempUsageDetail_20' ) end [2025-04-08 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:33:21] Production.INFO: ==14044== Releasing lock... [2025-04-08 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:33:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:34:05 [end_date_ymd] => 2025-04-08 06:34:05 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:34:05' and `end` < '2025-04-08 06: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-04-08 06:34:18] Production.INFO: count ==190 [2025-04-08 06:34:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:34:05 - End Time 2025-04-08 06:34:05 [2025-04-08 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860396', 'tblTempUsageDetail_20' ) start [2025-04-08 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860396', 'tblTempUsageDetail_20' ) end [2025-04-08 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860396', 'tblTempVendorCDR_20' ) start [2025-04-08 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860396', 'tblTempVendorCDR_20' ) end [2025-04-08 06:34:18] Production.INFO: ProcessCDR(1,14860396,1,1,2) [2025-04-08 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860396', 'tblTempUsageDetail_20' ) start [2025-04-08 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860396', 'tblTempUsageDetail_20' ) end [2025-04-08 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:34:21] Production.INFO: ==14159== Releasing lock... [2025-04-08 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:34:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:35:05 [end_date_ymd] => 2025-04-08 06:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:35:05' and `end` < '2025-04-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-04-08 06:35:18] Production.INFO: count ==196 [2025-04-08 06:35:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:35:05 - End Time 2025-04-08 06:35:05 [2025-04-08 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860401', 'tblTempUsageDetail_20' ) start [2025-04-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860401', 'tblTempUsageDetail_20' ) end [2025-04-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860401', 'tblTempVendorCDR_20' ) start [2025-04-08 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860401', 'tblTempVendorCDR_20' ) end [2025-04-08 06:35:18] Production.INFO: ProcessCDR(1,14860401,1,1,2) [2025-04-08 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860401', 'tblTempUsageDetail_20' ) start [2025-04-08 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860401', 'tblTempUsageDetail_20' ) end [2025-04-08 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:35:21] Production.INFO: ==14232== Releasing lock... [2025-04-08 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:36:05 [end_date_ymd] => 2025-04-08 06:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:36:05' and `end` < '2025-04-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-04-08 06:36:18] Production.INFO: count ==196 [2025-04-08 06:36:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:36:05 - End Time 2025-04-08 06:36:05 [2025-04-08 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860406', 'tblTempUsageDetail_20' ) start [2025-04-08 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860406', 'tblTempUsageDetail_20' ) end [2025-04-08 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860406', 'tblTempVendorCDR_20' ) start [2025-04-08 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860406', 'tblTempVendorCDR_20' ) end [2025-04-08 06:36:18] Production.INFO: ProcessCDR(1,14860406,1,1,2) [2025-04-08 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860406', 'tblTempUsageDetail_20' ) start [2025-04-08 06:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860406', 'tblTempUsageDetail_20' ) end [2025-04-08 06:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:36:22] Production.INFO: ==14306== Releasing lock... [2025-04-08 06:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:37:05 [end_date_ymd] => 2025-04-08 06:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:37:05' and `end` < '2025-04-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-04-08 06:37:18] Production.INFO: count ==196 [2025-04-08 06:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:37:05 - End Time 2025-04-08 06:37:05 [2025-04-08 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860411', 'tblTempUsageDetail_20' ) start [2025-04-08 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860411', 'tblTempUsageDetail_20' ) end [2025-04-08 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860411', 'tblTempVendorCDR_20' ) start [2025-04-08 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860411', 'tblTempVendorCDR_20' ) end [2025-04-08 06:37:18] Production.INFO: ProcessCDR(1,14860411,1,1,2) [2025-04-08 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860411', 'tblTempUsageDetail_20' ) start [2025-04-08 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860411', 'tblTempUsageDetail_20' ) end [2025-04-08 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:37:21] Production.INFO: ==14381== Releasing lock... [2025-04-08 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:38:05 [end_date_ymd] => 2025-04-08 06:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:38:05' and `end` < '2025-04-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-04-08 06:38:18] Production.INFO: count ==195 [2025-04-08 06:38:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:38:05 - End Time 2025-04-08 06:38:05 [2025-04-08 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860416', 'tblTempUsageDetail_20' ) start [2025-04-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860416', 'tblTempUsageDetail_20' ) end [2025-04-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860416', 'tblTempVendorCDR_20' ) start [2025-04-08 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860416', 'tblTempVendorCDR_20' ) end [2025-04-08 06:38:18] Production.INFO: ProcessCDR(1,14860416,1,1,2) [2025-04-08 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860416', 'tblTempUsageDetail_20' ) start [2025-04-08 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860416', 'tblTempUsageDetail_20' ) end [2025-04-08 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:38:21] Production.INFO: ==14461== Releasing lock... [2025-04-08 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:38:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:39:06 [end_date_ymd] => 2025-04-08 06:39:06 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:39:06' and `end` < '2025-04-08 06: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-04-08 06:39:18] Production.INFO: count ==195 [2025-04-08 06:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:39:06 - End Time 2025-04-08 06:39:06 [2025-04-08 06:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860421', 'tblTempUsageDetail_20' ) start [2025-04-08 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860421', 'tblTempUsageDetail_20' ) end [2025-04-08 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860421', 'tblTempVendorCDR_20' ) start [2025-04-08 06:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860421', 'tblTempVendorCDR_20' ) end [2025-04-08 06:39:18] Production.INFO: ProcessCDR(1,14860421,1,1,2) [2025-04-08 06:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860421', 'tblTempUsageDetail_20' ) start [2025-04-08 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860421', 'tblTempUsageDetail_20' ) end [2025-04-08 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:39:22] Production.INFO: ==14534== Releasing lock... [2025-04-08 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:39:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:40:06 [end_date_ymd] => 2025-04-08 06:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 03:40:06' and `end` < '2025-04-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-04-08 06:40:19] Production.INFO: count ==195 [2025-04-08 06:40:19] Production.ERROR: pbx CDR StartTime 2025-04-08 03:40:06 - End Time 2025-04-08 06:40:06 [2025-04-08 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860426', 'tblTempUsageDetail_20' ) start [2025-04-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860426', 'tblTempUsageDetail_20' ) end [2025-04-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860426', 'tblTempVendorCDR_20' ) start [2025-04-08 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860426', 'tblTempVendorCDR_20' ) end [2025-04-08 06:40:19] Production.INFO: ProcessCDR(1,14860426,1,1,2) [2025-04-08 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860426', 'tblTempUsageDetail_20' ) start [2025-04-08 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860426', 'tblTempUsageDetail_20' ) end [2025-04-08 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:40:22] Production.INFO: ==14609== Releasing lock... [2025-04-08 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:40:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:41:05 [end_date_ymd] => 2025-04-08 06:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:41:05' and `end` < '2025-04-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-04-08 06:41:18] Production.INFO: count ==195 [2025-04-08 06:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:41:05 - End Time 2025-04-08 06:41:05 [2025-04-08 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860432', 'tblTempUsageDetail_20' ) start [2025-04-08 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860432', 'tblTempUsageDetail_20' ) end [2025-04-08 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860432', 'tblTempVendorCDR_20' ) start [2025-04-08 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860432', 'tblTempVendorCDR_20' ) end [2025-04-08 06:41:18] Production.INFO: ProcessCDR(1,14860432,1,1,2) [2025-04-08 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860432', 'tblTempUsageDetail_20' ) start [2025-04-08 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860432', 'tblTempUsageDetail_20' ) end [2025-04-08 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:41:21] Production.INFO: ==14686== Releasing lock... [2025-04-08 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:41:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:42:05 [end_date_ymd] => 2025-04-08 06:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:42:05' and `end` < '2025-04-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-04-08 06:42:18] Production.INFO: count ==195 [2025-04-08 06:42:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:42:05 - End Time 2025-04-08 06:42:05 [2025-04-08 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860437', 'tblTempUsageDetail_20' ) start [2025-04-08 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860437', 'tblTempUsageDetail_20' ) end [2025-04-08 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860437', 'tblTempVendorCDR_20' ) start [2025-04-08 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860437', 'tblTempVendorCDR_20' ) end [2025-04-08 06:42:18] Production.INFO: ProcessCDR(1,14860437,1,1,2) [2025-04-08 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860437', 'tblTempUsageDetail_20' ) start [2025-04-08 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860437', 'tblTempUsageDetail_20' ) end [2025-04-08 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:42:21] Production.INFO: ==14759== Releasing lock... [2025-04-08 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:42:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:43:04 [end_date_ymd] => 2025-04-08 06:43:04 [RateCDR] => 1 ) [2025-04-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-04-08 03:43:04' and `end` < '2025-04-08 06: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-04-08 06:43:17] Production.INFO: count ==195 [2025-04-08 06:43:17] Production.ERROR: pbx CDR StartTime 2025-04-08 03:43:04 - End Time 2025-04-08 06:43:04 [2025-04-08 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860442', 'tblTempUsageDetail_20' ) start [2025-04-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860442', 'tblTempUsageDetail_20' ) end [2025-04-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860442', 'tblTempVendorCDR_20' ) start [2025-04-08 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860442', 'tblTempVendorCDR_20' ) end [2025-04-08 06:43:17] Production.INFO: ProcessCDR(1,14860442,1,1,2) [2025-04-08 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860442', 'tblTempUsageDetail_20' ) start [2025-04-08 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860442', 'tblTempUsageDetail_20' ) end [2025-04-08 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:43:21] Production.INFO: ==14834== Releasing lock... [2025-04-08 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:43:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:44:05 [end_date_ymd] => 2025-04-08 06:44:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:44:05' and `end` < '2025-04-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-04-08 06:44:18] Production.INFO: count ==195 [2025-04-08 06:44:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:44:05 - End Time 2025-04-08 06:44:05 [2025-04-08 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860447', 'tblTempUsageDetail_20' ) start [2025-04-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860447', 'tblTempUsageDetail_20' ) end [2025-04-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860447', 'tblTempVendorCDR_20' ) start [2025-04-08 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860447', 'tblTempVendorCDR_20' ) end [2025-04-08 06:44:18] Production.INFO: ProcessCDR(1,14860447,1,1,2) [2025-04-08 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860447', 'tblTempUsageDetail_20' ) start [2025-04-08 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860447', 'tblTempUsageDetail_20' ) end [2025-04-08 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:44:21] Production.INFO: ==14907== Releasing lock... [2025-04-08 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:44:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:45:05 [end_date_ymd] => 2025-04-08 06:45:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:45:05' and `end` < '2025-04-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-04-08 06:45:17] Production.INFO: count ==195 [2025-04-08 06:45:17] Production.ERROR: pbx CDR StartTime 2025-04-08 03:45:05 - End Time 2025-04-08 06:45:05 [2025-04-08 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860452', 'tblTempUsageDetail_20' ) start [2025-04-08 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860452', 'tblTempUsageDetail_20' ) end [2025-04-08 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860452', 'tblTempVendorCDR_20' ) start [2025-04-08 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860452', 'tblTempVendorCDR_20' ) end [2025-04-08 06:45:18] Production.INFO: ProcessCDR(1,14860452,1,1,2) [2025-04-08 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860452', 'tblTempUsageDetail_20' ) start [2025-04-08 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860452', 'tblTempUsageDetail_20' ) end [2025-04-08 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:45:21] Production.INFO: ==14983== Releasing lock... [2025-04-08 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:45:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:46:05 [end_date_ymd] => 2025-04-08 06:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:46:05' and `end` < '2025-04-08 06: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-04-08 06:46:17] Production.INFO: count ==195 [2025-04-08 06:46:17] Production.ERROR: pbx CDR StartTime 2025-04-08 03:46:05 - End Time 2025-04-08 06:46:05 [2025-04-08 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860457', 'tblTempUsageDetail_20' ) start [2025-04-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860457', 'tblTempUsageDetail_20' ) end [2025-04-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860457', 'tblTempVendorCDR_20' ) start [2025-04-08 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860457', 'tblTempVendorCDR_20' ) end [2025-04-08 06:46:17] Production.INFO: ProcessCDR(1,14860457,1,1,2) [2025-04-08 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860457', 'tblTempUsageDetail_20' ) start [2025-04-08 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860457', 'tblTempUsageDetail_20' ) end [2025-04-08 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:46:21] Production.INFO: ==15054== Releasing lock... [2025-04-08 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:46:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:47:05 [end_date_ymd] => 2025-04-08 06:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:47:05' and `end` < '2025-04-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-04-08 06:47:18] Production.INFO: count ==197 [2025-04-08 06:47:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:47:05 - End Time 2025-04-08 06:47:05 [2025-04-08 06:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860462', 'tblTempUsageDetail_20' ) start [2025-04-08 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860462', 'tblTempUsageDetail_20' ) end [2025-04-08 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860462', 'tblTempVendorCDR_20' ) start [2025-04-08 06:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860462', 'tblTempVendorCDR_20' ) end [2025-04-08 06:47:18] Production.INFO: ProcessCDR(1,14860462,1,1,2) [2025-04-08 06:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860462', 'tblTempUsageDetail_20' ) start [2025-04-08 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860462', 'tblTempUsageDetail_20' ) end [2025-04-08 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:47:21] Production.INFO: ==15129== Releasing lock... [2025-04-08 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:48:05 [end_date_ymd] => 2025-04-08 06:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:48:05' and `end` < '2025-04-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-04-08 06:48:18] Production.INFO: count ==197 [2025-04-08 06:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:48:05 - End Time 2025-04-08 06:48:05 [2025-04-08 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860467', 'tblTempUsageDetail_20' ) start [2025-04-08 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860467', 'tblTempUsageDetail_20' ) end [2025-04-08 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860467', 'tblTempVendorCDR_20' ) start [2025-04-08 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860467', 'tblTempVendorCDR_20' ) end [2025-04-08 06:48:18] Production.INFO: ProcessCDR(1,14860467,1,1,2) [2025-04-08 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860467', 'tblTempUsageDetail_20' ) start [2025-04-08 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860467', 'tblTempUsageDetail_20' ) end [2025-04-08 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:48:21] Production.INFO: ==15203== Releasing lock... [2025-04-08 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:49:05 [end_date_ymd] => 2025-04-08 06:49:05 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:49:05' and `end` < '2025-04-08 06: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-04-08 06:49:18] Production.INFO: count ==200 [2025-04-08 06:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:49:05 - End Time 2025-04-08 06:49:05 [2025-04-08 06:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860472', 'tblTempUsageDetail_20' ) start [2025-04-08 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860472', 'tblTempUsageDetail_20' ) end [2025-04-08 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860472', 'tblTempVendorCDR_20' ) start [2025-04-08 06:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860472', 'tblTempVendorCDR_20' ) end [2025-04-08 06:49:18] Production.INFO: ProcessCDR(1,14860472,1,1,2) [2025-04-08 06:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860472', 'tblTempUsageDetail_20' ) start [2025-04-08 06:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860472', 'tblTempUsageDetail_20' ) end [2025-04-08 06:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:49:22] Production.INFO: ==15280== Releasing lock... [2025-04-08 06:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:49:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:50:05 [end_date_ymd] => 2025-04-08 06:50:05 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:50:05' and `end` < '2025-04-08 06: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-04-08 06:50:18] Production.INFO: count ==200 [2025-04-08 06:50:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:50:05 - End Time 2025-04-08 06:50:05 [2025-04-08 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860478', 'tblTempUsageDetail_20' ) start [2025-04-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860478', 'tblTempUsageDetail_20' ) end [2025-04-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860478', 'tblTempVendorCDR_20' ) start [2025-04-08 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860478', 'tblTempVendorCDR_20' ) end [2025-04-08 06:50:18] Production.INFO: ProcessCDR(1,14860478,1,1,2) [2025-04-08 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860478', 'tblTempUsageDetail_20' ) start [2025-04-08 06:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860478', 'tblTempUsageDetail_20' ) end [2025-04-08 06:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:50:22] Production.INFO: ==15392== Releasing lock... [2025-04-08 06:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:50:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:51:05 [end_date_ymd] => 2025-04-08 06:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:51:05' and `end` < '2025-04-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-04-08 06:51:18] Production.INFO: count ==200 [2025-04-08 06:51:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:51:05 - End Time 2025-04-08 06:51:05 [2025-04-08 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860483', 'tblTempUsageDetail_20' ) start [2025-04-08 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860483', 'tblTempUsageDetail_20' ) end [2025-04-08 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860483', 'tblTempVendorCDR_20' ) start [2025-04-08 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860483', 'tblTempVendorCDR_20' ) end [2025-04-08 06:51:18] Production.INFO: ProcessCDR(1,14860483,1,1,2) [2025-04-08 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860483', 'tblTempUsageDetail_20' ) start [2025-04-08 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860483', 'tblTempUsageDetail_20' ) end [2025-04-08 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:51:21] Production.INFO: ==15469== Releasing lock... [2025-04-08 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:51:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:52:05 [end_date_ymd] => 2025-04-08 06:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:52:05' and `end` < '2025-04-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-04-08 06:52:17] Production.INFO: count ==200 [2025-04-08 06:52:17] Production.ERROR: pbx CDR StartTime 2025-04-08 03:52:05 - End Time 2025-04-08 06:52:05 [2025-04-08 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860488', 'tblTempUsageDetail_20' ) start [2025-04-08 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860488', 'tblTempUsageDetail_20' ) end [2025-04-08 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860488', 'tblTempVendorCDR_20' ) start [2025-04-08 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860488', 'tblTempVendorCDR_20' ) end [2025-04-08 06:52:17] Production.INFO: ProcessCDR(1,14860488,1,1,2) [2025-04-08 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860488', 'tblTempUsageDetail_20' ) start [2025-04-08 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860488', 'tblTempUsageDetail_20' ) end [2025-04-08 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:52:21] Production.INFO: ==15548== Releasing lock... [2025-04-08 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:52:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:53:05 [end_date_ymd] => 2025-04-08 06:53:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:53:05' and `end` < '2025-04-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-04-08 06:53:18] Production.INFO: count ==200 [2025-04-08 06:53:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:53:05 - End Time 2025-04-08 06:53:05 [2025-04-08 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860493', 'tblTempUsageDetail_20' ) start [2025-04-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860493', 'tblTempUsageDetail_20' ) end [2025-04-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860493', 'tblTempVendorCDR_20' ) start [2025-04-08 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860493', 'tblTempVendorCDR_20' ) end [2025-04-08 06:53:18] Production.INFO: ProcessCDR(1,14860493,1,1,2) [2025-04-08 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860493', 'tblTempUsageDetail_20' ) start [2025-04-08 06:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860493', 'tblTempUsageDetail_20' ) end [2025-04-08 06:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:53:22] Production.INFO: ==15630== Releasing lock... [2025-04-08 06:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:53:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:54:04 [end_date_ymd] => 2025-04-08 06:54:04 [RateCDR] => 1 ) [2025-04-08 06:54: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-04-08 03:54:04' and `end` < '2025-04-08 06:54: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-04-08 06:54:17] Production.INFO: count ==200 [2025-04-08 06:54:17] Production.ERROR: pbx CDR StartTime 2025-04-08 03:54:04 - End Time 2025-04-08 06:54:04 [2025-04-08 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860498', 'tblTempUsageDetail_20' ) start [2025-04-08 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860498', 'tblTempUsageDetail_20' ) end [2025-04-08 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860498', 'tblTempVendorCDR_20' ) start [2025-04-08 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860498', 'tblTempVendorCDR_20' ) end [2025-04-08 06:54:17] Production.INFO: ProcessCDR(1,14860498,1,1,2) [2025-04-08 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860498', 'tblTempUsageDetail_20' ) start [2025-04-08 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860498', 'tblTempUsageDetail_20' ) end [2025-04-08 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:54:21] Production.INFO: ==15702== Releasing lock... [2025-04-08 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:54:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:55:05 [end_date_ymd] => 2025-04-08 06:55:05 [RateCDR] => 1 ) [2025-04-08 06: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-04-08 03:55:05' and `end` < '2025-04-08 06: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-04-08 06:55:18] Production.INFO: count ==200 [2025-04-08 06:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:55:05 - End Time 2025-04-08 06:55:05 [2025-04-08 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860503', 'tblTempUsageDetail_20' ) start [2025-04-08 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860503', 'tblTempUsageDetail_20' ) end [2025-04-08 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860503', 'tblTempVendorCDR_20' ) start [2025-04-08 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860503', 'tblTempVendorCDR_20' ) end [2025-04-08 06:55:18] Production.INFO: ProcessCDR(1,14860503,1,1,2) [2025-04-08 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860503', 'tblTempUsageDetail_20' ) start [2025-04-08 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860503', 'tblTempUsageDetail_20' ) end [2025-04-08 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:55:21] Production.INFO: ==15778== Releasing lock... [2025-04-08 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:55:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:56:05 [end_date_ymd] => 2025-04-08 06:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:56:05' and `end` < '2025-04-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-04-08 06:56:18] Production.INFO: count ==200 [2025-04-08 06:56:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:56:05 - End Time 2025-04-08 06:56:05 [2025-04-08 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860508', 'tblTempUsageDetail_20' ) start [2025-04-08 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860508', 'tblTempUsageDetail_20' ) end [2025-04-08 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860508', 'tblTempVendorCDR_20' ) start [2025-04-08 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860508', 'tblTempVendorCDR_20' ) end [2025-04-08 06:56:18] Production.INFO: ProcessCDR(1,14860508,1,1,2) [2025-04-08 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860508', 'tblTempUsageDetail_20' ) start [2025-04-08 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860508', 'tblTempUsageDetail_20' ) end [2025-04-08 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:56:21] Production.INFO: ==15851== Releasing lock... [2025-04-08 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:56:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:57:05 [end_date_ymd] => 2025-04-08 06:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:57:05' and `end` < '2025-04-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-04-08 06:57:18] Production.INFO: count ==195 [2025-04-08 06:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:57:05 - End Time 2025-04-08 06:57:05 [2025-04-08 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860513', 'tblTempUsageDetail_20' ) start [2025-04-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860513', 'tblTempUsageDetail_20' ) end [2025-04-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860513', 'tblTempVendorCDR_20' ) start [2025-04-08 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860513', 'tblTempVendorCDR_20' ) end [2025-04-08 06:57:18] Production.INFO: ProcessCDR(1,14860513,1,1,2) [2025-04-08 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860513', 'tblTempUsageDetail_20' ) start [2025-04-08 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860513', 'tblTempUsageDetail_20' ) end [2025-04-08 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:57:21] Production.INFO: ==15923== Releasing lock... [2025-04-08 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:58:05 [end_date_ymd] => 2025-04-08 06:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:58:05' and `end` < '2025-04-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-04-08 06:58:18] Production.INFO: count ==195 [2025-04-08 06:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:58:05 - End Time 2025-04-08 06:58:05 [2025-04-08 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860518', 'tblTempUsageDetail_20' ) start [2025-04-08 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860518', 'tblTempUsageDetail_20' ) end [2025-04-08 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860518', 'tblTempVendorCDR_20' ) start [2025-04-08 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860518', 'tblTempVendorCDR_20' ) end [2025-04-08 06:58:18] Production.INFO: ProcessCDR(1,14860518,1,1,2) [2025-04-08 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860518', 'tblTempUsageDetail_20' ) start [2025-04-08 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860518', 'tblTempUsageDetail_20' ) end [2025-04-08 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:58:21] Production.INFO: ==16004== Releasing lock... [2025-04-08 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 03:59:05 [end_date_ymd] => 2025-04-08 06:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 03:59:05' and `end` < '2025-04-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-04-08 06:59:18] Production.INFO: count ==204 [2025-04-08 06:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 03:59:05 - End Time 2025-04-08 06:59:05 [2025-04-08 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860523', 'tblTempUsageDetail_20' ) start [2025-04-08 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860523', 'tblTempUsageDetail_20' ) end [2025-04-08 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860523', 'tblTempVendorCDR_20' ) start [2025-04-08 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860523', 'tblTempVendorCDR_20' ) end [2025-04-08 06:59:18] Production.INFO: ProcessCDR(1,14860523,1,1,2) [2025-04-08 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860523', 'tblTempUsageDetail_20' ) start [2025-04-08 06:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860523', 'tblTempUsageDetail_20' ) end [2025-04-08 06:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 06:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 06:59:22] Production.INFO: ==16078== Releasing lock... [2025-04-08 06:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 06:59:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:00:06 [end_date_ymd] => 2025-04-08 07:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 04:00:06' and `end` < '2025-04-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-04-08 07:00:18] Production.INFO: count ==214 [2025-04-08 07:00:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:00:06 - End Time 2025-04-08 07:00:06 [2025-04-08 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860529', 'tblTempUsageDetail_20' ) start [2025-04-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860529', 'tblTempUsageDetail_20' ) end [2025-04-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860529', 'tblTempVendorCDR_20' ) start [2025-04-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860529', 'tblTempVendorCDR_20' ) end [2025-04-08 07:00:18] Production.INFO: ProcessCDR(1,14860529,1,1,2) [2025-04-08 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860529', 'tblTempUsageDetail_20' ) start [2025-04-08 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860529', 'tblTempUsageDetail_20' ) end [2025-04-08 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:00:22] Production.INFO: ==16152== Releasing lock... [2025-04-08 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:01:05 [end_date_ymd] => 2025-04-08 07:01:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:01:05' and `end` < '2025-04-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-04-08 07:01:19] Production.INFO: count ==205 [2025-04-08 07:01:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:01:05 - End Time 2025-04-08 07:01:05 [2025-04-08 07:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860534', 'tblTempUsageDetail_20' ) start [2025-04-08 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860534', 'tblTempUsageDetail_20' ) end [2025-04-08 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860534', 'tblTempVendorCDR_20' ) start [2025-04-08 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860534', 'tblTempVendorCDR_20' ) end [2025-04-08 07:01:19] Production.INFO: ProcessCDR(1,14860534,1,1,2) [2025-04-08 07:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860534', 'tblTempUsageDetail_20' ) start [2025-04-08 07:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860534', 'tblTempUsageDetail_20' ) end [2025-04-08 07:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:01:23] Production.INFO: ==16322== Releasing lock... [2025-04-08 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:01:23] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:02:05 [end_date_ymd] => 2025-04-08 07:02:05 [RateCDR] => 1 ) [2025-04-08 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 04:02:05' and `end` < '2025-04-08 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 07:02:19] Production.INFO: count ==207 [2025-04-08 07:02:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:02:05 - End Time 2025-04-08 07:02:05 [2025-04-08 07:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860539', 'tblTempUsageDetail_20' ) start [2025-04-08 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860539', 'tblTempUsageDetail_20' ) end [2025-04-08 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860539', 'tblTempVendorCDR_20' ) start [2025-04-08 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860539', 'tblTempVendorCDR_20' ) end [2025-04-08 07:02:19] Production.INFO: ProcessCDR(1,14860539,1,1,2) [2025-04-08 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860539', 'tblTempUsageDetail_20' ) start [2025-04-08 07:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860539', 'tblTempUsageDetail_20' ) end [2025-04-08 07:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:02:23] Production.INFO: ==16397== Releasing lock... [2025-04-08 07:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:02:23] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:03:05 [end_date_ymd] => 2025-04-08 07:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:03:05' and `end` < '2025-04-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-04-08 07:03:18] Production.INFO: count ==207 [2025-04-08 07:03:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:03:05 - End Time 2025-04-08 07:03:05 [2025-04-08 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860544', 'tblTempUsageDetail_20' ) start [2025-04-08 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860544', 'tblTempUsageDetail_20' ) end [2025-04-08 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860544', 'tblTempVendorCDR_20' ) start [2025-04-08 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860544', 'tblTempVendorCDR_20' ) end [2025-04-08 07:03:18] Production.INFO: ProcessCDR(1,14860544,1,1,2) [2025-04-08 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860544', 'tblTempUsageDetail_20' ) start [2025-04-08 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860544', 'tblTempUsageDetail_20' ) end [2025-04-08 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:03:21] Production.INFO: ==16478== Releasing lock... [2025-04-08 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:03:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:04:05 [end_date_ymd] => 2025-04-08 07:04:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:04:05' and `end` < '2025-04-08 07: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-04-08 07:04:19] Production.INFO: count ==198 [2025-04-08 07:04:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:04:05 - End Time 2025-04-08 07:04:05 [2025-04-08 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860549', 'tblTempUsageDetail_20' ) start [2025-04-08 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860549', 'tblTempUsageDetail_20' ) end [2025-04-08 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860549', 'tblTempVendorCDR_20' ) start [2025-04-08 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860549', 'tblTempVendorCDR_20' ) end [2025-04-08 07:04:19] Production.INFO: ProcessCDR(1,14860549,1,1,2) [2025-04-08 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860549', 'tblTempUsageDetail_20' ) start [2025-04-08 07:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860549', 'tblTempUsageDetail_20' ) end [2025-04-08 07:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:04:24] Production.INFO: ==16555== Releasing lock... [2025-04-08 07:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:04:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:05:05 [end_date_ymd] => 2025-04-08 07:05:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:05:05' and `end` < '2025-04-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-04-08 07:05:18] Production.INFO: count ==198 [2025-04-08 07:05:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:05:05 - End Time 2025-04-08 07:05:05 [2025-04-08 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860554', 'tblTempUsageDetail_20' ) start [2025-04-08 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860554', 'tblTempUsageDetail_20' ) end [2025-04-08 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860554', 'tblTempVendorCDR_20' ) start [2025-04-08 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860554', 'tblTempVendorCDR_20' ) end [2025-04-08 07:05:18] Production.INFO: ProcessCDR(1,14860554,1,1,2) [2025-04-08 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860554', 'tblTempUsageDetail_20' ) start [2025-04-08 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860554', 'tblTempUsageDetail_20' ) end [2025-04-08 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:05:21] Production.INFO: ==16747== Releasing lock... [2025-04-08 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:06:05 [end_date_ymd] => 2025-04-08 07:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:06:05' and `end` < '2025-04-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-04-08 07:06:19] Production.INFO: count ==193 [2025-04-08 07:06:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:06:05 - End Time 2025-04-08 07:06:05 [2025-04-08 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860559', 'tblTempUsageDetail_20' ) start [2025-04-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860559', 'tblTempUsageDetail_20' ) end [2025-04-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860559', 'tblTempVendorCDR_20' ) start [2025-04-08 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860559', 'tblTempVendorCDR_20' ) end [2025-04-08 07:06:19] Production.INFO: ProcessCDR(1,14860559,1,1,2) [2025-04-08 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860559', 'tblTempUsageDetail_20' ) start [2025-04-08 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860559', 'tblTempUsageDetail_20' ) end [2025-04-08 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:06:22] Production.INFO: ==16822== Releasing lock... [2025-04-08 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:06:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:07:05 [end_date_ymd] => 2025-04-08 07:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:07:05' and `end` < '2025-04-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-04-08 07:07:19] Production.INFO: count ==194 [2025-04-08 07:07:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:07:05 - End Time 2025-04-08 07:07:05 [2025-04-08 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860564', 'tblTempUsageDetail_20' ) start [2025-04-08 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860564', 'tblTempUsageDetail_20' ) end [2025-04-08 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860564', 'tblTempVendorCDR_20' ) start [2025-04-08 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860564', 'tblTempVendorCDR_20' ) end [2025-04-08 07:07:19] Production.INFO: ProcessCDR(1,14860564,1,1,2) [2025-04-08 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860564', 'tblTempUsageDetail_20' ) start [2025-04-08 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860564', 'tblTempUsageDetail_20' ) end [2025-04-08 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:07:22] Production.INFO: ==16898== Releasing lock... [2025-04-08 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:07:22] Production.INFO: 29.5 MB #Memory Used# [2025-04-08 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:08:06 [end_date_ymd] => 2025-04-08 07:08:06 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:08:06' and `end` < '2025-04-08 07: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-04-08 07:08:20] Production.INFO: count ==193 [2025-04-08 07:08:20] Production.ERROR: pbx CDR StartTime 2025-04-08 04:08:06 - End Time 2025-04-08 07:08:06 [2025-04-08 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860569', 'tblTempUsageDetail_20' ) start [2025-04-08 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860569', 'tblTempUsageDetail_20' ) end [2025-04-08 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860569', 'tblTempVendorCDR_20' ) start [2025-04-08 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860569', 'tblTempVendorCDR_20' ) end [2025-04-08 07:08:20] Production.INFO: ProcessCDR(1,14860569,1,1,2) [2025-04-08 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860569', 'tblTempUsageDetail_20' ) start [2025-04-08 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860569', 'tblTempUsageDetail_20' ) end [2025-04-08 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:08:23] Production.INFO: ==17052== Releasing lock... [2025-04-08 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:08:23] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:09:05 [end_date_ymd] => 2025-04-08 07:09:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:09:05' and `end` < '2025-04-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-04-08 07:09:20] Production.INFO: count ==193 [2025-04-08 07:09:20] Production.ERROR: pbx CDR StartTime 2025-04-08 04:09:05 - End Time 2025-04-08 07:09:05 [2025-04-08 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860574', 'tblTempUsageDetail_20' ) start [2025-04-08 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860574', 'tblTempUsageDetail_20' ) end [2025-04-08 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860574', 'tblTempVendorCDR_20' ) start [2025-04-08 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860574', 'tblTempVendorCDR_20' ) end [2025-04-08 07:09:20] Production.INFO: ProcessCDR(1,14860574,1,1,2) [2025-04-08 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860574', 'tblTempUsageDetail_20' ) start [2025-04-08 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860574', 'tblTempUsageDetail_20' ) end [2025-04-08 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:09:23] Production.INFO: ==17134== Releasing lock... [2025-04-08 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:09:23] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:10:06 [end_date_ymd] => 2025-04-08 07:10:06 [RateCDR] => 1 ) [2025-04-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-04-08 04:10:06' and `end` < '2025-04-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-04-08 07:10:20] Production.INFO: count ==200 [2025-04-08 07:10:21] Production.ERROR: pbx CDR StartTime 2025-04-08 04:10:06 - End Time 2025-04-08 07:10:06 [2025-04-08 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860580', 'tblTempUsageDetail_20' ) start [2025-04-08 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860580', 'tblTempUsageDetail_20' ) end [2025-04-08 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860580', 'tblTempVendorCDR_20' ) start [2025-04-08 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860580', 'tblTempVendorCDR_20' ) end [2025-04-08 07:10:21] Production.INFO: ProcessCDR(1,14860580,1,1,2) [2025-04-08 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860580', 'tblTempUsageDetail_20' ) start [2025-04-08 07:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860580', 'tblTempUsageDetail_20' ) end [2025-04-08 07:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:10:24] Production.INFO: ==17208== Releasing lock... [2025-04-08 07:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:10:24] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:11:05 [end_date_ymd] => 2025-04-08 07:11:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:11:05' and `end` < '2025-04-08 07: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-04-08 07:11:18] Production.INFO: count ==205 [2025-04-08 07:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:11:05 - End Time 2025-04-08 07:11:05 [2025-04-08 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860585', 'tblTempUsageDetail_20' ) start [2025-04-08 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860585', 'tblTempUsageDetail_20' ) end [2025-04-08 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860585', 'tblTempVendorCDR_20' ) start [2025-04-08 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860585', 'tblTempVendorCDR_20' ) end [2025-04-08 07:11:18] Production.INFO: ProcessCDR(1,14860585,1,1,2) [2025-04-08 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860585', 'tblTempUsageDetail_20' ) start [2025-04-08 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860585', 'tblTempUsageDetail_20' ) end [2025-04-08 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:11:22] Production.INFO: ==17290== Releasing lock... [2025-04-08 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:11:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:12:05 [end_date_ymd] => 2025-04-08 07:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:12:05' and `end` < '2025-04-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-04-08 07:12:18] Production.INFO: count ==205 [2025-04-08 07:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:12:05 - End Time 2025-04-08 07:12:05 [2025-04-08 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860590', 'tblTempUsageDetail_20' ) start [2025-04-08 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860590', 'tblTempUsageDetail_20' ) end [2025-04-08 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860590', 'tblTempVendorCDR_20' ) start [2025-04-08 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860590', 'tblTempVendorCDR_20' ) end [2025-04-08 07:12:18] Production.INFO: ProcessCDR(1,14860590,1,1,2) [2025-04-08 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860590', 'tblTempUsageDetail_20' ) start [2025-04-08 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860590', 'tblTempUsageDetail_20' ) end [2025-04-08 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:12:22] Production.INFO: ==17443== Releasing lock... [2025-04-08 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:12:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:13:05 [end_date_ymd] => 2025-04-08 07:13:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:13:05' and `end` < '2025-04-08 07: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-04-08 07:13:18] Production.INFO: count ==205 [2025-04-08 07:13:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:13:05 - End Time 2025-04-08 07:13:05 [2025-04-08 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860595', 'tblTempUsageDetail_20' ) start [2025-04-08 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860595', 'tblTempUsageDetail_20' ) end [2025-04-08 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860595', 'tblTempVendorCDR_20' ) start [2025-04-08 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860595', 'tblTempVendorCDR_20' ) end [2025-04-08 07:13:18] Production.INFO: ProcessCDR(1,14860595,1,1,2) [2025-04-08 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860595', 'tblTempUsageDetail_20' ) start [2025-04-08 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860595', 'tblTempUsageDetail_20' ) end [2025-04-08 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:13:22] Production.INFO: ==17519== Releasing lock... [2025-04-08 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:13:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:14:05 [end_date_ymd] => 2025-04-08 07:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:14:05' and `end` < '2025-04-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-04-08 07:14:19] Production.INFO: count ==205 [2025-04-08 07:14:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:14:05 - End Time 2025-04-08 07:14:05 [2025-04-08 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860600', 'tblTempUsageDetail_20' ) start [2025-04-08 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860600', 'tblTempUsageDetail_20' ) end [2025-04-08 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860600', 'tblTempVendorCDR_20' ) start [2025-04-08 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860600', 'tblTempVendorCDR_20' ) end [2025-04-08 07:14:19] Production.INFO: ProcessCDR(1,14860600,1,1,2) [2025-04-08 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860600', 'tblTempUsageDetail_20' ) start [2025-04-08 07:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860600', 'tblTempUsageDetail_20' ) end [2025-04-08 07:14:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:14:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:14:23] Production.INFO: ==17596== Releasing lock... [2025-04-08 07:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:14:23] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:15:05 [end_date_ymd] => 2025-04-08 07:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:15:05' and `end` < '2025-04-08 07: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-04-08 07:15:18] Production.INFO: count ==205 [2025-04-08 07:15:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:15:05 - End Time 2025-04-08 07:15:05 [2025-04-08 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860605', 'tblTempUsageDetail_20' ) start [2025-04-08 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860605', 'tblTempUsageDetail_20' ) end [2025-04-08 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860605', 'tblTempVendorCDR_20' ) start [2025-04-08 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860605', 'tblTempVendorCDR_20' ) end [2025-04-08 07:15:19] Production.INFO: ProcessCDR(1,14860605,1,1,2) [2025-04-08 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860605', 'tblTempUsageDetail_20' ) start [2025-04-08 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860605', 'tblTempUsageDetail_20' ) end [2025-04-08 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:15:22] Production.INFO: ==17756== Releasing lock... [2025-04-08 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:15:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:16:05 [end_date_ymd] => 2025-04-08 07:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:16:05' and `end` < '2025-04-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-04-08 07:16:18] Production.INFO: count ==206 [2025-04-08 07:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:16:05 - End Time 2025-04-08 07:16:05 [2025-04-08 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860610', 'tblTempUsageDetail_20' ) start [2025-04-08 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860610', 'tblTempUsageDetail_20' ) end [2025-04-08 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860610', 'tblTempVendorCDR_20' ) start [2025-04-08 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860610', 'tblTempVendorCDR_20' ) end [2025-04-08 07:16:18] Production.INFO: ProcessCDR(1,14860610,1,1,2) [2025-04-08 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860610', 'tblTempUsageDetail_20' ) start [2025-04-08 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860610', 'tblTempUsageDetail_20' ) end [2025-04-08 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:16:21] Production.INFO: ==17832== Releasing lock... [2025-04-08 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:17:05 [end_date_ymd] => 2025-04-08 07:17:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:17:05' and `end` < '2025-04-08 07: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-04-08 07:17:18] Production.INFO: count ==206 [2025-04-08 07:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:17:05 - End Time 2025-04-08 07:17:05 [2025-04-08 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860615', 'tblTempUsageDetail_20' ) start [2025-04-08 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860615', 'tblTempUsageDetail_20' ) end [2025-04-08 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860615', 'tblTempVendorCDR_20' ) start [2025-04-08 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860615', 'tblTempVendorCDR_20' ) end [2025-04-08 07:17:18] Production.INFO: ProcessCDR(1,14860615,1,1,2) [2025-04-08 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860615', 'tblTempUsageDetail_20' ) start [2025-04-08 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860615', 'tblTempUsageDetail_20' ) end [2025-04-08 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:17:22] Production.INFO: ==17918== Releasing lock... [2025-04-08 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:17:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:18:05 [end_date_ymd] => 2025-04-08 07:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:18:05' and `end` < '2025-04-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-04-08 07:18:18] Production.INFO: count ==206 [2025-04-08 07:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:18:05 - End Time 2025-04-08 07:18:05 [2025-04-08 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860620', 'tblTempUsageDetail_20' ) start [2025-04-08 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860620', 'tblTempUsageDetail_20' ) end [2025-04-08 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860620', 'tblTempVendorCDR_20' ) start [2025-04-08 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860620', 'tblTempVendorCDR_20' ) end [2025-04-08 07:18:18] Production.INFO: ProcessCDR(1,14860620,1,1,2) [2025-04-08 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860620', 'tblTempUsageDetail_20' ) start [2025-04-08 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860620', 'tblTempUsageDetail_20' ) end [2025-04-08 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:18:21] Production.INFO: ==17991== Releasing lock... [2025-04-08 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:19:05 [end_date_ymd] => 2025-04-08 07:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:19:05' and `end` < '2025-04-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-04-08 07:19:18] Production.INFO: count ==206 [2025-04-08 07:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:19:05 - End Time 2025-04-08 07:19:05 [2025-04-08 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860625', 'tblTempUsageDetail_20' ) start [2025-04-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860625', 'tblTempUsageDetail_20' ) end [2025-04-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860625', 'tblTempVendorCDR_20' ) start [2025-04-08 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860625', 'tblTempVendorCDR_20' ) end [2025-04-08 07:19:18] Production.INFO: ProcessCDR(1,14860625,1,1,2) [2025-04-08 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860625', 'tblTempUsageDetail_20' ) start [2025-04-08 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860625', 'tblTempUsageDetail_20' ) end [2025-04-08 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:19:22] Production.INFO: ==18078== Releasing lock... [2025-04-08 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:20:06 [end_date_ymd] => 2025-04-08 07:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 04:20:06' and `end` < '2025-04-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-04-08 07:20:19] Production.INFO: count ==208 [2025-04-08 07:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:20:06 - End Time 2025-04-08 07:20:06 [2025-04-08 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860631', 'tblTempUsageDetail_20' ) start [2025-04-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860631', 'tblTempUsageDetail_20' ) end [2025-04-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860631', 'tblTempVendorCDR_20' ) start [2025-04-08 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860631', 'tblTempVendorCDR_20' ) end [2025-04-08 07:20:19] Production.INFO: ProcessCDR(1,14860631,1,1,2) [2025-04-08 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860631', 'tblTempUsageDetail_20' ) start [2025-04-08 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860631', 'tblTempUsageDetail_20' ) end [2025-04-08 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:20:22] Production.INFO: ==18161== Releasing lock... [2025-04-08 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:21:05 [end_date_ymd] => 2025-04-08 07:21:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:21:05' and `end` < '2025-04-08 07: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-04-08 07:21:18] Production.INFO: count ==208 [2025-04-08 07:21:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:21:05 - End Time 2025-04-08 07:21:05 [2025-04-08 07:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860636', 'tblTempUsageDetail_20' ) start [2025-04-08 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860636', 'tblTempUsageDetail_20' ) end [2025-04-08 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860636', 'tblTempVendorCDR_20' ) start [2025-04-08 07:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860636', 'tblTempVendorCDR_20' ) end [2025-04-08 07:21:19] Production.INFO: ProcessCDR(1,14860636,1,1,2) [2025-04-08 07:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860636', 'tblTempUsageDetail_20' ) start [2025-04-08 07:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860636', 'tblTempUsageDetail_20' ) end [2025-04-08 07:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:21:22] Production.INFO: ==18287== Releasing lock... [2025-04-08 07:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:21:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:22:05 [end_date_ymd] => 2025-04-08 07:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:22:05' and `end` < '2025-04-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-04-08 07:22:18] Production.INFO: count ==208 [2025-04-08 07:22:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:22:05 - End Time 2025-04-08 07:22:05 [2025-04-08 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860641', 'tblTempUsageDetail_20' ) start [2025-04-08 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860641', 'tblTempUsageDetail_20' ) end [2025-04-08 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860641', 'tblTempVendorCDR_20' ) start [2025-04-08 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860641', 'tblTempVendorCDR_20' ) end [2025-04-08 07:22:18] Production.INFO: ProcessCDR(1,14860641,1,1,2) [2025-04-08 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860641', 'tblTempUsageDetail_20' ) start [2025-04-08 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860641', 'tblTempUsageDetail_20' ) end [2025-04-08 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:22:22] Production.INFO: ==18365== Releasing lock... [2025-04-08 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:22:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:23:05 [end_date_ymd] => 2025-04-08 07:23:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:23:05' and `end` < '2025-04-08 07: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-04-08 07:23:18] Production.INFO: count ==200 [2025-04-08 07:23:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:23:05 - End Time 2025-04-08 07:23:05 [2025-04-08 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860646', 'tblTempUsageDetail_20' ) start [2025-04-08 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860646', 'tblTempUsageDetail_20' ) end [2025-04-08 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860646', 'tblTempVendorCDR_20' ) start [2025-04-08 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860646', 'tblTempVendorCDR_20' ) end [2025-04-08 07:23:18] Production.INFO: ProcessCDR(1,14860646,1,1,2) [2025-04-08 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860646', 'tblTempUsageDetail_20' ) start [2025-04-08 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860646', 'tblTempUsageDetail_20' ) end [2025-04-08 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:23:21] Production.INFO: ==18464== Releasing lock... [2025-04-08 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:23:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:24:05 [end_date_ymd] => 2025-04-08 07:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:24:05' and `end` < '2025-04-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-04-08 07:24:18] Production.INFO: count ==200 [2025-04-08 07:24:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:24:05 - End Time 2025-04-08 07:24:05 [2025-04-08 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860651', 'tblTempUsageDetail_20' ) start [2025-04-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860651', 'tblTempUsageDetail_20' ) end [2025-04-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860651', 'tblTempVendorCDR_20' ) start [2025-04-08 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860651', 'tblTempVendorCDR_20' ) end [2025-04-08 07:24:18] Production.INFO: ProcessCDR(1,14860651,1,1,2) [2025-04-08 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860651', 'tblTempUsageDetail_20' ) start [2025-04-08 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860651', 'tblTempUsageDetail_20' ) end [2025-04-08 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:24:21] Production.INFO: ==18552== Releasing lock... [2025-04-08 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:24:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:25:05 [end_date_ymd] => 2025-04-08 07:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:25:05' and `end` < '2025-04-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-04-08 07:25:18] Production.INFO: count ==203 [2025-04-08 07:25:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:25:05 - End Time 2025-04-08 07:25:05 [2025-04-08 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860656', 'tblTempUsageDetail_20' ) start [2025-04-08 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860656', 'tblTempUsageDetail_20' ) end [2025-04-08 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860656', 'tblTempVendorCDR_20' ) start [2025-04-08 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860656', 'tblTempVendorCDR_20' ) end [2025-04-08 07:25:18] Production.INFO: ProcessCDR(1,14860656,1,1,2) [2025-04-08 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860656', 'tblTempUsageDetail_20' ) start [2025-04-08 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860656', 'tblTempUsageDetail_20' ) end [2025-04-08 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:25:21] Production.INFO: ==18635== Releasing lock... [2025-04-08 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:25:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:26:05 [end_date_ymd] => 2025-04-08 07:26:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:26:05' and `end` < '2025-04-08 07: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-04-08 07:26:18] Production.INFO: count ==203 [2025-04-08 07:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:26:05 - End Time 2025-04-08 07:26:05 [2025-04-08 07:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860661', 'tblTempUsageDetail_20' ) start [2025-04-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860661', 'tblTempUsageDetail_20' ) end [2025-04-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860661', 'tblTempVendorCDR_20' ) start [2025-04-08 07:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860661', 'tblTempVendorCDR_20' ) end [2025-04-08 07:26:18] Production.INFO: ProcessCDR(1,14860661,1,1,2) [2025-04-08 07:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860661', 'tblTempUsageDetail_20' ) start [2025-04-08 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860661', 'tblTempUsageDetail_20' ) end [2025-04-08 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:26:21] Production.INFO: ==18715== Releasing lock... [2025-04-08 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:26:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 07:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:27:04 [end_date_ymd] => 2025-04-08 07:27:04 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:27:04' and `end` < '2025-04-08 07: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-04-08 07:27:17] Production.INFO: count ==203 [2025-04-08 07:27:17] Production.ERROR: pbx CDR StartTime 2025-04-08 04:27:04 - End Time 2025-04-08 07:27:04 [2025-04-08 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860666', 'tblTempUsageDetail_20' ) start [2025-04-08 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860666', 'tblTempUsageDetail_20' ) end [2025-04-08 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860666', 'tblTempVendorCDR_20' ) start [2025-04-08 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860666', 'tblTempVendorCDR_20' ) end [2025-04-08 07:27:17] Production.INFO: ProcessCDR(1,14860666,1,1,2) [2025-04-08 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860666', 'tblTempUsageDetail_20' ) start [2025-04-08 07:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860666', 'tblTempUsageDetail_20' ) end [2025-04-08 07:27:20] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:27:20] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:27:20] Production.INFO: ==18797== Releasing lock... [2025-04-08 07:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:27:20] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:28:06 [end_date_ymd] => 2025-04-08 07:28:06 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:28:06' and `end` < '2025-04-08 07: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-04-08 07:28:18] Production.INFO: count ==210 [2025-04-08 07:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:28:06 - End Time 2025-04-08 07:28:06 [2025-04-08 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860671', 'tblTempUsageDetail_20' ) start [2025-04-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860671', 'tblTempUsageDetail_20' ) end [2025-04-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860671', 'tblTempVendorCDR_20' ) start [2025-04-08 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860671', 'tblTempVendorCDR_20' ) end [2025-04-08 07:28:18] Production.INFO: ProcessCDR(1,14860671,1,1,2) [2025-04-08 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860671', 'tblTempUsageDetail_20' ) start [2025-04-08 07:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860671', 'tblTempUsageDetail_20' ) end [2025-04-08 07:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:28:24] Production.INFO: ==18873== Releasing lock... [2025-04-08 07:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:28:24] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:29:05 [end_date_ymd] => 2025-04-08 07:29:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:29:05' and `end` < '2025-04-08 07: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-04-08 07:29:18] Production.INFO: count ==215 [2025-04-08 07:29:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:29:05 - End Time 2025-04-08 07:29:05 [2025-04-08 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860676', 'tblTempUsageDetail_20' ) start [2025-04-08 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860676', 'tblTempUsageDetail_20' ) end [2025-04-08 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860676', 'tblTempVendorCDR_20' ) start [2025-04-08 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860676', 'tblTempVendorCDR_20' ) end [2025-04-08 07:29:18] Production.INFO: ProcessCDR(1,14860676,1,1,2) [2025-04-08 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860676', 'tblTempUsageDetail_20' ) start [2025-04-08 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860676', 'tblTempUsageDetail_20' ) end [2025-04-08 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:29:21] Production.INFO: ==18952== Releasing lock... [2025-04-08 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:29:21] Production.INFO: 29.75 MB #Memory Used# [2025-04-08 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:30:06 [end_date_ymd] => 2025-04-08 07:30:06 [RateCDR] => 1 ) [2025-04-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-04-08 04:30:06' and `end` < '2025-04-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-04-08 07:30:19] Production.INFO: count ==221 [2025-04-08 07:30:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:30:06 - End Time 2025-04-08 07:30:06 [2025-04-08 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860682', 'tblTempUsageDetail_20' ) start [2025-04-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860682', 'tblTempUsageDetail_20' ) end [2025-04-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860682', 'tblTempVendorCDR_20' ) start [2025-04-08 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860682', 'tblTempVendorCDR_20' ) end [2025-04-08 07:30:19] Production.INFO: ProcessCDR(1,14860682,1,1,2) [2025-04-08 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860682', 'tblTempUsageDetail_20' ) start [2025-04-08 07:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860682', 'tblTempUsageDetail_20' ) end [2025-04-08 07:30:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:30:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:30:23] Production.INFO: ==19032== Releasing lock... [2025-04-08 07:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:30:23] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:31:05 [end_date_ymd] => 2025-04-08 07:31:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:31:05' and `end` < '2025-04-08 07: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-04-08 07:31:17] Production.INFO: count ==228 [2025-04-08 07:31:17] Production.ERROR: pbx CDR StartTime 2025-04-08 04:31:05 - End Time 2025-04-08 07:31:05 [2025-04-08 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860687', 'tblTempUsageDetail_20' ) start [2025-04-08 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860687', 'tblTempUsageDetail_20' ) end [2025-04-08 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860687', 'tblTempVendorCDR_20' ) start [2025-04-08 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860687', 'tblTempVendorCDR_20' ) end [2025-04-08 07:31:17] Production.INFO: ProcessCDR(1,14860687,1,1,2) [2025-04-08 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860687', 'tblTempUsageDetail_20' ) start [2025-04-08 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860687', 'tblTempUsageDetail_20' ) end [2025-04-08 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:31:21] Production.INFO: ==19122== Releasing lock... [2025-04-08 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:32:05 [end_date_ymd] => 2025-04-08 07:32:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:32:05' and `end` < '2025-04-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-04-08 07:32:18] Production.INFO: count ==230 [2025-04-08 07:32:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:32:05 - End Time 2025-04-08 07:32:05 [2025-04-08 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860692', 'tblTempUsageDetail_20' ) start [2025-04-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860692', 'tblTempUsageDetail_20' ) end [2025-04-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860692', 'tblTempVendorCDR_20' ) start [2025-04-08 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860692', 'tblTempVendorCDR_20' ) end [2025-04-08 07:32:18] Production.INFO: ProcessCDR(1,14860692,1,1,2) [2025-04-08 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860692', 'tblTempUsageDetail_20' ) start [2025-04-08 07:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860692', 'tblTempUsageDetail_20' ) end [2025-04-08 07:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:32:22] Production.INFO: ==19199== Releasing lock... [2025-04-08 07:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:32:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:33:04 [end_date_ymd] => 2025-04-08 07:33:04 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:33:04' and `end` < '2025-04-08 07: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-04-08 07:33:17] Production.INFO: count ==233 [2025-04-08 07:33:17] Production.ERROR: pbx CDR StartTime 2025-04-08 04:33:04 - End Time 2025-04-08 07:33:04 [2025-04-08 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860697', 'tblTempUsageDetail_20' ) start [2025-04-08 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860697', 'tblTempUsageDetail_20' ) end [2025-04-08 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860697', 'tblTempVendorCDR_20' ) start [2025-04-08 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860697', 'tblTempVendorCDR_20' ) end [2025-04-08 07:33:17] Production.INFO: ProcessCDR(1,14860697,1,1,2) [2025-04-08 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860697', 'tblTempUsageDetail_20' ) start [2025-04-08 07:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860697', 'tblTempUsageDetail_20' ) end [2025-04-08 07:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:33:21] Production.INFO: ==19273== Releasing lock... [2025-04-08 07:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:34:05 [end_date_ymd] => 2025-04-08 07:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:34:05' and `end` < '2025-04-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-04-08 07:34:18] Production.INFO: count ==238 [2025-04-08 07:34:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:34:05 - End Time 2025-04-08 07:34:05 [2025-04-08 07:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860702', 'tblTempUsageDetail_20' ) start [2025-04-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860702', 'tblTempUsageDetail_20' ) end [2025-04-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860702', 'tblTempVendorCDR_20' ) start [2025-04-08 07:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860702', 'tblTempVendorCDR_20' ) end [2025-04-08 07:34:18] Production.INFO: ProcessCDR(1,14860702,1,1,2) [2025-04-08 07:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860702', 'tblTempUsageDetail_20' ) start [2025-04-08 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860702', 'tblTempUsageDetail_20' ) end [2025-04-08 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:34:22] Production.INFO: ==19353== Releasing lock... [2025-04-08 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:34:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:35:05 [end_date_ymd] => 2025-04-08 07:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:35:05' and `end` < '2025-04-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-04-08 07:35:17] Production.INFO: count ==238 [2025-04-08 07:35:17] Production.ERROR: pbx CDR StartTime 2025-04-08 04:35:05 - End Time 2025-04-08 07:35:05 [2025-04-08 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860707', 'tblTempUsageDetail_20' ) start [2025-04-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860707', 'tblTempUsageDetail_20' ) end [2025-04-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860707', 'tblTempVendorCDR_20' ) start [2025-04-08 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860707', 'tblTempVendorCDR_20' ) end [2025-04-08 07:35:17] Production.INFO: ProcessCDR(1,14860707,1,1,2) [2025-04-08 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860707', 'tblTempUsageDetail_20' ) start [2025-04-08 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860707', 'tblTempUsageDetail_20' ) end [2025-04-08 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:35:21] Production.INFO: ==19436== Releasing lock... [2025-04-08 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:35:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:36:05 [end_date_ymd] => 2025-04-08 07:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:36:05' and `end` < '2025-04-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-04-08 07:36:18] Production.INFO: count ==238 [2025-04-08 07:36:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:36:05 - End Time 2025-04-08 07:36:05 [2025-04-08 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860712', 'tblTempUsageDetail_20' ) start [2025-04-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860712', 'tblTempUsageDetail_20' ) end [2025-04-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860712', 'tblTempVendorCDR_20' ) start [2025-04-08 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860712', 'tblTempVendorCDR_20' ) end [2025-04-08 07:36:18] Production.INFO: ProcessCDR(1,14860712,1,1,2) [2025-04-08 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860712', 'tblTempUsageDetail_20' ) start [2025-04-08 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860712', 'tblTempUsageDetail_20' ) end [2025-04-08 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:36:22] Production.INFO: ==19559== Releasing lock... [2025-04-08 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:36:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:37:06 [end_date_ymd] => 2025-04-08 07:37:06 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:37:06' and `end` < '2025-04-08 07: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-04-08 07:37:19] Production.INFO: count ==238 [2025-04-08 07:37:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:37:06 - End Time 2025-04-08 07:37:06 [2025-04-08 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860717', 'tblTempUsageDetail_20' ) start [2025-04-08 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860717', 'tblTempUsageDetail_20' ) end [2025-04-08 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860717', 'tblTempVendorCDR_20' ) start [2025-04-08 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860717', 'tblTempVendorCDR_20' ) end [2025-04-08 07:37:19] Production.INFO: ProcessCDR(1,14860717,1,1,2) [2025-04-08 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860717', 'tblTempUsageDetail_20' ) start [2025-04-08 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860717', 'tblTempUsageDetail_20' ) end [2025-04-08 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:37:22] Production.INFO: ==19642== Releasing lock... [2025-04-08 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:37:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:38:04 [end_date_ymd] => 2025-04-08 07:38:04 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:38:04' and `end` < '2025-04-08 07: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-04-08 07:38:17] Production.INFO: count ==243 [2025-04-08 07:38:17] Production.ERROR: pbx CDR StartTime 2025-04-08 04:38:04 - End Time 2025-04-08 07:38:04 [2025-04-08 07:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860722', 'tblTempUsageDetail_20' ) start [2025-04-08 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860722', 'tblTempUsageDetail_20' ) end [2025-04-08 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860722', 'tblTempVendorCDR_20' ) start [2025-04-08 07:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860722', 'tblTempVendorCDR_20' ) end [2025-04-08 07:38:17] Production.INFO: ProcessCDR(1,14860722,1,1,2) [2025-04-08 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860722', 'tblTempUsageDetail_20' ) start [2025-04-08 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860722', 'tblTempUsageDetail_20' ) end [2025-04-08 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:38:21] Production.INFO: ==19730== Releasing lock... [2025-04-08 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:38:21] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:39:05 [end_date_ymd] => 2025-04-08 07:39:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:39:05' and `end` < '2025-04-08 07: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-04-08 07:39:18] Production.INFO: count ==243 [2025-04-08 07:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:39:05 - End Time 2025-04-08 07:39:05 [2025-04-08 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860727', 'tblTempUsageDetail_20' ) start [2025-04-08 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860727', 'tblTempUsageDetail_20' ) end [2025-04-08 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860727', 'tblTempVendorCDR_20' ) start [2025-04-08 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860727', 'tblTempVendorCDR_20' ) end [2025-04-08 07:39:18] Production.INFO: ProcessCDR(1,14860727,1,1,2) [2025-04-08 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860727', 'tblTempUsageDetail_20' ) start [2025-04-08 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860727', 'tblTempUsageDetail_20' ) end [2025-04-08 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:39:22] Production.INFO: ==19807== Releasing lock... [2025-04-08 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:39:22] Production.INFO: 30 MB #Memory Used# [2025-04-08 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:40:06 [end_date_ymd] => 2025-04-08 07:40:06 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:40:06' and `end` < '2025-04-08 07: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-04-08 07:40:19] Production.INFO: count ==249 [2025-04-08 07:40:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:40:06 - End Time 2025-04-08 07:40:06 [2025-04-08 07:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860733', 'tblTempUsageDetail_20' ) start [2025-04-08 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860733', 'tblTempUsageDetail_20' ) end [2025-04-08 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860733', 'tblTempVendorCDR_20' ) start [2025-04-08 07:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860733', 'tblTempVendorCDR_20' ) end [2025-04-08 07:40:19] Production.INFO: ProcessCDR(1,14860733,1,1,2) [2025-04-08 07:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860733', 'tblTempUsageDetail_20' ) start [2025-04-08 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860733', 'tblTempUsageDetail_20' ) end [2025-04-08 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:40:22] Production.INFO: ==19889== Releasing lock... [2025-04-08 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:40:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:41:05 [end_date_ymd] => 2025-04-08 07:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:41:05' and `end` < '2025-04-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-04-08 07:41:18] Production.INFO: count ==254 [2025-04-08 07:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:41:05 - End Time 2025-04-08 07:41:05 [2025-04-08 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860738', 'tblTempUsageDetail_20' ) start [2025-04-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860738', 'tblTempUsageDetail_20' ) end [2025-04-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860738', 'tblTempVendorCDR_20' ) start [2025-04-08 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860738', 'tblTempVendorCDR_20' ) end [2025-04-08 07:41:18] Production.INFO: ProcessCDR(1,14860738,1,1,2) [2025-04-08 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860738', 'tblTempUsageDetail_20' ) start [2025-04-08 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860738', 'tblTempUsageDetail_20' ) end [2025-04-08 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:41:21] Production.INFO: ==19972== Releasing lock... [2025-04-08 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 07:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:42:04 [end_date_ymd] => 2025-04-08 07:42:04 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:42:04' and `end` < '2025-04-08 07: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-04-08 07:42:17] Production.INFO: count ==255 [2025-04-08 07:42:17] Production.ERROR: pbx CDR StartTime 2025-04-08 04:42:04 - End Time 2025-04-08 07:42:04 [2025-04-08 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860743', 'tblTempUsageDetail_20' ) start [2025-04-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860743', 'tblTempUsageDetail_20' ) end [2025-04-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860743', 'tblTempVendorCDR_20' ) start [2025-04-08 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860743', 'tblTempVendorCDR_20' ) end [2025-04-08 07:42:17] Production.INFO: ProcessCDR(1,14860743,1,1,2) [2025-04-08 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860743', 'tblTempUsageDetail_20' ) start [2025-04-08 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860743', 'tblTempUsageDetail_20' ) end [2025-04-08 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:42:22] Production.INFO: ==20048== Releasing lock... [2025-04-08 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:42:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:43:05 [end_date_ymd] => 2025-04-08 07:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:43:05' and `end` < '2025-04-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-04-08 07:43:18] Production.INFO: count ==255 [2025-04-08 07:43:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:43:05 - End Time 2025-04-08 07:43:05 [2025-04-08 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860748', 'tblTempUsageDetail_20' ) start [2025-04-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860748', 'tblTempUsageDetail_20' ) end [2025-04-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860748', 'tblTempVendorCDR_20' ) start [2025-04-08 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860748', 'tblTempVendorCDR_20' ) end [2025-04-08 07:43:18] Production.INFO: ProcessCDR(1,14860748,1,1,2) [2025-04-08 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860748', 'tblTempUsageDetail_20' ) start [2025-04-08 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860748', 'tblTempUsageDetail_20' ) end [2025-04-08 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:43:21] Production.INFO: ==20127== Releasing lock... [2025-04-08 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:44:05 [end_date_ymd] => 2025-04-08 07:44:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:44:05' and `end` < '2025-04-08 07: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-04-08 07:44:17] Production.INFO: count ==255 [2025-04-08 07:44:17] Production.ERROR: pbx CDR StartTime 2025-04-08 04:44:05 - End Time 2025-04-08 07:44:05 [2025-04-08 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860753', 'tblTempUsageDetail_20' ) start [2025-04-08 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860753', 'tblTempUsageDetail_20' ) end [2025-04-08 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860753', 'tblTempVendorCDR_20' ) start [2025-04-08 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860753', 'tblTempVendorCDR_20' ) end [2025-04-08 07:44:17] Production.INFO: ProcessCDR(1,14860753,1,1,2) [2025-04-08 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860753', 'tblTempUsageDetail_20' ) start [2025-04-08 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860753', 'tblTempUsageDetail_20' ) end [2025-04-08 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:44:21] Production.INFO: ==20207== Releasing lock... [2025-04-08 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:45:06 [end_date_ymd] => 2025-04-08 07:45:06 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:45:06' and `end` < '2025-04-08 07: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-04-08 07:45:18] Production.INFO: count ==255 [2025-04-08 07:45:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:45:06 - End Time 2025-04-08 07:45:06 [2025-04-08 07:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860758', 'tblTempUsageDetail_20' ) start [2025-04-08 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860758', 'tblTempUsageDetail_20' ) end [2025-04-08 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860758', 'tblTempVendorCDR_20' ) start [2025-04-08 07:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860758', 'tblTempVendorCDR_20' ) end [2025-04-08 07:45:19] Production.INFO: ProcessCDR(1,14860758,1,1,2) [2025-04-08 07:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860758', 'tblTempUsageDetail_20' ) start [2025-04-08 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860758', 'tblTempUsageDetail_20' ) end [2025-04-08 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:45:22] Production.INFO: ==20288== Releasing lock... [2025-04-08 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:45:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:46:05 [end_date_ymd] => 2025-04-08 07:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:46:05' and `end` < '2025-04-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-04-08 07:46:18] Production.INFO: count ==260 [2025-04-08 07:46:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:46:05 - End Time 2025-04-08 07:46:05 [2025-04-08 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860763', 'tblTempUsageDetail_20' ) start [2025-04-08 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860763', 'tblTempUsageDetail_20' ) end [2025-04-08 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860763', 'tblTempVendorCDR_20' ) start [2025-04-08 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860763', 'tblTempVendorCDR_20' ) end [2025-04-08 07:46:18] Production.INFO: ProcessCDR(1,14860763,1,1,2) [2025-04-08 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860763', 'tblTempUsageDetail_20' ) start [2025-04-08 07:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860763', 'tblTempUsageDetail_20' ) end [2025-04-08 07:46:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:46:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:46:21] Production.INFO: ==20374== Releasing lock... [2025-04-08 07:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:46:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:47:05 [end_date_ymd] => 2025-04-08 07:47:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:47:05' and `end` < '2025-04-08 07: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-04-08 07:47:18] Production.INFO: count ==265 [2025-04-08 07:47:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:47:05 - End Time 2025-04-08 07:47:05 [2025-04-08 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860768', 'tblTempUsageDetail_20' ) start [2025-04-08 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860768', 'tblTempUsageDetail_20' ) end [2025-04-08 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860768', 'tblTempVendorCDR_20' ) start [2025-04-08 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860768', 'tblTempVendorCDR_20' ) end [2025-04-08 07:47:18] Production.INFO: ProcessCDR(1,14860768,1,1,2) [2025-04-08 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860768', 'tblTempUsageDetail_20' ) start [2025-04-08 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860768', 'tblTempUsageDetail_20' ) end [2025-04-08 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:47:21] Production.INFO: ==20446== Releasing lock... [2025-04-08 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:47:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:48:05 [end_date_ymd] => 2025-04-08 07:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:48:05' and `end` < '2025-04-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-04-08 07:48:18] Production.INFO: count ==266 [2025-04-08 07:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:48:05 - End Time 2025-04-08 07:48:05 [2025-04-08 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860773', 'tblTempUsageDetail_20' ) start [2025-04-08 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860773', 'tblTempUsageDetail_20' ) end [2025-04-08 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860773', 'tblTempVendorCDR_20' ) start [2025-04-08 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860773', 'tblTempVendorCDR_20' ) end [2025-04-08 07:48:18] Production.INFO: ProcessCDR(1,14860773,1,1,2) [2025-04-08 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860773', 'tblTempUsageDetail_20' ) start [2025-04-08 07:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860773', 'tblTempUsageDetail_20' ) end [2025-04-08 07:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:48:23] Production.INFO: ==20533== Releasing lock... [2025-04-08 07:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:48:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:49:05 [end_date_ymd] => 2025-04-08 07:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:49:05' and `end` < '2025-04-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-04-08 07:49:17] Production.INFO: count ==271 [2025-04-08 07:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:49:05 - End Time 2025-04-08 07:49:05 [2025-04-08 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860778', 'tblTempUsageDetail_20' ) start [2025-04-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860778', 'tblTempUsageDetail_20' ) end [2025-04-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860778', 'tblTempVendorCDR_20' ) start [2025-04-08 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860778', 'tblTempVendorCDR_20' ) end [2025-04-08 07:49:18] Production.INFO: ProcessCDR(1,14860778,1,1,2) [2025-04-08 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860778', 'tblTempUsageDetail_20' ) start [2025-04-08 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860778', 'tblTempUsageDetail_20' ) end [2025-04-08 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:49:21] Production.INFO: ==20608== Releasing lock... [2025-04-08 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:49:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:50:06 [end_date_ymd] => 2025-04-08 07:50:06 [RateCDR] => 1 ) [2025-04-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-04-08 04:50:06' and `end` < '2025-04-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-04-08 07:50:19] Production.INFO: count ==279 [2025-04-08 07:50:19] Production.ERROR: pbx CDR StartTime 2025-04-08 04:50:06 - End Time 2025-04-08 07:50:06 [2025-04-08 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860783', 'tblTempUsageDetail_20' ) start [2025-04-08 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860783', 'tblTempUsageDetail_20' ) end [2025-04-08 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860783', 'tblTempVendorCDR_20' ) start [2025-04-08 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860783', 'tblTempVendorCDR_20' ) end [2025-04-08 07:50:19] Production.INFO: ProcessCDR(1,14860783,1,1,2) [2025-04-08 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860783', 'tblTempUsageDetail_20' ) start [2025-04-08 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860783', 'tblTempUsageDetail_20' ) end [2025-04-08 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:50:23] Production.INFO: ==20686== Releasing lock... [2025-04-08 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:50:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:51:05 [end_date_ymd] => 2025-04-08 07:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:51:05' and `end` < '2025-04-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-04-08 07:51:18] Production.INFO: count ==283 [2025-04-08 07:51:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:51:05 - End Time 2025-04-08 07:51:05 [2025-04-08 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860789', 'tblTempUsageDetail_20' ) start [2025-04-08 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860789', 'tblTempUsageDetail_20' ) end [2025-04-08 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860789', 'tblTempVendorCDR_20' ) start [2025-04-08 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860789', 'tblTempVendorCDR_20' ) end [2025-04-08 07:51:18] Production.INFO: ProcessCDR(1,14860789,1,1,2) [2025-04-08 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860789', 'tblTempUsageDetail_20' ) start [2025-04-08 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860789', 'tblTempUsageDetail_20' ) end [2025-04-08 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:51:21] Production.INFO: ==20766== Releasing lock... [2025-04-08 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:51:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:52:06 [end_date_ymd] => 2025-04-08 07:52:06 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:52:06' and `end` < '2025-04-08 07: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-04-08 07:52:18] Production.INFO: count ==283 [2025-04-08 07:52:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:52:06 - End Time 2025-04-08 07:52:06 [2025-04-08 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860794', 'tblTempUsageDetail_20' ) start [2025-04-08 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860794', 'tblTempUsageDetail_20' ) end [2025-04-08 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860794', 'tblTempVendorCDR_20' ) start [2025-04-08 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860794', 'tblTempVendorCDR_20' ) end [2025-04-08 07:52:18] Production.INFO: ProcessCDR(1,14860794,1,1,2) [2025-04-08 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860794', 'tblTempUsageDetail_20' ) start [2025-04-08 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860794', 'tblTempUsageDetail_20' ) end [2025-04-08 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:52:22] Production.INFO: ==20893== Releasing lock... [2025-04-08 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:52:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:53:05 [end_date_ymd] => 2025-04-08 07:53:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:53:05' and `end` < '2025-04-08 07: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-04-08 07:53:17] Production.INFO: count ==279 [2025-04-08 07:53:17] Production.ERROR: pbx CDR StartTime 2025-04-08 04:53:05 - End Time 2025-04-08 07:53:05 [2025-04-08 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860799', 'tblTempUsageDetail_20' ) start [2025-04-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860799', 'tblTempUsageDetail_20' ) end [2025-04-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860799', 'tblTempVendorCDR_20' ) start [2025-04-08 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860799', 'tblTempVendorCDR_20' ) end [2025-04-08 07:53:17] Production.INFO: ProcessCDR(1,14860799,1,1,2) [2025-04-08 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860799', 'tblTempUsageDetail_20' ) start [2025-04-08 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860799', 'tblTempUsageDetail_20' ) end [2025-04-08 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:53:21] Production.INFO: ==20971== Releasing lock... [2025-04-08 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:54:05 [end_date_ymd] => 2025-04-08 07:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:54:05' and `end` < '2025-04-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-04-08 07:54:18] Production.INFO: count ==274 [2025-04-08 07:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:54:05 - End Time 2025-04-08 07:54:05 [2025-04-08 07:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860804', 'tblTempUsageDetail_20' ) start [2025-04-08 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860804', 'tblTempUsageDetail_20' ) end [2025-04-08 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860804', 'tblTempVendorCDR_20' ) start [2025-04-08 07:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860804', 'tblTempVendorCDR_20' ) end [2025-04-08 07:54:18] Production.INFO: ProcessCDR(1,14860804,1,1,2) [2025-04-08 07:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860804', 'tblTempUsageDetail_20' ) start [2025-04-08 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860804', 'tblTempUsageDetail_20' ) end [2025-04-08 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:54:22] Production.INFO: ==21050== Releasing lock... [2025-04-08 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:55:05 [end_date_ymd] => 2025-04-08 07:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:55:05' and `end` < '2025-04-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-04-08 07:55:18] Production.INFO: count ==274 [2025-04-08 07:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:55:05 - End Time 2025-04-08 07:55:05 [2025-04-08 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860809', 'tblTempUsageDetail_20' ) start [2025-04-08 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860809', 'tblTempUsageDetail_20' ) end [2025-04-08 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860809', 'tblTempVendorCDR_20' ) start [2025-04-08 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860809', 'tblTempVendorCDR_20' ) end [2025-04-08 07:55:18] Production.INFO: ProcessCDR(1,14860809,1,1,2) [2025-04-08 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860809', 'tblTempUsageDetail_20' ) start [2025-04-08 07:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860809', 'tblTempUsageDetail_20' ) end [2025-04-08 07:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:55:22] Production.INFO: ==21125== Releasing lock... [2025-04-08 07:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:55:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:56:06 [end_date_ymd] => 2025-04-08 07:56:06 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:56:06' and `end` < '2025-04-08 07: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-04-08 07:56:18] Production.INFO: count ==274 [2025-04-08 07:56:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:56:06 - End Time 2025-04-08 07:56:06 [2025-04-08 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860814', 'tblTempUsageDetail_20' ) start [2025-04-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860814', 'tblTempUsageDetail_20' ) end [2025-04-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860814', 'tblTempVendorCDR_20' ) start [2025-04-08 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860814', 'tblTempVendorCDR_20' ) end [2025-04-08 07:56:18] Production.INFO: ProcessCDR(1,14860814,1,1,2) [2025-04-08 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860814', 'tblTempUsageDetail_20' ) start [2025-04-08 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860814', 'tblTempUsageDetail_20' ) end [2025-04-08 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:56:22] Production.INFO: ==21219== Releasing lock... [2025-04-08 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:57:05 [end_date_ymd] => 2025-04-08 07:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 04:57:05' and `end` < '2025-04-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-04-08 07:57:17] Production.INFO: count ==280 [2025-04-08 07:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:57:05 - End Time 2025-04-08 07:57:05 [2025-04-08 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860819', 'tblTempUsageDetail_20' ) start [2025-04-08 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860819', 'tblTempUsageDetail_20' ) end [2025-04-08 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860819', 'tblTempVendorCDR_20' ) start [2025-04-08 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860819', 'tblTempVendorCDR_20' ) end [2025-04-08 07:57:18] Production.INFO: ProcessCDR(1,14860819,1,1,2) [2025-04-08 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860819', 'tblTempUsageDetail_20' ) start [2025-04-08 07:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860819', 'tblTempUsageDetail_20' ) end [2025-04-08 07:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:57:23] Production.INFO: ==21299== Releasing lock... [2025-04-08 07:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:57:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 07:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:58:06 [end_date_ymd] => 2025-04-08 07:58:06 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:58:06' and `end` < '2025-04-08 07: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-04-08 07:58:18] Production.INFO: count ==280 [2025-04-08 07:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:58:06 - End Time 2025-04-08 07:58:06 [2025-04-08 07:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860824', 'tblTempUsageDetail_20' ) start [2025-04-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860824', 'tblTempUsageDetail_20' ) end [2025-04-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860824', 'tblTempVendorCDR_20' ) start [2025-04-08 07:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860824', 'tblTempVendorCDR_20' ) end [2025-04-08 07:58:18] Production.INFO: ProcessCDR(1,14860824,1,1,2) [2025-04-08 07:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860824', 'tblTempUsageDetail_20' ) start [2025-04-08 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860824', 'tblTempUsageDetail_20' ) end [2025-04-08 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:58:22] Production.INFO: ==21375== Releasing lock... [2025-04-08 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:58:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 04:59:05 [end_date_ymd] => 2025-04-08 07:59:05 [RateCDR] => 1 ) [2025-04-08 07: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-04-08 04:59:05' and `end` < '2025-04-08 07: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-04-08 07:59:17] Production.INFO: count ==277 [2025-04-08 07:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 04:59:05 - End Time 2025-04-08 07:59:05 [2025-04-08 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860829', 'tblTempUsageDetail_20' ) start [2025-04-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860829', 'tblTempUsageDetail_20' ) end [2025-04-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860829', 'tblTempVendorCDR_20' ) start [2025-04-08 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860829', 'tblTempVendorCDR_20' ) end [2025-04-08 07:59:18] Production.INFO: ProcessCDR(1,14860829,1,1,2) [2025-04-08 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860829', 'tblTempUsageDetail_20' ) start [2025-04-08 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860829', 'tblTempUsageDetail_20' ) end [2025-04-08 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 07:59:21] Production.INFO: ==21455== Releasing lock... [2025-04-08 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 07:59:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:00:06 [end_date_ymd] => 2025-04-08 08:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 05:00:06' and `end` < '2025-04-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-04-08 08:00:19] Production.INFO: count ==269 [2025-04-08 08:00:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:00:06 - End Time 2025-04-08 08:00:06 [2025-04-08 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860835', 'tblTempUsageDetail_20' ) start [2025-04-08 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860835', 'tblTempUsageDetail_20' ) end [2025-04-08 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860835', 'tblTempVendorCDR_20' ) start [2025-04-08 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860835', 'tblTempVendorCDR_20' ) end [2025-04-08 08:00:19] Production.INFO: ProcessCDR(1,14860835,1,1,2) [2025-04-08 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860835', 'tblTempUsageDetail_20' ) start [2025-04-08 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860835', 'tblTempUsageDetail_20' ) end [2025-04-08 08:00:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:00:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:00:24] Production.INFO: ==21541== Releasing lock... [2025-04-08 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:00:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:01:06 [end_date_ymd] => 2025-04-08 08:01:06 [RateCDR] => 1 ) [2025-04-08 08:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 05:01:06' and `end` < '2025-04-08 08:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 08:01:19] Production.INFO: count ==262 [2025-04-08 08:01:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:01:06 - End Time 2025-04-08 08:01:06 [2025-04-08 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860840', 'tblTempUsageDetail_20' ) start [2025-04-08 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860840', 'tblTempUsageDetail_20' ) end [2025-04-08 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860840', 'tblTempVendorCDR_20' ) start [2025-04-08 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860840', 'tblTempVendorCDR_20' ) end [2025-04-08 08:01:19] Production.INFO: ProcessCDR(1,14860840,1,1,2) [2025-04-08 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860840', 'tblTempUsageDetail_20' ) start [2025-04-08 08:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860840', 'tblTempUsageDetail_20' ) end [2025-04-08 08:01:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:01:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:01:24] Production.INFO: ==21636== Releasing lock... [2025-04-08 08:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:01:24] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:02:05 [end_date_ymd] => 2025-04-08 08:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:02:05' and `end` < '2025-04-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-04-08 08:02:18] Production.INFO: count ==272 [2025-04-08 08:02:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:02:05 - End Time 2025-04-08 08:02:05 [2025-04-08 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860845', 'tblTempUsageDetail_20' ) start [2025-04-08 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860845', 'tblTempUsageDetail_20' ) end [2025-04-08 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860845', 'tblTempVendorCDR_20' ) start [2025-04-08 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860845', 'tblTempVendorCDR_20' ) end [2025-04-08 08:02:18] Production.INFO: ProcessCDR(1,14860845,1,1,2) [2025-04-08 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860845', 'tblTempUsageDetail_20' ) start [2025-04-08 08:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860845', 'tblTempUsageDetail_20' ) end [2025-04-08 08:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:02:23] Production.INFO: ==21730== Releasing lock... [2025-04-08 08:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:02:23] Production.INFO: 31 MB #Memory Used# [2025-04-08 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:03:06 [end_date_ymd] => 2025-04-08 08:03:06 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:03:06' and `end` < '2025-04-08 08: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-04-08 08:03:18] Production.INFO: count ==282 [2025-04-08 08:03:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:03:06 - End Time 2025-04-08 08:03:06 [2025-04-08 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860850', 'tblTempUsageDetail_20' ) start [2025-04-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860850', 'tblTempUsageDetail_20' ) end [2025-04-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860850', 'tblTempVendorCDR_20' ) start [2025-04-08 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860850', 'tblTempVendorCDR_20' ) end [2025-04-08 08:03:19] Production.INFO: ProcessCDR(1,14860850,1,1,2) [2025-04-08 08:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860850', 'tblTempUsageDetail_20' ) start [2025-04-08 08:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860850', 'tblTempUsageDetail_20' ) end [2025-04-08 08:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:03:23] Production.INFO: ==21828== Releasing lock... [2025-04-08 08:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:03:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:04:05 [end_date_ymd] => 2025-04-08 08:04:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:04:05' and `end` < '2025-04-08 08: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-04-08 08:04:18] Production.INFO: count ==291 [2025-04-08 08:04:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:04:05 - End Time 2025-04-08 08:04:05 [2025-04-08 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860855', 'tblTempUsageDetail_20' ) start [2025-04-08 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860855', 'tblTempUsageDetail_20' ) end [2025-04-08 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860855', 'tblTempVendorCDR_20' ) start [2025-04-08 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860855', 'tblTempVendorCDR_20' ) end [2025-04-08 08:04:18] Production.INFO: ProcessCDR(1,14860855,1,1,2) [2025-04-08 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860855', 'tblTempUsageDetail_20' ) start [2025-04-08 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860855', 'tblTempUsageDetail_20' ) end [2025-04-08 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:04:22] Production.INFO: ==21917== Releasing lock... [2025-04-08 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:05:06 [end_date_ymd] => 2025-04-08 08:05:06 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:05:06' and `end` < '2025-04-08 08: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-04-08 08:05:19] Production.INFO: count ==301 [2025-04-08 08:05:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:05:06 - End Time 2025-04-08 08:05:06 [2025-04-08 08:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860860', 'tblTempUsageDetail_20' ) start [2025-04-08 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860860', 'tblTempUsageDetail_20' ) end [2025-04-08 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860860', 'tblTempVendorCDR_20' ) start [2025-04-08 08:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860860', 'tblTempVendorCDR_20' ) end [2025-04-08 08:05:19] Production.INFO: ProcessCDR(1,14860860,1,1,2) [2025-04-08 08:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860860', 'tblTempUsageDetail_20' ) start [2025-04-08 08:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860860', 'tblTempUsageDetail_20' ) end [2025-04-08 08:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:05:25] Production.INFO: ==22009== Releasing lock... [2025-04-08 08:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:05:25] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:06:05 [end_date_ymd] => 2025-04-08 08:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:06:05' and `end` < '2025-04-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-04-08 08:06:18] Production.INFO: count ==304 [2025-04-08 08:06:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:06:05 - End Time 2025-04-08 08:06:05 [2025-04-08 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860865', 'tblTempUsageDetail_20' ) start [2025-04-08 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860865', 'tblTempUsageDetail_20' ) end [2025-04-08 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860865', 'tblTempVendorCDR_20' ) start [2025-04-08 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860865', 'tblTempVendorCDR_20' ) end [2025-04-08 08:06:18] Production.INFO: ProcessCDR(1,14860865,1,1,2) [2025-04-08 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860865', 'tblTempUsageDetail_20' ) start [2025-04-08 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860865', 'tblTempUsageDetail_20' ) end [2025-04-08 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:06:23] Production.INFO: ==22102== Releasing lock... [2025-04-08 08:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:06:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:07:05 [end_date_ymd] => 2025-04-08 08:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:07:05' and `end` < '2025-04-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-04-08 08:07:18] Production.INFO: count ==311 [2025-04-08 08:07:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:07:05 - End Time 2025-04-08 08:07:05 [2025-04-08 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860870', 'tblTempUsageDetail_20' ) start [2025-04-08 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860870', 'tblTempUsageDetail_20' ) end [2025-04-08 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860870', 'tblTempVendorCDR_20' ) start [2025-04-08 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860870', 'tblTempVendorCDR_20' ) end [2025-04-08 08:07:18] Production.INFO: ProcessCDR(1,14860870,1,1,2) [2025-04-08 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860870', 'tblTempUsageDetail_20' ) start [2025-04-08 08:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860870', 'tblTempUsageDetail_20' ) end [2025-04-08 08:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:07:22] Production.INFO: ==22240== Releasing lock... [2025-04-08 08:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:07:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:08:05 [end_date_ymd] => 2025-04-08 08:08:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:08:05' and `end` < '2025-04-08 08: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-04-08 08:08:17] Production.INFO: count ==311 [2025-04-08 08:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:08:05 - End Time 2025-04-08 08:08:05 [2025-04-08 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860875', 'tblTempUsageDetail_20' ) start [2025-04-08 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860875', 'tblTempUsageDetail_20' ) end [2025-04-08 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860875', 'tblTempVendorCDR_20' ) start [2025-04-08 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860875', 'tblTempVendorCDR_20' ) end [2025-04-08 08:08:18] Production.INFO: ProcessCDR(1,14860875,1,1,2) [2025-04-08 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860875', 'tblTempUsageDetail_20' ) start [2025-04-08 08:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860875', 'tblTempUsageDetail_20' ) end [2025-04-08 08:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:08:21] Production.INFO: ==22339== Releasing lock... [2025-04-08 08:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:08:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:09:06 [end_date_ymd] => 2025-04-08 08:09:06 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:09:06' and `end` < '2025-04-08 08: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-04-08 08:09:19] Production.INFO: count ==316 [2025-04-08 08:09:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:09:06 - End Time 2025-04-08 08:09:06 [2025-04-08 08:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860880', 'tblTempUsageDetail_20' ) start [2025-04-08 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860880', 'tblTempUsageDetail_20' ) end [2025-04-08 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860880', 'tblTempVendorCDR_20' ) start [2025-04-08 08:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860880', 'tblTempVendorCDR_20' ) end [2025-04-08 08:09:19] Production.INFO: ProcessCDR(1,14860880,1,1,2) [2025-04-08 08:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860880', 'tblTempUsageDetail_20' ) start [2025-04-08 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860880', 'tblTempUsageDetail_20' ) end [2025-04-08 08:09:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:09:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:09:22] Production.INFO: ==22438== Releasing lock... [2025-04-08 08:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:09:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 08:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:10:05 [end_date_ymd] => 2025-04-08 08:10:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:10:05' and `end` < '2025-04-08 08: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-04-08 08:10:18] Production.INFO: count ==336 [2025-04-08 08:10:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:10:05 - End Time 2025-04-08 08:10:05 [2025-04-08 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860886', 'tblTempUsageDetail_20' ) start [2025-04-08 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860886', 'tblTempUsageDetail_20' ) end [2025-04-08 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860886', 'tblTempVendorCDR_20' ) start [2025-04-08 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860886', 'tblTempVendorCDR_20' ) end [2025-04-08 08:10:18] Production.INFO: ProcessCDR(1,14860886,1,1,2) [2025-04-08 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860886', 'tblTempUsageDetail_20' ) start [2025-04-08 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860886', 'tblTempUsageDetail_20' ) end [2025-04-08 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:10:23] Production.INFO: ==22528== Releasing lock... [2025-04-08 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:10:23] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:11:05 [end_date_ymd] => 2025-04-08 08:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:11:05' and `end` < '2025-04-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-04-08 08:11:18] Production.INFO: count ==352 [2025-04-08 08:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:11:05 - End Time 2025-04-08 08:11:05 [2025-04-08 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860891', 'tblTempUsageDetail_20' ) start [2025-04-08 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860891', 'tblTempUsageDetail_20' ) end [2025-04-08 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860891', 'tblTempVendorCDR_20' ) start [2025-04-08 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860891', 'tblTempVendorCDR_20' ) end [2025-04-08 08:11:18] Production.INFO: ProcessCDR(1,14860891,1,1,2) [2025-04-08 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860891', 'tblTempUsageDetail_20' ) start [2025-04-08 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860891', 'tblTempUsageDetail_20' ) end [2025-04-08 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:11:21] Production.INFO: ==22627== Releasing lock... [2025-04-08 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:11:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:12:05 [end_date_ymd] => 2025-04-08 08:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:12:05' and `end` < '2025-04-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-04-08 08:12:18] Production.INFO: count ==369 [2025-04-08 08:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:12:05 - End Time 2025-04-08 08:12:05 [2025-04-08 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860896', 'tblTempUsageDetail_20' ) start [2025-04-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860896', 'tblTempUsageDetail_20' ) end [2025-04-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860896', 'tblTempVendorCDR_20' ) start [2025-04-08 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860896', 'tblTempVendorCDR_20' ) end [2025-04-08 08:12:18] Production.INFO: ProcessCDR(1,14860896,1,1,2) [2025-04-08 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860896', 'tblTempUsageDetail_20' ) start [2025-04-08 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860896', 'tblTempUsageDetail_20' ) end [2025-04-08 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:12:23] Production.INFO: ==22722== Releasing lock... [2025-04-08 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:12:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:13:05 [end_date_ymd] => 2025-04-08 08:13:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:13:05' and `end` < '2025-04-08 08: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-04-08 08:13:18] Production.INFO: count ==369 [2025-04-08 08:13:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:13:05 - End Time 2025-04-08 08:13:05 [2025-04-08 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860901', 'tblTempUsageDetail_20' ) start [2025-04-08 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860901', 'tblTempUsageDetail_20' ) end [2025-04-08 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860901', 'tblTempVendorCDR_20' ) start [2025-04-08 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860901', 'tblTempVendorCDR_20' ) end [2025-04-08 08:13:18] Production.INFO: ProcessCDR(1,14860901,1,1,2) [2025-04-08 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860901', 'tblTempUsageDetail_20' ) start [2025-04-08 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860901', 'tblTempUsageDetail_20' ) end [2025-04-08 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:13:23] Production.INFO: ==22817== Releasing lock... [2025-04-08 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:13:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:14:05 [end_date_ymd] => 2025-04-08 08:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:14:05' and `end` < '2025-04-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-04-08 08:14:18] Production.INFO: count ==372 [2025-04-08 08:14:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:14:05 - End Time 2025-04-08 08:14:05 [2025-04-08 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860906', 'tblTempUsageDetail_20' ) start [2025-04-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860906', 'tblTempUsageDetail_20' ) end [2025-04-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860906', 'tblTempVendorCDR_20' ) start [2025-04-08 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860906', 'tblTempVendorCDR_20' ) end [2025-04-08 08:14:18] Production.INFO: ProcessCDR(1,14860906,1,1,2) [2025-04-08 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860906', 'tblTempUsageDetail_20' ) start [2025-04-08 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860906', 'tblTempUsageDetail_20' ) end [2025-04-08 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:14:22] Production.INFO: ==22907== Releasing lock... [2025-04-08 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 08:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:15:06 [end_date_ymd] => 2025-04-08 08:15:06 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:15:06' and `end` < '2025-04-08 08: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-04-08 08:15:18] Production.INFO: count ==383 [2025-04-08 08:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:15:06 - End Time 2025-04-08 08:15:06 [2025-04-08 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860911', 'tblTempUsageDetail_20' ) start [2025-04-08 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860911', 'tblTempUsageDetail_20' ) end [2025-04-08 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860911', 'tblTempVendorCDR_20' ) start [2025-04-08 08:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860911', 'tblTempVendorCDR_20' ) end [2025-04-08 08:15:19] Production.INFO: ProcessCDR(1,14860911,1,1,2) [2025-04-08 08:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860911', 'tblTempUsageDetail_20' ) start [2025-04-08 08:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860911', 'tblTempUsageDetail_20' ) end [2025-04-08 08:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:15:22] Production.INFO: ==23008== Releasing lock... [2025-04-08 08:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:15:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:16:05 [end_date_ymd] => 2025-04-08 08:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:16:05' and `end` < '2025-04-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-04-08 08:16:18] Production.INFO: count ==384 [2025-04-08 08:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:16:05 - End Time 2025-04-08 08:16:05 [2025-04-08 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860916', 'tblTempUsageDetail_20' ) start [2025-04-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860916', 'tblTempUsageDetail_20' ) end [2025-04-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860916', 'tblTempVendorCDR_20' ) start [2025-04-08 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860916', 'tblTempVendorCDR_20' ) end [2025-04-08 08:16:18] Production.INFO: ProcessCDR(1,14860916,1,1,2) [2025-04-08 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860916', 'tblTempUsageDetail_20' ) start [2025-04-08 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860916', 'tblTempUsageDetail_20' ) end [2025-04-08 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:16:23] Production.INFO: ==23104== Releasing lock... [2025-04-08 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:16:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:17:05 [end_date_ymd] => 2025-04-08 08:17:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:17:05' and `end` < '2025-04-08 08: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-04-08 08:17:18] Production.INFO: count ==391 [2025-04-08 08:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:17:05 - End Time 2025-04-08 08:17:05 [2025-04-08 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860921', 'tblTempUsageDetail_20' ) start [2025-04-08 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860921', 'tblTempUsageDetail_20' ) end [2025-04-08 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860921', 'tblTempVendorCDR_20' ) start [2025-04-08 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860921', 'tblTempVendorCDR_20' ) end [2025-04-08 08:17:18] Production.INFO: ProcessCDR(1,14860921,1,1,2) [2025-04-08 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860921', 'tblTempUsageDetail_20' ) start [2025-04-08 08:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860921', 'tblTempUsageDetail_20' ) end [2025-04-08 08:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:17:23] Production.INFO: ==23195== Releasing lock... [2025-04-08 08:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:17:23] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 08:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:18:06 [end_date_ymd] => 2025-04-08 08:18:06 [RateCDR] => 1 ) [2025-04-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-04-08 05:18:06' and `end` < '2025-04-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-04-08 08:18:18] Production.INFO: count ==403 [2025-04-08 08:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:18:06 - End Time 2025-04-08 08:18:06 [2025-04-08 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860926', 'tblTempUsageDetail_20' ) start [2025-04-08 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860926', 'tblTempUsageDetail_20' ) end [2025-04-08 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860926', 'tblTempVendorCDR_20' ) start [2025-04-08 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860926', 'tblTempVendorCDR_20' ) end [2025-04-08 08:18:18] Production.INFO: ProcessCDR(1,14860926,1,1,2) [2025-04-08 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860926', 'tblTempUsageDetail_20' ) start [2025-04-08 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860926', 'tblTempUsageDetail_20' ) end [2025-04-08 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:18:22] Production.INFO: ==23296== Releasing lock... [2025-04-08 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:19:05 [end_date_ymd] => 2025-04-08 08:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:19:05' and `end` < '2025-04-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-04-08 08:19:18] Production.INFO: count ==410 [2025-04-08 08:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:19:05 - End Time 2025-04-08 08:19:05 [2025-04-08 08:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860931', 'tblTempUsageDetail_20' ) start [2025-04-08 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860931', 'tblTempUsageDetail_20' ) end [2025-04-08 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860931', 'tblTempVendorCDR_20' ) start [2025-04-08 08:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860931', 'tblTempVendorCDR_20' ) end [2025-04-08 08:19:18] Production.INFO: ProcessCDR(1,14860931,1,1,2) [2025-04-08 08:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860931', 'tblTempUsageDetail_20' ) start [2025-04-08 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860931', 'tblTempUsageDetail_20' ) end [2025-04-08 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:19:23] Production.INFO: ==23388== Releasing lock... [2025-04-08 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:19:23] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:20:06 [end_date_ymd] => 2025-04-08 08:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 05:20:06' and `end` < '2025-04-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-04-08 08:20:19] Production.INFO: count ==431 [2025-04-08 08:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:20:06 - End Time 2025-04-08 08:20:06 [2025-04-08 08:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860937', 'tblTempUsageDetail_20' ) start [2025-04-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860937', 'tblTempUsageDetail_20' ) end [2025-04-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860937', 'tblTempVendorCDR_20' ) start [2025-04-08 08:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860937', 'tblTempVendorCDR_20' ) end [2025-04-08 08:20:19] Production.INFO: ProcessCDR(1,14860937,1,1,2) [2025-04-08 08:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860937', 'tblTempUsageDetail_20' ) start [2025-04-08 08:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860937', 'tblTempUsageDetail_20' ) end [2025-04-08 08:20:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:20:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:20:24] Production.INFO: ==23483== Releasing lock... [2025-04-08 08:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:20:24] Production.INFO: 32 MB #Memory Used# [2025-04-08 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:21:05 [end_date_ymd] => 2025-04-08 08:21:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:21:05' and `end` < '2025-04-08 08: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-04-08 08:21:17] Production.INFO: count ==481 [2025-04-08 08:21:17] Production.ERROR: pbx CDR StartTime 2025-04-08 05:21:05 - End Time 2025-04-08 08:21:05 [2025-04-08 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860942', 'tblTempUsageDetail_20' ) start [2025-04-08 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860942', 'tblTempUsageDetail_20' ) end [2025-04-08 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860942', 'tblTempVendorCDR_20' ) start [2025-04-08 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860942', 'tblTempVendorCDR_20' ) end [2025-04-08 08:21:17] Production.INFO: ProcessCDR(1,14860942,1,1,2) [2025-04-08 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860942', 'tblTempUsageDetail_20' ) start [2025-04-08 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860942', 'tblTempUsageDetail_20' ) end [2025-04-08 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:21:22] Production.INFO: ==23583== Releasing lock... [2025-04-08 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:21:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:22:05 [end_date_ymd] => 2025-04-08 08:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:22:05' and `end` < '2025-04-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-04-08 08:22:18] Production.INFO: count ==490 [2025-04-08 08:22:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:22:05 - End Time 2025-04-08 08:22:05 [2025-04-08 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860947', 'tblTempUsageDetail_20' ) start [2025-04-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860947', 'tblTempUsageDetail_20' ) end [2025-04-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860947', 'tblTempVendorCDR_20' ) start [2025-04-08 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860947', 'tblTempVendorCDR_20' ) end [2025-04-08 08:22:18] Production.INFO: ProcessCDR(1,14860947,1,1,2) [2025-04-08 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860947', 'tblTempUsageDetail_20' ) start [2025-04-08 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860947', 'tblTempUsageDetail_20' ) end [2025-04-08 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:22:23] Production.INFO: ==23713== Releasing lock... [2025-04-08 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:22:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 08:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:23:04 [end_date_ymd] => 2025-04-08 08:23:04 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:23:04' and `end` < '2025-04-08 08: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-04-08 08:23:17] Production.INFO: count ==500 [2025-04-08 08:23:17] Production.ERROR: pbx CDR StartTime 2025-04-08 05:23:04 - End Time 2025-04-08 08:23:04 [2025-04-08 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860952', 'tblTempUsageDetail_20' ) start [2025-04-08 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860952', 'tblTempUsageDetail_20' ) end [2025-04-08 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860952', 'tblTempVendorCDR_20' ) start [2025-04-08 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860952', 'tblTempVendorCDR_20' ) end [2025-04-08 08:23:17] Production.INFO: ProcessCDR(1,14860952,1,1,2) [2025-04-08 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860952', 'tblTempUsageDetail_20' ) start [2025-04-08 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860952', 'tblTempUsageDetail_20' ) end [2025-04-08 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:23:21] Production.INFO: ==23815== Releasing lock... [2025-04-08 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:23:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:24:05 [end_date_ymd] => 2025-04-08 08:24:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:24:05' and `end` < '2025-04-08 08: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-04-08 08:24:18] Production.INFO: count ==506 [2025-04-08 08:24:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:24:05 - End Time 2025-04-08 08:24:05 [2025-04-08 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860957', 'tblTempUsageDetail_20' ) start [2025-04-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860957', 'tblTempUsageDetail_20' ) end [2025-04-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860957', 'tblTempVendorCDR_20' ) start [2025-04-08 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860957', 'tblTempVendorCDR_20' ) end [2025-04-08 08:24:18] Production.INFO: ProcessCDR(1,14860957,1,1,2) [2025-04-08 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860957', 'tblTempUsageDetail_20' ) start [2025-04-08 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860957', 'tblTempUsageDetail_20' ) end [2025-04-08 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:24:23] Production.INFO: ==23906== Releasing lock... [2025-04-08 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:24:23] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:25:06 [end_date_ymd] => 2025-04-08 08:25:06 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:25:06' and `end` < '2025-04-08 08: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-04-08 08:25:19] Production.INFO: count ==520 [2025-04-08 08:25:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:25:06 - End Time 2025-04-08 08:25:06 [2025-04-08 08:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860962', 'tblTempUsageDetail_20' ) start [2025-04-08 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860962', 'tblTempUsageDetail_20' ) end [2025-04-08 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860962', 'tblTempVendorCDR_20' ) start [2025-04-08 08:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860962', 'tblTempVendorCDR_20' ) end [2025-04-08 08:25:19] Production.INFO: ProcessCDR(1,14860962,1,1,2) [2025-04-08 08:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860962', 'tblTempUsageDetail_20' ) start [2025-04-08 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860962', 'tblTempUsageDetail_20' ) end [2025-04-08 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:25:23] Production.INFO: ==23998== Releasing lock... [2025-04-08 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:25:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:26:05 [end_date_ymd] => 2025-04-08 08:26:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:26:05' and `end` < '2025-04-08 08: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-04-08 08:26:18] Production.INFO: count ==528 [2025-04-08 08:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:26:05 - End Time 2025-04-08 08:26:05 [2025-04-08 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860967', 'tblTempUsageDetail_20' ) start [2025-04-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860967', 'tblTempUsageDetail_20' ) end [2025-04-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860967', 'tblTempVendorCDR_20' ) start [2025-04-08 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860967', 'tblTempVendorCDR_20' ) end [2025-04-08 08:26:18] Production.INFO: ProcessCDR(1,14860967,1,1,2) [2025-04-08 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860967', 'tblTempUsageDetail_20' ) start [2025-04-08 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860967', 'tblTempUsageDetail_20' ) end [2025-04-08 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:26:23] Production.INFO: ==24096== Releasing lock... [2025-04-08 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:26:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:27:06 [end_date_ymd] => 2025-04-08 08:27:06 [RateCDR] => 1 ) [2025-04-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-04-08 05:27:06' and `end` < '2025-04-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-04-08 08:27:19] Production.INFO: count ==533 [2025-04-08 08:27:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:27:06 - End Time 2025-04-08 08:27:06 [2025-04-08 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860972', 'tblTempUsageDetail_20' ) start [2025-04-08 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860972', 'tblTempUsageDetail_20' ) end [2025-04-08 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860972', 'tblTempVendorCDR_20' ) start [2025-04-08 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860972', 'tblTempVendorCDR_20' ) end [2025-04-08 08:27:19] Production.INFO: ProcessCDR(1,14860972,1,1,2) [2025-04-08 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860972', 'tblTempUsageDetail_20' ) start [2025-04-08 08:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860972', 'tblTempUsageDetail_20' ) end [2025-04-08 08:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:27:24] Production.INFO: ==24195== Releasing lock... [2025-04-08 08:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:27:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:28:05 [end_date_ymd] => 2025-04-08 08:28:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:28:05' and `end` < '2025-04-08 08: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-04-08 08:28:18] Production.INFO: count ==538 [2025-04-08 08:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:28:05 - End Time 2025-04-08 08:28:05 [2025-04-08 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860977', 'tblTempUsageDetail_20' ) start [2025-04-08 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860977', 'tblTempUsageDetail_20' ) end [2025-04-08 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860977', 'tblTempVendorCDR_20' ) start [2025-04-08 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860977', 'tblTempVendorCDR_20' ) end [2025-04-08 08:28:18] Production.INFO: ProcessCDR(1,14860977,1,1,2) [2025-04-08 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860977', 'tblTempUsageDetail_20' ) start [2025-04-08 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860977', 'tblTempUsageDetail_20' ) end [2025-04-08 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:28:23] Production.INFO: ==24283== Releasing lock... [2025-04-08 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:28:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 08:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:29:06 [end_date_ymd] => 2025-04-08 08:29:06 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:29:06' and `end` < '2025-04-08 08: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-04-08 08:29:19] Production.INFO: count ==554 [2025-04-08 08:29:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:29:06 - End Time 2025-04-08 08:29:06 [2025-04-08 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860982', 'tblTempUsageDetail_20' ) start [2025-04-08 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860982', 'tblTempUsageDetail_20' ) end [2025-04-08 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860982', 'tblTempVendorCDR_20' ) start [2025-04-08 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860982', 'tblTempVendorCDR_20' ) end [2025-04-08 08:29:19] Production.INFO: ProcessCDR(1,14860982,1,1,2) [2025-04-08 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860982', 'tblTempUsageDetail_20' ) start [2025-04-08 08:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860982', 'tblTempUsageDetail_20' ) end [2025-04-08 08:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:29:23] Production.INFO: ==24378== Releasing lock... [2025-04-08 08:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:29:23] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:30:05 [end_date_ymd] => 2025-04-08 08:30:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:30:05' and `end` < '2025-04-08 08: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-04-08 08:30:18] Production.INFO: count ==579 [2025-04-08 08:30:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:30:05 - End Time 2025-04-08 08:30:05 [2025-04-08 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860987', 'tblTempUsageDetail_20' ) start [2025-04-08 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860987', 'tblTempUsageDetail_20' ) end [2025-04-08 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860987', 'tblTempVendorCDR_20' ) start [2025-04-08 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860987', 'tblTempVendorCDR_20' ) end [2025-04-08 08:30:18] Production.INFO: ProcessCDR(1,14860987,1,1,2) [2025-04-08 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860987', 'tblTempUsageDetail_20' ) start [2025-04-08 08:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860987', 'tblTempUsageDetail_20' ) end [2025-04-08 08:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:30:22] Production.INFO: ==24476== Releasing lock... [2025-04-08 08:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:30:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:31:05 [end_date_ymd] => 2025-04-08 08:31:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:31:05' and `end` < '2025-04-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-04-08 08:31:18] Production.INFO: count ==630 [2025-04-08 08:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:31:05 - End Time 2025-04-08 08:31:05 [2025-04-08 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860993', 'tblTempUsageDetail_20' ) start [2025-04-08 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860993', 'tblTempUsageDetail_20' ) end [2025-04-08 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860993', 'tblTempVendorCDR_20' ) start [2025-04-08 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860993', 'tblTempVendorCDR_20' ) end [2025-04-08 08:31:18] Production.INFO: ProcessCDR(1,14860993,1,1,2) [2025-04-08 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860993', 'tblTempUsageDetail_20' ) start [2025-04-08 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860993', 'tblTempUsageDetail_20' ) end [2025-04-08 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:31:23] Production.INFO: ==24569== Releasing lock... [2025-04-08 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:31:23] Production.INFO: 33 MB #Memory Used# [2025-04-08 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:32:05 [end_date_ymd] => 2025-04-08 08:32:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:32:05' and `end` < '2025-04-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-04-08 08:32:18] Production.INFO: count ==635 [2025-04-08 08:32:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:32:05 - End Time 2025-04-08 08:32:05 [2025-04-08 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860998', 'tblTempUsageDetail_20' ) start [2025-04-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14860998', 'tblTempUsageDetail_20' ) end [2025-04-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860998', 'tblTempVendorCDR_20' ) start [2025-04-08 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14860998', 'tblTempVendorCDR_20' ) end [2025-04-08 08:32:18] Production.INFO: ProcessCDR(1,14860998,1,1,2) [2025-04-08 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14860998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14860998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14860998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14860998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860998', 'tblTempUsageDetail_20' ) start [2025-04-08 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14860998', 'tblTempUsageDetail_20' ) end [2025-04-08 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:32:22] Production.INFO: ==24659== Releasing lock... [2025-04-08 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:32:22] Production.INFO: 33.25 MB #Memory Used# [2025-04-08 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:33:05 [end_date_ymd] => 2025-04-08 08:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:33:05' and `end` < '2025-04-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-04-08 08:33:18] Production.INFO: count ==656 [2025-04-08 08:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:33:05 - End Time 2025-04-08 08:33:05 [2025-04-08 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861003', 'tblTempUsageDetail_20' ) start [2025-04-08 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861003', 'tblTempUsageDetail_20' ) end [2025-04-08 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861003', 'tblTempVendorCDR_20' ) start [2025-04-08 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861003', 'tblTempVendorCDR_20' ) end [2025-04-08 08:33:18] Production.INFO: ProcessCDR(1,14861003,1,1,2) [2025-04-08 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861003', 'tblTempUsageDetail_20' ) start [2025-04-08 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861003', 'tblTempUsageDetail_20' ) end [2025-04-08 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:33:22] Production.INFO: ==24742== Releasing lock... [2025-04-08 08:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:33:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:34:05 [end_date_ymd] => 2025-04-08 08:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:34:05' and `end` < '2025-04-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-04-08 08:34:18] Production.INFO: count ==670 [2025-04-08 08:34:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:34:05 - End Time 2025-04-08 08:34:05 [2025-04-08 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861008', 'tblTempUsageDetail_20' ) start [2025-04-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861008', 'tblTempUsageDetail_20' ) end [2025-04-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861008', 'tblTempVendorCDR_20' ) start [2025-04-08 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861008', 'tblTempVendorCDR_20' ) end [2025-04-08 08:34:18] Production.INFO: ProcessCDR(1,14861008,1,1,2) [2025-04-08 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861008', 'tblTempUsageDetail_20' ) start [2025-04-08 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861008', 'tblTempUsageDetail_20' ) end [2025-04-08 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:34:23] Production.INFO: ==24821== Releasing lock... [2025-04-08 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:34:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:35:05 [end_date_ymd] => 2025-04-08 08:35:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:35:05' and `end` < '2025-04-08 08: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-04-08 08:35:18] Production.INFO: count ==670 [2025-04-08 08:35:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:35:05 - End Time 2025-04-08 08:35:05 [2025-04-08 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861013', 'tblTempUsageDetail_20' ) start [2025-04-08 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861013', 'tblTempUsageDetail_20' ) end [2025-04-08 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861013', 'tblTempVendorCDR_20' ) start [2025-04-08 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861013', 'tblTempVendorCDR_20' ) end [2025-04-08 08:35:18] Production.INFO: ProcessCDR(1,14861013,1,1,2) [2025-04-08 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861013', 'tblTempUsageDetail_20' ) start [2025-04-08 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861013', 'tblTempUsageDetail_20' ) end [2025-04-08 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:35:22] Production.INFO: ==24903== Releasing lock... [2025-04-08 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:35:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:36:05 [end_date_ymd] => 2025-04-08 08:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:36:05' and `end` < '2025-04-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-04-08 08:36:19] Production.INFO: count ==677 [2025-04-08 08:36:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:36:05 - End Time 2025-04-08 08:36:05 [2025-04-08 08:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861018', 'tblTempUsageDetail_20' ) start [2025-04-08 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861018', 'tblTempUsageDetail_20' ) end [2025-04-08 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861018', 'tblTempVendorCDR_20' ) start [2025-04-08 08:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861018', 'tblTempVendorCDR_20' ) end [2025-04-08 08:36:19] Production.INFO: ProcessCDR(1,14861018,1,1,2) [2025-04-08 08:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861018', 'tblTempUsageDetail_20' ) start [2025-04-08 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861018', 'tblTempUsageDetail_20' ) end [2025-04-08 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:36:22] Production.INFO: ==24975== Releasing lock... [2025-04-08 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:36:22] Production.INFO: 34 MB #Memory Used# [2025-04-08 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:37:05 [end_date_ymd] => 2025-04-08 08:37:05 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:37:05' and `end` < '2025-04-08 08: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-04-08 08:37:18] Production.INFO: count ==692 [2025-04-08 08:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:37:05 - End Time 2025-04-08 08:37:05 [2025-04-08 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861023', 'tblTempUsageDetail_20' ) start [2025-04-08 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861023', 'tblTempUsageDetail_20' ) end [2025-04-08 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861023', 'tblTempVendorCDR_20' ) start [2025-04-08 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861023', 'tblTempVendorCDR_20' ) end [2025-04-08 08:37:18] Production.INFO: ProcessCDR(1,14861023,1,1,2) [2025-04-08 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861023', 'tblTempUsageDetail_20' ) start [2025-04-08 08:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861023', 'tblTempUsageDetail_20' ) end [2025-04-08 08:37:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:37:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:37:23] Production.INFO: ==25056== Releasing lock... [2025-04-08 08:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:37:23] Production.INFO: 33.25 MB #Memory Used# [2025-04-08 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:38:05 [end_date_ymd] => 2025-04-08 08:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:38:05' and `end` < '2025-04-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-04-08 08:38:17] Production.INFO: count ==700 [2025-04-08 08:38:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:38:05 - End Time 2025-04-08 08:38:05 [2025-04-08 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861028', 'tblTempUsageDetail_20' ) start [2025-04-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861028', 'tblTempUsageDetail_20' ) end [2025-04-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861028', 'tblTempVendorCDR_20' ) start [2025-04-08 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861028', 'tblTempVendorCDR_20' ) end [2025-04-08 08:38:18] Production.INFO: ProcessCDR(1,14861028,1,1,2) [2025-04-08 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861028', 'tblTempUsageDetail_20' ) start [2025-04-08 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861028', 'tblTempUsageDetail_20' ) end [2025-04-08 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:38:23] Production.INFO: ==25177== Releasing lock... [2025-04-08 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:38:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:39:05 [end_date_ymd] => 2025-04-08 08:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:39:05' and `end` < '2025-04-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-04-08 08:39:18] Production.INFO: count ==700 [2025-04-08 08:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:39:05 - End Time 2025-04-08 08:39:05 [2025-04-08 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861033', 'tblTempUsageDetail_20' ) start [2025-04-08 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861033', 'tblTempUsageDetail_20' ) end [2025-04-08 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861033', 'tblTempVendorCDR_20' ) start [2025-04-08 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861033', 'tblTempVendorCDR_20' ) end [2025-04-08 08:39:18] Production.INFO: ProcessCDR(1,14861033,1,1,2) [2025-04-08 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861033', 'tblTempUsageDetail_20' ) start [2025-04-08 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861033', 'tblTempUsageDetail_20' ) end [2025-04-08 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:39:22] Production.INFO: ==25252== Releasing lock... [2025-04-08 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:39:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 08:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:40:07 [end_date_ymd] => 2025-04-08 08:40:07 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:40:07' and `end` < '2025-04-08 08: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-04-08 08:40:20] Production.INFO: count ==718 [2025-04-08 08:40:20] Production.ERROR: pbx CDR StartTime 2025-04-08 05:40:07 - End Time 2025-04-08 08:40:07 [2025-04-08 08:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861039', 'tblTempUsageDetail_20' ) start [2025-04-08 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861039', 'tblTempUsageDetail_20' ) end [2025-04-08 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861039', 'tblTempVendorCDR_20' ) start [2025-04-08 08:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861039', 'tblTempVendorCDR_20' ) end [2025-04-08 08:40:20] Production.INFO: ProcessCDR(1,14861039,1,1,2) [2025-04-08 08:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861039', 'tblTempUsageDetail_20' ) start [2025-04-08 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861039', 'tblTempUsageDetail_20' ) end [2025-04-08 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:40:23] Production.INFO: ==25333== Releasing lock... [2025-04-08 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:40:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-08 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:41:05 [end_date_ymd] => 2025-04-08 08:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:41:05' and `end` < '2025-04-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-04-08 08:41:18] Production.INFO: count ==753 [2025-04-08 08:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:41:05 - End Time 2025-04-08 08:41:05 [2025-04-08 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861044', 'tblTempUsageDetail_20' ) start [2025-04-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861044', 'tblTempUsageDetail_20' ) end [2025-04-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861044', 'tblTempVendorCDR_20' ) start [2025-04-08 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861044', 'tblTempVendorCDR_20' ) end [2025-04-08 08:41:18] Production.INFO: ProcessCDR(1,14861044,1,1,2) [2025-04-08 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861044', 'tblTempUsageDetail_20' ) start [2025-04-08 08:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861044', 'tblTempUsageDetail_20' ) end [2025-04-08 08:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:41:23] Production.INFO: ==25415== Releasing lock... [2025-04-08 08:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:41:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-08 08:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:42:06 [end_date_ymd] => 2025-04-08 08:42:06 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:42:06' and `end` < '2025-04-08 08: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-04-08 08:42:19] Production.INFO: count ==758 [2025-04-08 08:42:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:42:06 - End Time 2025-04-08 08:42:06 [2025-04-08 08:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861049', 'tblTempUsageDetail_20' ) start [2025-04-08 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861049', 'tblTempUsageDetail_20' ) end [2025-04-08 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861049', 'tblTempVendorCDR_20' ) start [2025-04-08 08:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861049', 'tblTempVendorCDR_20' ) end [2025-04-08 08:42:19] Production.INFO: ProcessCDR(1,14861049,1,1,2) [2025-04-08 08:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861049', 'tblTempUsageDetail_20' ) start [2025-04-08 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861049', 'tblTempUsageDetail_20' ) end [2025-04-08 08:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:42:23] Production.INFO: ==25489== Releasing lock... [2025-04-08 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:42:23] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:43:05 [end_date_ymd] => 2025-04-08 08:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:43:05' and `end` < '2025-04-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-04-08 08:43:18] Production.INFO: count ==759 [2025-04-08 08:43:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:43:05 - End Time 2025-04-08 08:43:05 [2025-04-08 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861054', 'tblTempUsageDetail_20' ) start [2025-04-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861054', 'tblTempUsageDetail_20' ) end [2025-04-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861054', 'tblTempVendorCDR_20' ) start [2025-04-08 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861054', 'tblTempVendorCDR_20' ) end [2025-04-08 08:43:18] Production.INFO: ProcessCDR(1,14861054,1,1,2) [2025-04-08 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861054', 'tblTempUsageDetail_20' ) start [2025-04-08 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861054', 'tblTempUsageDetail_20' ) end [2025-04-08 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:43:22] Production.INFO: ==25568== Releasing lock... [2025-04-08 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:43:22] Production.INFO: 34 MB #Memory Used# [2025-04-08 08:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:44:06 [end_date_ymd] => 2025-04-08 08:44:06 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:44:06' and `end` < '2025-04-08 08: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-04-08 08:44:19] Production.INFO: count ==766 [2025-04-08 08:44:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:44:06 - End Time 2025-04-08 08:44:06 [2025-04-08 08:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861059', 'tblTempUsageDetail_20' ) start [2025-04-08 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861059', 'tblTempUsageDetail_20' ) end [2025-04-08 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861059', 'tblTempVendorCDR_20' ) start [2025-04-08 08:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861059', 'tblTempVendorCDR_20' ) end [2025-04-08 08:44:19] Production.INFO: ProcessCDR(1,14861059,1,1,2) [2025-04-08 08:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861059', 'tblTempUsageDetail_20' ) start [2025-04-08 08:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861059', 'tblTempUsageDetail_20' ) end [2025-04-08 08:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:44:24] Production.INFO: ==25646== Releasing lock... [2025-04-08 08:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:44:24] Production.INFO: 34 MB #Memory Used# [2025-04-08 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:45:05 [end_date_ymd] => 2025-04-08 08:45:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:45:05' and `end` < '2025-04-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-04-08 08:45:18] Production.INFO: count ==786 [2025-04-08 08:45:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:45:05 - End Time 2025-04-08 08:45:05 [2025-04-08 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861064', 'tblTempUsageDetail_20' ) start [2025-04-08 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861064', 'tblTempUsageDetail_20' ) end [2025-04-08 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861064', 'tblTempVendorCDR_20' ) start [2025-04-08 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861064', 'tblTempVendorCDR_20' ) end [2025-04-08 08:45:18] Production.INFO: ProcessCDR(1,14861064,1,1,2) [2025-04-08 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861064', 'tblTempUsageDetail_20' ) start [2025-04-08 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861064', 'tblTempUsageDetail_20' ) end [2025-04-08 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:45:23] Production.INFO: ==25725== Releasing lock... [2025-04-08 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:45:23] Production.INFO: 34 MB #Memory Used# [2025-04-08 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:46:05 [end_date_ymd] => 2025-04-08 08:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:46:05' and `end` < '2025-04-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-04-08 08:46:18] Production.INFO: count ==787 [2025-04-08 08:46:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:46:05 - End Time 2025-04-08 08:46:05 [2025-04-08 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861069', 'tblTempUsageDetail_20' ) start [2025-04-08 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861069', 'tblTempUsageDetail_20' ) end [2025-04-08 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861069', 'tblTempVendorCDR_20' ) start [2025-04-08 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861069', 'tblTempVendorCDR_20' ) end [2025-04-08 08:46:19] Production.INFO: ProcessCDR(1,14861069,1,1,2) [2025-04-08 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861069', 'tblTempUsageDetail_20' ) start [2025-04-08 08:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861069', 'tblTempUsageDetail_20' ) end [2025-04-08 08:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:46:24] Production.INFO: ==25802== Releasing lock... [2025-04-08 08:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:46:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-08 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:47:05 [end_date_ymd] => 2025-04-08 08:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:47:05' and `end` < '2025-04-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-04-08 08:47:18] Production.INFO: count ==794 [2025-04-08 08:47:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:47:05 - End Time 2025-04-08 08:47:05 [2025-04-08 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861074', 'tblTempUsageDetail_20' ) start [2025-04-08 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861074', 'tblTempUsageDetail_20' ) end [2025-04-08 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861074', 'tblTempVendorCDR_20' ) start [2025-04-08 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861074', 'tblTempVendorCDR_20' ) end [2025-04-08 08:47:18] Production.INFO: ProcessCDR(1,14861074,1,1,2) [2025-04-08 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861074', 'tblTempUsageDetail_20' ) start [2025-04-08 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861074', 'tblTempUsageDetail_20' ) end [2025-04-08 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:47:22] Production.INFO: ==25883== Releasing lock... [2025-04-08 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:47:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-08 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:48:06 [end_date_ymd] => 2025-04-08 08:48:06 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:48:06' and `end` < '2025-04-08 08: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-04-08 08:48:19] Production.INFO: count ==807 [2025-04-08 08:48:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:48:06 - End Time 2025-04-08 08:48:06 [2025-04-08 08:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861079', 'tblTempUsageDetail_20' ) start [2025-04-08 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861079', 'tblTempUsageDetail_20' ) end [2025-04-08 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861079', 'tblTempVendorCDR_20' ) start [2025-04-08 08:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861079', 'tblTempVendorCDR_20' ) end [2025-04-08 08:48:19] Production.INFO: ProcessCDR(1,14861079,1,1,2) [2025-04-08 08:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861079', 'tblTempUsageDetail_20' ) start [2025-04-08 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861079', 'tblTempUsageDetail_20' ) end [2025-04-08 08:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:48:24] Production.INFO: ==25960== Releasing lock... [2025-04-08 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:48:24] Production.INFO: 34.5 MB #Memory Used# [2025-04-08 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:49:05 [end_date_ymd] => 2025-04-08 08:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:49:05' and `end` < '2025-04-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-04-08 08:49:18] Production.INFO: count ==811 [2025-04-08 08:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:49:05 - End Time 2025-04-08 08:49:05 [2025-04-08 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861084', 'tblTempUsageDetail_20' ) start [2025-04-08 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861084', 'tblTempUsageDetail_20' ) end [2025-04-08 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861084', 'tblTempVendorCDR_20' ) start [2025-04-08 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861084', 'tblTempVendorCDR_20' ) end [2025-04-08 08:49:18] Production.INFO: ProcessCDR(1,14861084,1,1,2) [2025-04-08 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861084', 'tblTempUsageDetail_20' ) start [2025-04-08 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861084', 'tblTempUsageDetail_20' ) end [2025-04-08 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:49:22] Production.INFO: ==26040== Releasing lock... [2025-04-08 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:49:22] Production.INFO: 34.5 MB #Memory Used# [2025-04-08 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:50:06 [end_date_ymd] => 2025-04-08 08:50:06 [RateCDR] => 1 ) [2025-04-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-04-08 05:50:06' and `end` < '2025-04-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-04-08 08:50:19] Production.INFO: count ==817 [2025-04-08 08:50:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:50:06 - End Time 2025-04-08 08:50:06 [2025-04-08 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861090', 'tblTempUsageDetail_20' ) start [2025-04-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861090', 'tblTempUsageDetail_20' ) end [2025-04-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861090', 'tblTempVendorCDR_20' ) start [2025-04-08 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861090', 'tblTempVendorCDR_20' ) end [2025-04-08 08:50:19] Production.INFO: ProcessCDR(1,14861090,1,1,2) [2025-04-08 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861090', 'tblTempUsageDetail_20' ) start [2025-04-08 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861090', 'tblTempUsageDetail_20' ) end [2025-04-08 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:50:24] Production.INFO: ==26116== Releasing lock... [2025-04-08 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:50:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-08 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:51:05 [end_date_ymd] => 2025-04-08 08:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:51:05' and `end` < '2025-04-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-04-08 08:51:17] Production.INFO: count ==865 [2025-04-08 08:51:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:51:05 - End Time 2025-04-08 08:51:05 [2025-04-08 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861095', 'tblTempUsageDetail_20' ) start [2025-04-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861095', 'tblTempUsageDetail_20' ) end [2025-04-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861095', 'tblTempVendorCDR_20' ) start [2025-04-08 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861095', 'tblTempVendorCDR_20' ) end [2025-04-08 08:51:18] Production.INFO: ProcessCDR(1,14861095,1,1,2) [2025-04-08 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861095', 'tblTempUsageDetail_20' ) start [2025-04-08 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861095', 'tblTempUsageDetail_20' ) end [2025-04-08 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:51:21] Production.INFO: ==26196== Releasing lock... [2025-04-08 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-08 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:52:06 [end_date_ymd] => 2025-04-08 08:52:06 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:52:06' and `end` < '2025-04-08 08: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-04-08 08:52:19] Production.INFO: count ==873 [2025-04-08 08:52:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:52:06 - End Time 2025-04-08 08:52:06 [2025-04-08 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861100', 'tblTempUsageDetail_20' ) start [2025-04-08 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861100', 'tblTempUsageDetail_20' ) end [2025-04-08 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861100', 'tblTempVendorCDR_20' ) start [2025-04-08 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861100', 'tblTempVendorCDR_20' ) end [2025-04-08 08:52:19] Production.INFO: ProcessCDR(1,14861100,1,1,2) [2025-04-08 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861100', 'tblTempUsageDetail_20' ) start [2025-04-08 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861100', 'tblTempUsageDetail_20' ) end [2025-04-08 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:52:24] Production.INFO: ==26270== Releasing lock... [2025-04-08 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:52:24] Production.INFO: 35 MB #Memory Used# [2025-04-08 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:53:04 [end_date_ymd] => 2025-04-08 08:53:04 [RateCDR] => 1 ) [2025-04-08 08: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-04-08 05:53:04' and `end` < '2025-04-08 08: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-04-08 08:53:17] Production.INFO: count ==892 [2025-04-08 08:53:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:53:04 - End Time 2025-04-08 08:53:04 [2025-04-08 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861105', 'tblTempUsageDetail_20' ) start [2025-04-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861105', 'tblTempUsageDetail_20' ) end [2025-04-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861105', 'tblTempVendorCDR_20' ) start [2025-04-08 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861105', 'tblTempVendorCDR_20' ) end [2025-04-08 08:53:18] Production.INFO: ProcessCDR(1,14861105,1,1,2) [2025-04-08 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861105', 'tblTempUsageDetail_20' ) start [2025-04-08 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861105', 'tblTempUsageDetail_20' ) end [2025-04-08 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:53:21] Production.INFO: ==26393== Releasing lock... [2025-04-08 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:53:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-08 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:54:05 [end_date_ymd] => 2025-04-08 08:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:54:05' and `end` < '2025-04-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-04-08 08:54:18] Production.INFO: count ==897 [2025-04-08 08:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:54:05 - End Time 2025-04-08 08:54:05 [2025-04-08 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861110', 'tblTempUsageDetail_20' ) start [2025-04-08 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861110', 'tblTempUsageDetail_20' ) end [2025-04-08 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861110', 'tblTempVendorCDR_20' ) start [2025-04-08 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861110', 'tblTempVendorCDR_20' ) end [2025-04-08 08:54:18] Production.INFO: ProcessCDR(1,14861110,1,1,2) [2025-04-08 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861110', 'tblTempUsageDetail_20' ) start [2025-04-08 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861110', 'tblTempUsageDetail_20' ) end [2025-04-08 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:54:22] Production.INFO: ==26475== Releasing lock... [2025-04-08 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:54:22] Production.INFO: 35 MB #Memory Used# [2025-04-08 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:55:05 [end_date_ymd] => 2025-04-08 08:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:55:05' and `end` < '2025-04-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-04-08 08:55:18] Production.INFO: count ==905 [2025-04-08 08:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:55:05 - End Time 2025-04-08 08:55:05 [2025-04-08 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861115', 'tblTempUsageDetail_20' ) start [2025-04-08 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861115', 'tblTempUsageDetail_20' ) end [2025-04-08 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861115', 'tblTempVendorCDR_20' ) start [2025-04-08 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861115', 'tblTempVendorCDR_20' ) end [2025-04-08 08:55:18] Production.INFO: ProcessCDR(1,14861115,1,1,2) [2025-04-08 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861115', 'tblTempUsageDetail_20' ) start [2025-04-08 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861115', 'tblTempUsageDetail_20' ) end [2025-04-08 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:55:23] Production.INFO: ==26550== Releasing lock... [2025-04-08 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:55:23] Production.INFO: 34.75 MB #Memory Used# [2025-04-08 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:56:05 [end_date_ymd] => 2025-04-08 08:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:56:05' and `end` < '2025-04-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-04-08 08:56:18] Production.INFO: count ==923 [2025-04-08 08:56:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:56:05 - End Time 2025-04-08 08:56:05 [2025-04-08 08:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861120', 'tblTempUsageDetail_20' ) start [2025-04-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861120', 'tblTempUsageDetail_20' ) end [2025-04-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861120', 'tblTempVendorCDR_20' ) start [2025-04-08 08:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861120', 'tblTempVendorCDR_20' ) end [2025-04-08 08:56:19] Production.INFO: ProcessCDR(1,14861120,1,1,2) [2025-04-08 08:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861120', 'tblTempUsageDetail_20' ) start [2025-04-08 08:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861120', 'tblTempUsageDetail_20' ) end [2025-04-08 08:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:56:24] Production.INFO: ==26624== Releasing lock... [2025-04-08 08:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:56:24] Production.INFO: 35 MB #Memory Used# [2025-04-08 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:57:05 [end_date_ymd] => 2025-04-08 08:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:57:05' and `end` < '2025-04-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-04-08 08:57:18] Production.INFO: count ==951 [2025-04-08 08:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:57:05 - End Time 2025-04-08 08:57:05 [2025-04-08 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861125', 'tblTempUsageDetail_20' ) start [2025-04-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861125', 'tblTempUsageDetail_20' ) end [2025-04-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861125', 'tblTempVendorCDR_20' ) start [2025-04-08 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861125', 'tblTempVendorCDR_20' ) end [2025-04-08 08:57:18] Production.INFO: ProcessCDR(1,14861125,1,1,2) [2025-04-08 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861125', 'tblTempUsageDetail_20' ) start [2025-04-08 08:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861125', 'tblTempUsageDetail_20' ) end [2025-04-08 08:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:57:24] Production.INFO: ==26700== Releasing lock... [2025-04-08 08:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:57:24] Production.INFO: 35.5 MB #Memory Used# [2025-04-08 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:58:05 [end_date_ymd] => 2025-04-08 08:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:58:05' and `end` < '2025-04-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-04-08 08:58:18] Production.INFO: count ==953 [2025-04-08 08:58:19] Production.ERROR: pbx CDR StartTime 2025-04-08 05:58:05 - End Time 2025-04-08 08:58:05 [2025-04-08 08:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861130', 'tblTempUsageDetail_20' ) start [2025-04-08 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861130', 'tblTempUsageDetail_20' ) end [2025-04-08 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861130', 'tblTempVendorCDR_20' ) start [2025-04-08 08:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861130', 'tblTempVendorCDR_20' ) end [2025-04-08 08:58:19] Production.INFO: ProcessCDR(1,14861130,1,1,2) [2025-04-08 08:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861130', 'tblTempUsageDetail_20' ) start [2025-04-08 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861130', 'tblTempUsageDetail_20' ) end [2025-04-08 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:58:22] Production.INFO: ==26773== Releasing lock... [2025-04-08 08:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:58:22] Production.INFO: 35.75 MB #Memory Used# [2025-04-08 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 05:59:05 [end_date_ymd] => 2025-04-08 08:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 05:59:05' and `end` < '2025-04-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-04-08 08:59:17] Production.INFO: count ==955 [2025-04-08 08:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 05:59:05 - End Time 2025-04-08 08:59:05 [2025-04-08 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861135', 'tblTempUsageDetail_20' ) start [2025-04-08 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861135', 'tblTempUsageDetail_20' ) end [2025-04-08 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861135', 'tblTempVendorCDR_20' ) start [2025-04-08 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861135', 'tblTempVendorCDR_20' ) end [2025-04-08 08:59:18] Production.INFO: ProcessCDR(1,14861135,1,1,2) [2025-04-08 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861135', 'tblTempUsageDetail_20' ) start [2025-04-08 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861135', 'tblTempUsageDetail_20' ) end [2025-04-08 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 08:59:23] Production.INFO: ==26851== Releasing lock... [2025-04-08 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 08:59:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-08 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:00:06 [end_date_ymd] => 2025-04-08 09:00:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:00:06' and `end` < '2025-04-08 09: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-04-08 09:00:19] Production.INFO: count ==965 [2025-04-08 09:00:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:00:06 - End Time 2025-04-08 09:00:06 [2025-04-08 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861141', 'tblTempUsageDetail_20' ) start [2025-04-08 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861141', 'tblTempUsageDetail_20' ) end [2025-04-08 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861141', 'tblTempVendorCDR_20' ) start [2025-04-08 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861141', 'tblTempVendorCDR_20' ) end [2025-04-08 09:00:19] Production.INFO: ProcessCDR(1,14861141,1,1,2) [2025-04-08 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861141', 'tblTempUsageDetail_20' ) start [2025-04-08 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861141', 'tblTempUsageDetail_20' ) end [2025-04-08 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:00:22] Production.INFO: ==26924== Releasing lock... [2025-04-08 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:00:22] Production.INFO: 36 MB #Memory Used# [2025-04-08 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:01:04 [end_date_ymd] => 2025-04-08 09:01:04 [RateCDR] => 1 ) [2025-04-08 09:01: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-04-08 06:01:04' and `end` < '2025-04-08 09:01: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-04-08 09:01:17] Production.INFO: count ==1001 [2025-04-08 09:01:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:01:04 - End Time 2025-04-08 09:01:04 [2025-04-08 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861146', 'tblTempUsageDetail_20' ) start [2025-04-08 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861146', 'tblTempUsageDetail_20' ) end [2025-04-08 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861146', 'tblTempVendorCDR_20' ) start [2025-04-08 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861146', 'tblTempVendorCDR_20' ) end [2025-04-08 09:01:18] Production.INFO: ProcessCDR(1,14861146,1,1,2) [2025-04-08 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861146', 'tblTempUsageDetail_20' ) start [2025-04-08 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861146', 'tblTempUsageDetail_20' ) end [2025-04-08 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:01:23] Production.INFO: ==27013== Releasing lock... [2025-04-08 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:01:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-08 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:02:05 [end_date_ymd] => 2025-04-08 09:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:02:05' and `end` < '2025-04-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-04-08 09:02:18] Production.INFO: count ==1007 [2025-04-08 09:02:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:02:05 - End Time 2025-04-08 09:02:05 [2025-04-08 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861151', 'tblTempUsageDetail_20' ) start [2025-04-08 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861151', 'tblTempUsageDetail_20' ) end [2025-04-08 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861151', 'tblTempVendorCDR_20' ) start [2025-04-08 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861151', 'tblTempVendorCDR_20' ) end [2025-04-08 09:02:19] Production.INFO: ProcessCDR(1,14861151,1,1,2) [2025-04-08 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861151', 'tblTempUsageDetail_20' ) start [2025-04-08 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861151', 'tblTempUsageDetail_20' ) end [2025-04-08 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:02:24] Production.INFO: ==27092== Releasing lock... [2025-04-08 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:02:24] Production.INFO: 36 MB #Memory Used# [2025-04-08 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:03:05 [end_date_ymd] => 2025-04-08 09:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:03:05' and `end` < '2025-04-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-04-08 09:03:18] Production.INFO: count ==1023 [2025-04-08 09:03:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:03:05 - End Time 2025-04-08 09:03:05 [2025-04-08 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861156', 'tblTempUsageDetail_20' ) start [2025-04-08 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861156', 'tblTempUsageDetail_20' ) end [2025-04-08 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861156', 'tblTempVendorCDR_20' ) start [2025-04-08 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861156', 'tblTempVendorCDR_20' ) end [2025-04-08 09:03:19] Production.INFO: ProcessCDR(1,14861156,1,1,2) [2025-04-08 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861156', 'tblTempUsageDetail_20' ) start [2025-04-08 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861156', 'tblTempUsageDetail_20' ) end [2025-04-08 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:03:22] Production.INFO: ==27168== Releasing lock... [2025-04-08 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:03:22] Production.INFO: 36 MB #Memory Used# [2025-04-08 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:04:05 [end_date_ymd] => 2025-04-08 09:04:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:04:05' and `end` < '2025-04-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-04-08 09:04:18] Production.INFO: count ==1027 [2025-04-08 09:04:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:04:05 - End Time 2025-04-08 09:04:05 [2025-04-08 09:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861161', 'tblTempUsageDetail_20' ) start [2025-04-08 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861161', 'tblTempUsageDetail_20' ) end [2025-04-08 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861161', 'tblTempVendorCDR_20' ) start [2025-04-08 09:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861161', 'tblTempVendorCDR_20' ) end [2025-04-08 09:04:19] Production.INFO: ProcessCDR(1,14861161,1,1,2) [2025-04-08 09:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861161', 'tblTempUsageDetail_20' ) start [2025-04-08 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861161', 'tblTempUsageDetail_20' ) end [2025-04-08 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:04:24] Production.INFO: ==27243== Releasing lock... [2025-04-08 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:04:24] Production.INFO: 36.25 MB #Memory Used# [2025-04-08 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:05:05 [end_date_ymd] => 2025-04-08 09:05:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:05:05' and `end` < '2025-04-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-04-08 09:05:18] Production.INFO: count ==1042 [2025-04-08 09:05:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:05:05 - End Time 2025-04-08 09:05:05 [2025-04-08 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861166', 'tblTempUsageDetail_20' ) start [2025-04-08 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861166', 'tblTempUsageDetail_20' ) end [2025-04-08 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861166', 'tblTempVendorCDR_20' ) start [2025-04-08 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861166', 'tblTempVendorCDR_20' ) end [2025-04-08 09:05:19] Production.INFO: ProcessCDR(1,14861166,1,1,2) [2025-04-08 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861166', 'tblTempUsageDetail_20' ) start [2025-04-08 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861166', 'tblTempUsageDetail_20' ) end [2025-04-08 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:05:24] Production.INFO: ==27319== Releasing lock... [2025-04-08 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:05:24] Production.INFO: 36 MB #Memory Used# [2025-04-08 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:06:05 [end_date_ymd] => 2025-04-08 09:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:06:05' and `end` < '2025-04-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-04-08 09:06:18] Production.INFO: count ==1051 [2025-04-08 09:06:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:06:05 - End Time 2025-04-08 09:06:05 [2025-04-08 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861171', 'tblTempUsageDetail_20' ) start [2025-04-08 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861171', 'tblTempUsageDetail_20' ) end [2025-04-08 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861171', 'tblTempVendorCDR_20' ) start [2025-04-08 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861171', 'tblTempVendorCDR_20' ) end [2025-04-08 09:06:18] Production.INFO: ProcessCDR(1,14861171,1,1,2) [2025-04-08 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861171', 'tblTempUsageDetail_20' ) start [2025-04-08 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861171', 'tblTempUsageDetail_20' ) end [2025-04-08 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:06:23] Production.INFO: ==27392== Releasing lock... [2025-04-08 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:06:23] Production.INFO: 37 MB #Memory Used# [2025-04-08 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:07:05 [end_date_ymd] => 2025-04-08 09:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:07:05' and `end` < '2025-04-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-04-08 09:07:18] Production.INFO: count ==1055 [2025-04-08 09:07:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:07:05 - End Time 2025-04-08 09:07:05 [2025-04-08 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861176', 'tblTempUsageDetail_20' ) start [2025-04-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861176', 'tblTempUsageDetail_20' ) end [2025-04-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861176', 'tblTempVendorCDR_20' ) start [2025-04-08 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861176', 'tblTempVendorCDR_20' ) end [2025-04-08 09:07:18] Production.INFO: ProcessCDR(1,14861176,1,1,2) [2025-04-08 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861176', 'tblTempUsageDetail_20' ) start [2025-04-08 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861176', 'tblTempUsageDetail_20' ) end [2025-04-08 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:07:23] Production.INFO: ==27468== Releasing lock... [2025-04-08 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:07:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-08 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:08:05 [end_date_ymd] => 2025-04-08 09:08:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:08:05' and `end` < '2025-04-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-04-08 09:08:18] Production.INFO: count ==1065 [2025-04-08 09:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:08:05 - End Time 2025-04-08 09:08:05 [2025-04-08 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861181', 'tblTempUsageDetail_20' ) start [2025-04-08 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861181', 'tblTempUsageDetail_20' ) end [2025-04-08 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861181', 'tblTempVendorCDR_20' ) start [2025-04-08 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861181', 'tblTempVendorCDR_20' ) end [2025-04-08 09:08:18] Production.INFO: ProcessCDR(1,14861181,1,1,2) [2025-04-08 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861181', 'tblTempUsageDetail_20' ) start [2025-04-08 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861181', 'tblTempUsageDetail_20' ) end [2025-04-08 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:08:23] Production.INFO: ==27543== Releasing lock... [2025-04-08 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:08:23] Production.INFO: 36.25 MB #Memory Used# [2025-04-08 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:09:05 [end_date_ymd] => 2025-04-08 09:09:05 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:09:05' and `end` < '2025-04-08 09: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-04-08 09:09:18] Production.INFO: count ==1071 [2025-04-08 09:09:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:09:05 - End Time 2025-04-08 09:09:05 [2025-04-08 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861186', 'tblTempUsageDetail_20' ) start [2025-04-08 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861186', 'tblTempUsageDetail_20' ) end [2025-04-08 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861186', 'tblTempVendorCDR_20' ) start [2025-04-08 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861186', 'tblTempVendorCDR_20' ) end [2025-04-08 09:09:18] Production.INFO: ProcessCDR(1,14861186,1,1,2) [2025-04-08 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861186', 'tblTempUsageDetail_20' ) start [2025-04-08 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861186', 'tblTempUsageDetail_20' ) end [2025-04-08 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:09:24] Production.INFO: ==27661== Releasing lock... [2025-04-08 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:09:24] Production.INFO: 36.5 MB #Memory Used# [2025-04-08 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:10:07 [end_date_ymd] => 2025-04-08 09:10:07 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:10:07' and `end` < '2025-04-08 09: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-04-08 09:10:20] Production.INFO: count ==1079 [2025-04-08 09:10:20] Production.ERROR: pbx CDR StartTime 2025-04-08 06:10:07 - End Time 2025-04-08 09:10:07 [2025-04-08 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861192', 'tblTempUsageDetail_20' ) start [2025-04-08 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861192', 'tblTempUsageDetail_20' ) end [2025-04-08 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861192', 'tblTempVendorCDR_20' ) start [2025-04-08 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861192', 'tblTempVendorCDR_20' ) end [2025-04-08 09:10:20] Production.INFO: ProcessCDR(1,14861192,1,1,2) [2025-04-08 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861192', 'tblTempUsageDetail_20' ) start [2025-04-08 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861192', 'tblTempUsageDetail_20' ) end [2025-04-08 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:10:25] Production.INFO: ==27750== Releasing lock... [2025-04-08 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:10:25] Production.INFO: 36.25 MB #Memory Used# [2025-04-08 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:11:05 [end_date_ymd] => 2025-04-08 09:11:05 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:11:05' and `end` < '2025-04-08 09: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-04-08 09:11:18] Production.INFO: count ==1125 [2025-04-08 09:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:11:05 - End Time 2025-04-08 09:11:05 [2025-04-08 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861197', 'tblTempUsageDetail_20' ) start [2025-04-08 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861197', 'tblTempUsageDetail_20' ) end [2025-04-08 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861197', 'tblTempVendorCDR_20' ) start [2025-04-08 09:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861197', 'tblTempVendorCDR_20' ) end [2025-04-08 09:11:19] Production.INFO: ProcessCDR(1,14861197,1,1,2) [2025-04-08 09:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861197', 'tblTempUsageDetail_20' ) start [2025-04-08 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861197', 'tblTempUsageDetail_20' ) end [2025-04-08 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:11:22] Production.INFO: ==27832== Releasing lock... [2025-04-08 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:11:22] Production.INFO: 36.75 MB #Memory Used# [2025-04-08 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:12:05 [end_date_ymd] => 2025-04-08 09:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:12:05' and `end` < '2025-04-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-04-08 09:12:18] Production.INFO: count ==1134 [2025-04-08 09:12:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:12:05 - End Time 2025-04-08 09:12:05 [2025-04-08 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861202', 'tblTempUsageDetail_20' ) start [2025-04-08 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861202', 'tblTempUsageDetail_20' ) end [2025-04-08 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861202', 'tblTempVendorCDR_20' ) start [2025-04-08 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861202', 'tblTempVendorCDR_20' ) end [2025-04-08 09:12:19] Production.INFO: ProcessCDR(1,14861202,1,1,2) [2025-04-08 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861202', 'tblTempUsageDetail_20' ) start [2025-04-08 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861202', 'tblTempUsageDetail_20' ) end [2025-04-08 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:12:24] Production.INFO: ==27906== Releasing lock... [2025-04-08 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:12:24] Production.INFO: 37 MB #Memory Used# [2025-04-08 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:13:05 [end_date_ymd] => 2025-04-08 09:13:05 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:13:05' and `end` < '2025-04-08 09: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-04-08 09:13:18] Production.INFO: count ==1146 [2025-04-08 09:13:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:13:05 - End Time 2025-04-08 09:13:05 [2025-04-08 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861207', 'tblTempUsageDetail_20' ) start [2025-04-08 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861207', 'tblTempUsageDetail_20' ) end [2025-04-08 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861207', 'tblTempVendorCDR_20' ) start [2025-04-08 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861207', 'tblTempVendorCDR_20' ) end [2025-04-08 09:13:18] Production.INFO: ProcessCDR(1,14861207,1,1,2) [2025-04-08 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861207', 'tblTempUsageDetail_20' ) start [2025-04-08 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861207', 'tblTempUsageDetail_20' ) end [2025-04-08 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:13:23] Production.INFO: ==27987== Releasing lock... [2025-04-08 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:13:23] Production.INFO: 37 MB #Memory Used# [2025-04-08 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:14:06 [end_date_ymd] => 2025-04-08 09:14:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:14:06' and `end` < '2025-04-08 09: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-04-08 09:14:19] Production.INFO: count ==1178 [2025-04-08 09:14:20] Production.ERROR: pbx CDR StartTime 2025-04-08 06:14:06 - End Time 2025-04-08 09:14:06 [2025-04-08 09:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861212', 'tblTempUsageDetail_20' ) start [2025-04-08 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861212', 'tblTempUsageDetail_20' ) end [2025-04-08 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861212', 'tblTempVendorCDR_20' ) start [2025-04-08 09:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861212', 'tblTempVendorCDR_20' ) end [2025-04-08 09:14:20] Production.INFO: ProcessCDR(1,14861212,1,1,2) [2025-04-08 09:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861212', 'tblTempUsageDetail_20' ) start [2025-04-08 09:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861212', 'tblTempUsageDetail_20' ) end [2025-04-08 09:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:14:25] Production.INFO: ==28058== Releasing lock... [2025-04-08 09:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:14:25] Production.INFO: 37.25 MB #Memory Used# [2025-04-08 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:15:05 [end_date_ymd] => 2025-04-08 09:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:15:05' and `end` < '2025-04-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-04-08 09:15:18] Production.INFO: count ==1191 [2025-04-08 09:15:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:15:05 - End Time 2025-04-08 09:15:05 [2025-04-08 09:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861217', 'tblTempUsageDetail_20' ) start [2025-04-08 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861217', 'tblTempUsageDetail_20' ) end [2025-04-08 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861217', 'tblTempVendorCDR_20' ) start [2025-04-08 09:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861217', 'tblTempVendorCDR_20' ) end [2025-04-08 09:15:19] Production.INFO: ProcessCDR(1,14861217,1,1,2) [2025-04-08 09:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861217', 'tblTempUsageDetail_20' ) start [2025-04-08 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861217', 'tblTempUsageDetail_20' ) end [2025-04-08 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:15:24] Production.INFO: ==28132== Releasing lock... [2025-04-08 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:15:24] Production.INFO: 37 MB #Memory Used# [2025-04-08 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:16:05 [end_date_ymd] => 2025-04-08 09:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:16:05' and `end` < '2025-04-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-04-08 09:16:18] Production.INFO: count ==1197 [2025-04-08 09:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:16:05 - End Time 2025-04-08 09:16:05 [2025-04-08 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861222', 'tblTempUsageDetail_20' ) start [2025-04-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861222', 'tblTempUsageDetail_20' ) end [2025-04-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861222', 'tblTempVendorCDR_20' ) start [2025-04-08 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861222', 'tblTempVendorCDR_20' ) end [2025-04-08 09:16:18] Production.INFO: ProcessCDR(1,14861222,1,1,2) [2025-04-08 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861222', 'tblTempUsageDetail_20' ) start [2025-04-08 09:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861222', 'tblTempUsageDetail_20' ) end [2025-04-08 09:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:16:24] Production.INFO: ==28207== Releasing lock... [2025-04-08 09:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:16:24] Production.INFO: 37.5 MB #Memory Used# [2025-04-08 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:17:05 [end_date_ymd] => 2025-04-08 09:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:17:05' and `end` < '2025-04-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-04-08 09:17:18] Production.INFO: count ==1199 [2025-04-08 09:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:17:05 - End Time 2025-04-08 09:17:05 [2025-04-08 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861227', 'tblTempUsageDetail_20' ) start [2025-04-08 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861227', 'tblTempUsageDetail_20' ) end [2025-04-08 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861227', 'tblTempVendorCDR_20' ) start [2025-04-08 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861227', 'tblTempVendorCDR_20' ) end [2025-04-08 09:17:19] Production.INFO: ProcessCDR(1,14861227,1,1,2) [2025-04-08 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861227', 'tblTempUsageDetail_20' ) start [2025-04-08 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861227', 'tblTempUsageDetail_20' ) end [2025-04-08 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:17:24] Production.INFO: ==28283== Releasing lock... [2025-04-08 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:17:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-08 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:18:06 [end_date_ymd] => 2025-04-08 09:18:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:18:06' and `end` < '2025-04-08 09: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-04-08 09:18:19] Production.INFO: count ==1218 [2025-04-08 09:18:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:18:06 - End Time 2025-04-08 09:18:06 [2025-04-08 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861232', 'tblTempUsageDetail_20' ) start [2025-04-08 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861232', 'tblTempUsageDetail_20' ) end [2025-04-08 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861232', 'tblTempVendorCDR_20' ) start [2025-04-08 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861232', 'tblTempVendorCDR_20' ) end [2025-04-08 09:18:19] Production.INFO: ProcessCDR(1,14861232,1,1,2) [2025-04-08 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861232', 'tblTempUsageDetail_20' ) start [2025-04-08 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861232', 'tblTempUsageDetail_20' ) end [2025-04-08 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:18:24] Production.INFO: ==28367== Releasing lock... [2025-04-08 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:18:24] Production.INFO: 37.25 MB #Memory Used# [2025-04-08 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:19:05 [end_date_ymd] => 2025-04-08 09:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:19:05' and `end` < '2025-04-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-04-08 09:19:18] Production.INFO: count ==1221 [2025-04-08 09:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:19:05 - End Time 2025-04-08 09:19:05 [2025-04-08 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861237', 'tblTempUsageDetail_20' ) start [2025-04-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861237', 'tblTempUsageDetail_20' ) end [2025-04-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861237', 'tblTempVendorCDR_20' ) start [2025-04-08 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861237', 'tblTempVendorCDR_20' ) end [2025-04-08 09:19:18] Production.INFO: ProcessCDR(1,14861237,1,1,2) [2025-04-08 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861237', 'tblTempUsageDetail_20' ) start [2025-04-08 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861237', 'tblTempUsageDetail_20' ) end [2025-04-08 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:19:23] Production.INFO: ==28440== Releasing lock... [2025-04-08 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:19:23] Production.INFO: 37.5 MB #Memory Used# [2025-04-08 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:20:06 [end_date_ymd] => 2025-04-08 09:20:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:20:06' and `end` < '2025-04-08 09: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-04-08 09:20:19] Production.INFO: count ==1243 [2025-04-08 09:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:20:06 - End Time 2025-04-08 09:20:06 [2025-04-08 09:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861243', 'tblTempUsageDetail_20' ) start [2025-04-08 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861243', 'tblTempUsageDetail_20' ) end [2025-04-08 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861243', 'tblTempVendorCDR_20' ) start [2025-04-08 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861243', 'tblTempVendorCDR_20' ) end [2025-04-08 09:20:20] Production.INFO: ProcessCDR(1,14861243,1,1,2) [2025-04-08 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861243', 'tblTempUsageDetail_20' ) start [2025-04-08 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861243', 'tblTempUsageDetail_20' ) end [2025-04-08 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:20:25] Production.INFO: ==28518== Releasing lock... [2025-04-08 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:20:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-08 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:21:05 [end_date_ymd] => 2025-04-08 09:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:21:05' and `end` < '2025-04-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-04-08 09:21:18] Production.INFO: count ==1295 [2025-04-08 09:21:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:21:05 - End Time 2025-04-08 09:21:05 [2025-04-08 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861248', 'tblTempUsageDetail_20' ) start [2025-04-08 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861248', 'tblTempUsageDetail_20' ) end [2025-04-08 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861248', 'tblTempVendorCDR_20' ) start [2025-04-08 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861248', 'tblTempVendorCDR_20' ) end [2025-04-08 09:21:18] Production.INFO: ProcessCDR(1,14861248,1,1,2) [2025-04-08 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861248', 'tblTempUsageDetail_20' ) start [2025-04-08 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861248', 'tblTempUsageDetail_20' ) end [2025-04-08 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:21:24] Production.INFO: ==28596== Releasing lock... [2025-04-08 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:21:24] Production.INFO: 38 MB #Memory Used# [2025-04-08 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:22:05 [end_date_ymd] => 2025-04-08 09:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:22:05' and `end` < '2025-04-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-04-08 09:22:18] Production.INFO: count ==1300 [2025-04-08 09:22:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:22:05 - End Time 2025-04-08 09:22:05 [2025-04-08 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861253', 'tblTempUsageDetail_20' ) start [2025-04-08 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861253', 'tblTempUsageDetail_20' ) end [2025-04-08 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861253', 'tblTempVendorCDR_20' ) start [2025-04-08 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861253', 'tblTempVendorCDR_20' ) end [2025-04-08 09:22:19] Production.INFO: ProcessCDR(1,14861253,1,1,2) [2025-04-08 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861253', 'tblTempUsageDetail_20' ) start [2025-04-08 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861253', 'tblTempUsageDetail_20' ) end [2025-04-08 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:22:24] Production.INFO: ==28668== Releasing lock... [2025-04-08 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:22:24] Production.INFO: 38 MB #Memory Used# [2025-04-08 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:23:06 [end_date_ymd] => 2025-04-08 09:23:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:23:06' and `end` < '2025-04-08 09: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-04-08 09:23:19] Production.INFO: count ==1308 [2025-04-08 09:23:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:23:06 - End Time 2025-04-08 09:23:06 [2025-04-08 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861258', 'tblTempUsageDetail_20' ) start [2025-04-08 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861258', 'tblTempUsageDetail_20' ) end [2025-04-08 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861258', 'tblTempVendorCDR_20' ) start [2025-04-08 09:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861258', 'tblTempVendorCDR_20' ) end [2025-04-08 09:23:20] Production.INFO: ProcessCDR(1,14861258,1,1,2) [2025-04-08 09:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861258', 'tblTempUsageDetail_20' ) start [2025-04-08 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861258', 'tblTempUsageDetail_20' ) end [2025-04-08 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:23:24] Production.INFO: ==28742== Releasing lock... [2025-04-08 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:23:24] Production.INFO: 37.75 MB #Memory Used# [2025-04-08 09:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:24:06 [end_date_ymd] => 2025-04-08 09:24:06 [RateCDR] => 1 ) [2025-04-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-04-08 06:24:06' and `end` < '2025-04-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-04-08 09:24:19] Production.INFO: count ==1314 [2025-04-08 09:24:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:24:06 - End Time 2025-04-08 09:24:06 [2025-04-08 09:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861263', 'tblTempUsageDetail_20' ) start [2025-04-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861263', 'tblTempUsageDetail_20' ) end [2025-04-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861263', 'tblTempVendorCDR_20' ) start [2025-04-08 09:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861263', 'tblTempVendorCDR_20' ) end [2025-04-08 09:24:19] Production.INFO: ProcessCDR(1,14861263,1,1,2) [2025-04-08 09:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861263', 'tblTempUsageDetail_20' ) start [2025-04-08 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861263', 'tblTempUsageDetail_20' ) end [2025-04-08 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:24:25] Production.INFO: ==28861== Releasing lock... [2025-04-08 09:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:24:25] Production.INFO: 37.75 MB #Memory Used# [2025-04-08 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:25:05 [end_date_ymd] => 2025-04-08 09:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:25:05' and `end` < '2025-04-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-04-08 09:25:18] Production.INFO: count ==1315 [2025-04-08 09:25:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:25:05 - End Time 2025-04-08 09:25:05 [2025-04-08 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861268', 'tblTempUsageDetail_20' ) start [2025-04-08 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861268', 'tblTempUsageDetail_20' ) end [2025-04-08 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861268', 'tblTempVendorCDR_20' ) start [2025-04-08 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861268', 'tblTempVendorCDR_20' ) end [2025-04-08 09:25:19] Production.INFO: ProcessCDR(1,14861268,1,1,2) [2025-04-08 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861268', 'tblTempUsageDetail_20' ) start [2025-04-08 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861268', 'tblTempUsageDetail_20' ) end [2025-04-08 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:25:24] Production.INFO: ==28931== Releasing lock... [2025-04-08 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:25:24] Production.INFO: 38 MB #Memory Used# [2025-04-08 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:26:05 [end_date_ymd] => 2025-04-08 09:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:26:05' and `end` < '2025-04-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-04-08 09:26:18] Production.INFO: count ==1322 [2025-04-08 09:26:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:26:05 - End Time 2025-04-08 09:26:05 [2025-04-08 09:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861273', 'tblTempUsageDetail_20' ) start [2025-04-08 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861273', 'tblTempUsageDetail_20' ) end [2025-04-08 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861273', 'tblTempVendorCDR_20' ) start [2025-04-08 09:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861273', 'tblTempVendorCDR_20' ) end [2025-04-08 09:26:19] Production.INFO: ProcessCDR(1,14861273,1,1,2) [2025-04-08 09:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861273', 'tblTempUsageDetail_20' ) start [2025-04-08 09:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861273', 'tblTempUsageDetail_20' ) end [2025-04-08 09:26:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:26:24] Production.INFO: ==29010== Releasing lock... [2025-04-08 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:26:24] Production.INFO: 38 MB #Memory Used# [2025-04-08 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:27:06 [end_date_ymd] => 2025-04-08 09:27:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:27:06' and `end` < '2025-04-08 09: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-04-08 09:27:19] Production.INFO: count ==1328 [2025-04-08 09:27:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:27:06 - End Time 2025-04-08 09:27:06 [2025-04-08 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861278', 'tblTempUsageDetail_20' ) start [2025-04-08 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861278', 'tblTempUsageDetail_20' ) end [2025-04-08 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861278', 'tblTempVendorCDR_20' ) start [2025-04-08 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861278', 'tblTempVendorCDR_20' ) end [2025-04-08 09:27:19] Production.INFO: ProcessCDR(1,14861278,1,1,2) [2025-04-08 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861278', 'tblTempUsageDetail_20' ) start [2025-04-08 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861278', 'tblTempUsageDetail_20' ) end [2025-04-08 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:27:24] Production.INFO: ==29084== Releasing lock... [2025-04-08 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:27:24] Production.INFO: 38 MB #Memory Used# [2025-04-08 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:28:05 [end_date_ymd] => 2025-04-08 09:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:28:05' and `end` < '2025-04-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-04-08 09:28:18] Production.INFO: count ==1333 [2025-04-08 09:28:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:28:05 - End Time 2025-04-08 09:28:05 [2025-04-08 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861283', 'tblTempUsageDetail_20' ) start [2025-04-08 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861283', 'tblTempUsageDetail_20' ) end [2025-04-08 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861283', 'tblTempVendorCDR_20' ) start [2025-04-08 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861283', 'tblTempVendorCDR_20' ) end [2025-04-08 09:28:19] Production.INFO: ProcessCDR(1,14861283,1,1,2) [2025-04-08 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861283', 'tblTempUsageDetail_20' ) start [2025-04-08 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861283', 'tblTempUsageDetail_20' ) end [2025-04-08 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:28:24] Production.INFO: ==29158== Releasing lock... [2025-04-08 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:28:24] Production.INFO: 38 MB #Memory Used# [2025-04-08 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:29:05 [end_date_ymd] => 2025-04-08 09:29:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:29:05' and `end` < '2025-04-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-04-08 09:29:18] Production.INFO: count ==1342 [2025-04-08 09:29:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:29:05 - End Time 2025-04-08 09:29:05 [2025-04-08 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861288', 'tblTempUsageDetail_20' ) start [2025-04-08 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861288', 'tblTempUsageDetail_20' ) end [2025-04-08 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861288', 'tblTempVendorCDR_20' ) start [2025-04-08 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861288', 'tblTempVendorCDR_20' ) end [2025-04-08 09:29:19] Production.INFO: ProcessCDR(1,14861288,1,1,2) [2025-04-08 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861288', 'tblTempUsageDetail_20' ) start [2025-04-08 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861288', 'tblTempUsageDetail_20' ) end [2025-04-08 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:29:24] Production.INFO: ==29233== Releasing lock... [2025-04-08 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:29:24] Production.INFO: 38 MB #Memory Used# [2025-04-08 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:30:05 [end_date_ymd] => 2025-04-08 09:30:05 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:30:05' and `end` < '2025-04-08 09: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-04-08 09:30:19] Production.INFO: count ==1355 [2025-04-08 09:30:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:30:05 - End Time 2025-04-08 09:30:05 [2025-04-08 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861294', 'tblTempUsageDetail_20' ) start [2025-04-08 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861294', 'tblTempUsageDetail_20' ) end [2025-04-08 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861294', 'tblTempVendorCDR_20' ) start [2025-04-08 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861294', 'tblTempVendorCDR_20' ) end [2025-04-08 09:30:19] Production.INFO: ProcessCDR(1,14861294,1,1,2) [2025-04-08 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861294', 'tblTempUsageDetail_20' ) start [2025-04-08 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861294', 'tblTempUsageDetail_20' ) end [2025-04-08 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:30:24] Production.INFO: ==29309== Releasing lock... [2025-04-08 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:30:24] Production.INFO: 38.25 MB #Memory Used# [2025-04-08 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:31:05 [end_date_ymd] => 2025-04-08 09:31:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:31:05' and `end` < '2025-04-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-04-08 09:31:18] Production.INFO: count ==1448 [2025-04-08 09:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:31:05 - End Time 2025-04-08 09:31:05 [2025-04-08 09:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861299', 'tblTempUsageDetail_20' ) start [2025-04-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861299', 'tblTempUsageDetail_20' ) end [2025-04-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861299', 'tblTempVendorCDR_20' ) start [2025-04-08 09:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861299', 'tblTempVendorCDR_20' ) end [2025-04-08 09:31:18] Production.INFO: ProcessCDR(1,14861299,1,1,2) [2025-04-08 09:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861299', 'tblTempUsageDetail_20' ) start [2025-04-08 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861299', 'tblTempUsageDetail_20' ) end [2025-04-08 09:31:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:31:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:31:24] Production.INFO: ==29390== Releasing lock... [2025-04-08 09:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:31:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-08 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:32:06 [end_date_ymd] => 2025-04-08 09:32:06 [RateCDR] => 1 ) [2025-04-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-04-08 06:32:06' and `end` < '2025-04-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-04-08 09:32:19] Production.INFO: count ==1454 [2025-04-08 09:32:20] Production.ERROR: pbx CDR StartTime 2025-04-08 06:32:06 - End Time 2025-04-08 09:32:06 [2025-04-08 09:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861304', 'tblTempUsageDetail_20' ) start [2025-04-08 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861304', 'tblTempUsageDetail_20' ) end [2025-04-08 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861304', 'tblTempVendorCDR_20' ) start [2025-04-08 09:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861304', 'tblTempVendorCDR_20' ) end [2025-04-08 09:32:20] Production.INFO: ProcessCDR(1,14861304,1,1,2) [2025-04-08 09:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861304', 'tblTempUsageDetail_20' ) start [2025-04-08 09:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861304', 'tblTempUsageDetail_20' ) end [2025-04-08 09:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:32:26] Production.INFO: ==29471== Releasing lock... [2025-04-08 09:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:32:26] Production.INFO: 39.25 MB #Memory Used# [2025-04-08 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:33:05 [end_date_ymd] => 2025-04-08 09:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:33:05' and `end` < '2025-04-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-04-08 09:33:19] Production.INFO: count ==1462 [2025-04-08 09:33:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:33:05 - End Time 2025-04-08 09:33:05 [2025-04-08 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861309', 'tblTempUsageDetail_20' ) start [2025-04-08 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861309', 'tblTempUsageDetail_20' ) end [2025-04-08 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861309', 'tblTempVendorCDR_20' ) start [2025-04-08 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861309', 'tblTempVendorCDR_20' ) end [2025-04-08 09:33:19] Production.INFO: ProcessCDR(1,14861309,1,1,2) [2025-04-08 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861309', 'tblTempUsageDetail_20' ) start [2025-04-08 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861309', 'tblTempUsageDetail_20' ) end [2025-04-08 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:33:24] Production.INFO: ==29551== Releasing lock... [2025-04-08 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:33:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-08 09:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:34:06 [end_date_ymd] => 2025-04-08 09:34:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:34:06' and `end` < '2025-04-08 09: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-04-08 09:34:19] Production.INFO: count ==1485 [2025-04-08 09:34:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:34:06 - End Time 2025-04-08 09:34:06 [2025-04-08 09:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861314', 'tblTempUsageDetail_20' ) start [2025-04-08 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861314', 'tblTempUsageDetail_20' ) end [2025-04-08 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861314', 'tblTempVendorCDR_20' ) start [2025-04-08 09:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861314', 'tblTempVendorCDR_20' ) end [2025-04-08 09:34:19] Production.INFO: ProcessCDR(1,14861314,1,1,2) [2025-04-08 09:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861314', 'tblTempUsageDetail_20' ) start [2025-04-08 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861314', 'tblTempUsageDetail_20' ) end [2025-04-08 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:34:23] Production.INFO: ==29629== Releasing lock... [2025-04-08 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:34:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-08 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:35:05 [end_date_ymd] => 2025-04-08 09:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:35:05' and `end` < '2025-04-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-04-08 09:35:18] Production.INFO: count ==1489 [2025-04-08 09:35:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:35:05 - End Time 2025-04-08 09:35:05 [2025-04-08 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861319', 'tblTempUsageDetail_20' ) start [2025-04-08 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861319', 'tblTempUsageDetail_20' ) end [2025-04-08 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861319', 'tblTempVendorCDR_20' ) start [2025-04-08 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861319', 'tblTempVendorCDR_20' ) end [2025-04-08 09:35:19] Production.INFO: ProcessCDR(1,14861319,1,1,2) [2025-04-08 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861319', 'tblTempUsageDetail_20' ) start [2025-04-08 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861319', 'tblTempUsageDetail_20' ) end [2025-04-08 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:35:24] Production.INFO: ==29704== Releasing lock... [2025-04-08 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:35:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-08 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:36:05 [end_date_ymd] => 2025-04-08 09:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:36:05' and `end` < '2025-04-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-04-08 09:36:19] Production.INFO: count ==1497 [2025-04-08 09:36:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:36:05 - End Time 2025-04-08 09:36:05 [2025-04-08 09:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861324', 'tblTempUsageDetail_20' ) start [2025-04-08 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861324', 'tblTempUsageDetail_20' ) end [2025-04-08 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861324', 'tblTempVendorCDR_20' ) start [2025-04-08 09:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861324', 'tblTempVendorCDR_20' ) end [2025-04-08 09:36:19] Production.INFO: ProcessCDR(1,14861324,1,1,2) [2025-04-08 09:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861324', 'tblTempUsageDetail_20' ) start [2025-04-08 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861324', 'tblTempUsageDetail_20' ) end [2025-04-08 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:36:24] Production.INFO: ==29778== Releasing lock... [2025-04-08 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:36:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-08 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:37:05 [end_date_ymd] => 2025-04-08 09:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:37:05' and `end` < '2025-04-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-04-08 09:37:18] Production.INFO: count ==1523 [2025-04-08 09:37:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:37:05 - End Time 2025-04-08 09:37:05 [2025-04-08 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861329', 'tblTempUsageDetail_20' ) start [2025-04-08 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861329', 'tblTempUsageDetail_20' ) end [2025-04-08 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861329', 'tblTempVendorCDR_20' ) start [2025-04-08 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861329', 'tblTempVendorCDR_20' ) end [2025-04-08 09:37:19] Production.INFO: ProcessCDR(1,14861329,1,1,2) [2025-04-08 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861329', 'tblTempUsageDetail_20' ) start [2025-04-08 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861329', 'tblTempUsageDetail_20' ) end [2025-04-08 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:37:24] Production.INFO: ==29857== Releasing lock... [2025-04-08 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:37:24] Production.INFO: 39.75 MB #Memory Used# [2025-04-08 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:38:05 [end_date_ymd] => 2025-04-08 09:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:38:05' and `end` < '2025-04-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-04-08 09:38:19] Production.INFO: count ==1578 [2025-04-08 09:38:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:38:05 - End Time 2025-04-08 09:38:05 [2025-04-08 09:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861334', 'tblTempUsageDetail_20' ) start [2025-04-08 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861334', 'tblTempUsageDetail_20' ) end [2025-04-08 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861334', 'tblTempVendorCDR_20' ) start [2025-04-08 09:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861334', 'tblTempVendorCDR_20' ) end [2025-04-08 09:38:19] Production.INFO: ProcessCDR(1,14861334,1,1,2) [2025-04-08 09:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861334', 'tblTempUsageDetail_20' ) start [2025-04-08 09:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861334', 'tblTempUsageDetail_20' ) end [2025-04-08 09:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:38:25] Production.INFO: ==29935== Releasing lock... [2025-04-08 09:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:38:25] Production.INFO: 40 MB #Memory Used# [2025-04-08 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:39:05 [end_date_ymd] => 2025-04-08 09:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:39:05' and `end` < '2025-04-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-04-08 09:39:18] Production.INFO: count ==1584 [2025-04-08 09:39:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:39:05 - End Time 2025-04-08 09:39:05 [2025-04-08 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861339', 'tblTempUsageDetail_20' ) start [2025-04-08 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861339', 'tblTempUsageDetail_20' ) end [2025-04-08 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861339', 'tblTempVendorCDR_20' ) start [2025-04-08 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861339', 'tblTempVendorCDR_20' ) end [2025-04-08 09:39:19] Production.INFO: ProcessCDR(1,14861339,1,1,2) [2025-04-08 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861339', 'tblTempUsageDetail_20' ) start [2025-04-08 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861339', 'tblTempUsageDetail_20' ) end [2025-04-08 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:39:24] Production.INFO: ==30013== Releasing lock... [2025-04-08 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:39:24] Production.INFO: 40 MB #Memory Used# [2025-04-08 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:40:06 [end_date_ymd] => 2025-04-08 09:40:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:40:06' and `end` < '2025-04-08 09: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-04-08 09:40:19] Production.INFO: count ==1616 [2025-04-08 09:40:20] Production.ERROR: pbx CDR StartTime 2025-04-08 06:40:06 - End Time 2025-04-08 09:40:06 [2025-04-08 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861345', 'tblTempUsageDetail_20' ) start [2025-04-08 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861345', 'tblTempUsageDetail_20' ) end [2025-04-08 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861345', 'tblTempVendorCDR_20' ) start [2025-04-08 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861345', 'tblTempVendorCDR_20' ) end [2025-04-08 09:40:20] Production.INFO: ProcessCDR(1,14861345,1,1,2) [2025-04-08 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861345', 'tblTempUsageDetail_20' ) start [2025-04-08 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861345', 'tblTempUsageDetail_20' ) end [2025-04-08 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:40:25] Production.INFO: ==30134== Releasing lock... [2025-04-08 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:40:25] Production.INFO: 40.25 MB #Memory Used# [2025-04-08 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:41:05 [end_date_ymd] => 2025-04-08 09:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:41:05' and `end` < '2025-04-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-04-08 09:41:18] Production.INFO: count ==1698 [2025-04-08 09:41:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:41:05 - End Time 2025-04-08 09:41:05 [2025-04-08 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861350', 'tblTempUsageDetail_20' ) start [2025-04-08 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861350', 'tblTempUsageDetail_20' ) end [2025-04-08 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861350', 'tblTempVendorCDR_20' ) start [2025-04-08 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861350', 'tblTempVendorCDR_20' ) end [2025-04-08 09:41:19] Production.INFO: ProcessCDR(1,14861350,1,1,2) [2025-04-08 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861350', 'tblTempUsageDetail_20' ) start [2025-04-08 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861350', 'tblTempUsageDetail_20' ) end [2025-04-08 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:41:24] Production.INFO: ==30212== Releasing lock... [2025-04-08 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:41:24] Production.INFO: 41 MB #Memory Used# [2025-04-08 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:42:05 [end_date_ymd] => 2025-04-08 09:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:42:05' and `end` < '2025-04-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-04-08 09:42:18] Production.INFO: count ==1699 [2025-04-08 09:42:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:42:05 - End Time 2025-04-08 09:42:05 [2025-04-08 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861355', 'tblTempUsageDetail_20' ) start [2025-04-08 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861355', 'tblTempUsageDetail_20' ) end [2025-04-08 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861355', 'tblTempVendorCDR_20' ) start [2025-04-08 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861355', 'tblTempVendorCDR_20' ) end [2025-04-08 09:42:19] Production.INFO: ProcessCDR(1,14861355,1,1,2) [2025-04-08 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861355', 'tblTempUsageDetail_20' ) start [2025-04-08 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861355', 'tblTempUsageDetail_20' ) end [2025-04-08 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:42:24] Production.INFO: ==30288== Releasing lock... [2025-04-08 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:42:24] Production.INFO: 41 MB #Memory Used# [2025-04-08 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:43:05 [end_date_ymd] => 2025-04-08 09:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:43:05' and `end` < '2025-04-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-04-08 09:43:18] Production.INFO: count ==1706 [2025-04-08 09:43:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:43:05 - End Time 2025-04-08 09:43:05 [2025-04-08 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861360', 'tblTempUsageDetail_20' ) start [2025-04-08 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861360', 'tblTempUsageDetail_20' ) end [2025-04-08 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861360', 'tblTempVendorCDR_20' ) start [2025-04-08 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861360', 'tblTempVendorCDR_20' ) end [2025-04-08 09:43:19] Production.INFO: ProcessCDR(1,14861360,1,1,2) [2025-04-08 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861360', 'tblTempUsageDetail_20' ) start [2025-04-08 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861360', 'tblTempUsageDetail_20' ) end [2025-04-08 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:43:24] Production.INFO: ==30363== Releasing lock... [2025-04-08 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:43:24] Production.INFO: 40.75 MB #Memory Used# [2025-04-08 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:44:05 [end_date_ymd] => 2025-04-08 09:44:05 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:44:05' and `end` < '2025-04-08 09: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-04-08 09:44:18] Production.INFO: count ==1719 [2025-04-08 09:44:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:44:05 - End Time 2025-04-08 09:44:05 [2025-04-08 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861365', 'tblTempUsageDetail_20' ) start [2025-04-08 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861365', 'tblTempUsageDetail_20' ) end [2025-04-08 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861365', 'tblTempVendorCDR_20' ) start [2025-04-08 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861365', 'tblTempVendorCDR_20' ) end [2025-04-08 09:44:19] Production.INFO: ProcessCDR(1,14861365,1,1,2) [2025-04-08 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861365', 'tblTempUsageDetail_20' ) start [2025-04-08 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861365', 'tblTempUsageDetail_20' ) end [2025-04-08 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:44:24] Production.INFO: ==30442== Releasing lock... [2025-04-08 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:44:24] Production.INFO: 41.5 MB #Memory Used# [2025-04-08 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:45:05 [end_date_ymd] => 2025-04-08 09:45:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:45:05' and `end` < '2025-04-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-04-08 09:45:18] Production.INFO: count ==1719 [2025-04-08 09:45:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:45:05 - End Time 2025-04-08 09:45:05 [2025-04-08 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861370', 'tblTempUsageDetail_20' ) start [2025-04-08 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861370', 'tblTempUsageDetail_20' ) end [2025-04-08 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861370', 'tblTempVendorCDR_20' ) start [2025-04-08 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861370', 'tblTempVendorCDR_20' ) end [2025-04-08 09:45:19] Production.INFO: ProcessCDR(1,14861370,1,1,2) [2025-04-08 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861370', 'tblTempUsageDetail_20' ) start [2025-04-08 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861370', 'tblTempUsageDetail_20' ) end [2025-04-08 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:45:22] Production.INFO: ==30515== Releasing lock... [2025-04-08 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:45:22] Production.INFO: 41.5 MB #Memory Used# [2025-04-08 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:46:05 [end_date_ymd] => 2025-04-08 09:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:46:05' and `end` < '2025-04-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-04-08 09:46:18] Production.INFO: count ==1736 [2025-04-08 09:46:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:46:05 - End Time 2025-04-08 09:46:05 [2025-04-08 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861375', 'tblTempUsageDetail_20' ) start [2025-04-08 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861375', 'tblTempUsageDetail_20' ) end [2025-04-08 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861375', 'tblTempVendorCDR_20' ) start [2025-04-08 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861375', 'tblTempVendorCDR_20' ) end [2025-04-08 09:46:19] Production.INFO: ProcessCDR(1,14861375,1,1,2) [2025-04-08 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861375', 'tblTempUsageDetail_20' ) start [2025-04-08 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861375', 'tblTempUsageDetail_20' ) end [2025-04-08 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:46:24] Production.INFO: ==30595== Releasing lock... [2025-04-08 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:46:24] Production.INFO: 41 MB #Memory Used# [2025-04-08 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:47:05 [end_date_ymd] => 2025-04-08 09:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:47:05' and `end` < '2025-04-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-04-08 09:47:18] Production.INFO: count ==1742 [2025-04-08 09:47:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:47:05 - End Time 2025-04-08 09:47:05 [2025-04-08 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861380', 'tblTempUsageDetail_20' ) start [2025-04-08 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861380', 'tblTempUsageDetail_20' ) end [2025-04-08 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861380', 'tblTempVendorCDR_20' ) start [2025-04-08 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861380', 'tblTempVendorCDR_20' ) end [2025-04-08 09:47:19] Production.INFO: ProcessCDR(1,14861380,1,1,2) [2025-04-08 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861380', 'tblTempUsageDetail_20' ) start [2025-04-08 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861380', 'tblTempUsageDetail_20' ) end [2025-04-08 09:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:47:24] Production.INFO: ==30671== Releasing lock... [2025-04-08 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:47:24] Production.INFO: 41 MB #Memory Used# [2025-04-08 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:48:06 [end_date_ymd] => 2025-04-08 09:48:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:48:06' and `end` < '2025-04-08 09: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-04-08 09:48:19] Production.INFO: count ==1779 [2025-04-08 09:48:20] Production.ERROR: pbx CDR StartTime 2025-04-08 06:48:06 - End Time 2025-04-08 09:48:06 [2025-04-08 09:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861385', 'tblTempUsageDetail_20' ) start [2025-04-08 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861385', 'tblTempUsageDetail_20' ) end [2025-04-08 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861385', 'tblTempVendorCDR_20' ) start [2025-04-08 09:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861385', 'tblTempVendorCDR_20' ) end [2025-04-08 09:48:20] Production.INFO: ProcessCDR(1,14861385,1,1,2) [2025-04-08 09:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861385', 'tblTempUsageDetail_20' ) start [2025-04-08 09:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861385', 'tblTempUsageDetail_20' ) end [2025-04-08 09:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:48:23] Production.INFO: ==30748== Releasing lock... [2025-04-08 09:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:48:23] Production.INFO: 41.5 MB #Memory Used# [2025-04-08 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:49:06 [end_date_ymd] => 2025-04-08 09:49:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:49:06' and `end` < '2025-04-08 09: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-04-08 09:49:19] Production.INFO: count ==1791 [2025-04-08 09:49:20] Production.ERROR: pbx CDR StartTime 2025-04-08 06:49:06 - End Time 2025-04-08 09:49:06 [2025-04-08 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861390', 'tblTempUsageDetail_20' ) start [2025-04-08 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861390', 'tblTempUsageDetail_20' ) end [2025-04-08 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861390', 'tblTempVendorCDR_20' ) start [2025-04-08 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861390', 'tblTempVendorCDR_20' ) end [2025-04-08 09:49:20] Production.INFO: ProcessCDR(1,14861390,1,1,2) [2025-04-08 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861390', 'tblTempUsageDetail_20' ) start [2025-04-08 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861390', 'tblTempUsageDetail_20' ) end [2025-04-08 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:49:25] Production.INFO: ==30824== Releasing lock... [2025-04-08 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:49:25] Production.INFO: 41.5 MB #Memory Used# [2025-04-08 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:50:06 [end_date_ymd] => 2025-04-08 09:50:06 [RateCDR] => 1 ) [2025-04-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-04-08 06:50:06' and `end` < '2025-04-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-04-08 09:50:19] Production.INFO: count ==1815 [2025-04-08 09:50:20] Production.ERROR: pbx CDR StartTime 2025-04-08 06:50:06 - End Time 2025-04-08 09:50:06 [2025-04-08 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861396', 'tblTempUsageDetail_20' ) start [2025-04-08 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861396', 'tblTempUsageDetail_20' ) end [2025-04-08 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861396', 'tblTempVendorCDR_20' ) start [2025-04-08 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861396', 'tblTempVendorCDR_20' ) end [2025-04-08 09:50:20] Production.INFO: ProcessCDR(1,14861396,1,1,2) [2025-04-08 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861396', 'tblTempUsageDetail_20' ) start [2025-04-08 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861396', 'tblTempUsageDetail_20' ) end [2025-04-08 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:50:25] Production.INFO: ==30906== Releasing lock... [2025-04-08 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:50:25] Production.INFO: 42 MB #Memory Used# [2025-04-08 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:51:05 [end_date_ymd] => 2025-04-08 09:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:51:05' and `end` < '2025-04-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-04-08 09:51:19] Production.INFO: count ==1951 [2025-04-08 09:51:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:51:05 - End Time 2025-04-08 09:51:05 [2025-04-08 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861401', 'tblTempUsageDetail_20' ) start [2025-04-08 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861401', 'tblTempUsageDetail_20' ) end [2025-04-08 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861401', 'tblTempVendorCDR_20' ) start [2025-04-08 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861401', 'tblTempVendorCDR_20' ) end [2025-04-08 09:51:19] Production.INFO: ProcessCDR(1,14861401,1,1,2) [2025-04-08 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861401', 'tblTempUsageDetail_20' ) start [2025-04-08 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861401', 'tblTempUsageDetail_20' ) end [2025-04-08 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:51:25] Production.INFO: ==30983== Releasing lock... [2025-04-08 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:51:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-08 09:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:52:04 [end_date_ymd] => 2025-04-08 09:52:04 [RateCDR] => 1 ) [2025-04-08 09:52: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-04-08 06:52:04' and `end` < '2025-04-08 09:52: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-04-08 09:52:18] Production.INFO: count ==1982 [2025-04-08 09:52:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:52:04 - End Time 2025-04-08 09:52:04 [2025-04-08 09:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861406', 'tblTempUsageDetail_20' ) start [2025-04-08 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861406', 'tblTempUsageDetail_20' ) end [2025-04-08 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861406', 'tblTempVendorCDR_20' ) start [2025-04-08 09:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861406', 'tblTempVendorCDR_20' ) end [2025-04-08 09:52:18] Production.INFO: ProcessCDR(1,14861406,1,1,2) [2025-04-08 09:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861406', 'tblTempUsageDetail_20' ) start [2025-04-08 09:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861406', 'tblTempUsageDetail_20' ) end [2025-04-08 09:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:52:23] Production.INFO: ==31066== Releasing lock... [2025-04-08 09:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:52:23] Production.INFO: 43 MB #Memory Used# [2025-04-08 09:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:53:06 [end_date_ymd] => 2025-04-08 09:53:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:53:06' and `end` < '2025-04-08 09: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-04-08 09:53:19] Production.INFO: count ==2000 [2025-04-08 09:53:20] Production.ERROR: pbx CDR StartTime 2025-04-08 06:53:06 - End Time 2025-04-08 09:53:06 [2025-04-08 09:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861411', 'tblTempUsageDetail_20' ) start [2025-04-08 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861411', 'tblTempUsageDetail_20' ) end [2025-04-08 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861411', 'tblTempVendorCDR_20' ) start [2025-04-08 09:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861411', 'tblTempVendorCDR_20' ) end [2025-04-08 09:53:20] Production.INFO: ProcessCDR(1,14861411,1,1,2) [2025-04-08 09:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861411', 'tblTempUsageDetail_20' ) start [2025-04-08 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861411', 'tblTempUsageDetail_20' ) end [2025-04-08 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:53:25] Production.INFO: ==31143== Releasing lock... [2025-04-08 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:53:25] Production.INFO: 43 MB #Memory Used# [2025-04-08 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:54:05 [end_date_ymd] => 2025-04-08 09:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:54:05' and `end` < '2025-04-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-04-08 09:54:18] Production.INFO: count ==2014 [2025-04-08 09:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:54:05 - End Time 2025-04-08 09:54:05 [2025-04-08 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861416', 'tblTempUsageDetail_20' ) start [2025-04-08 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861416', 'tblTempUsageDetail_20' ) end [2025-04-08 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861416', 'tblTempVendorCDR_20' ) start [2025-04-08 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861416', 'tblTempVendorCDR_20' ) end [2025-04-08 09:54:18] Production.INFO: ProcessCDR(1,14861416,1,1,2) [2025-04-08 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861416', 'tblTempUsageDetail_20' ) start [2025-04-08 09:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861416', 'tblTempUsageDetail_20' ) end [2025-04-08 09:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:54:24] Production.INFO: ==31221== Releasing lock... [2025-04-08 09:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:54:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-08 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:55:06 [end_date_ymd] => 2025-04-08 09:55:06 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:55:06' and `end` < '2025-04-08 09: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-04-08 09:55:19] Production.INFO: count ==2040 [2025-04-08 09:55:20] Production.ERROR: pbx CDR StartTime 2025-04-08 06:55:06 - End Time 2025-04-08 09:55:06 [2025-04-08 09:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861421', 'tblTempUsageDetail_20' ) start [2025-04-08 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861421', 'tblTempUsageDetail_20' ) end [2025-04-08 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861421', 'tblTempVendorCDR_20' ) start [2025-04-08 09:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861421', 'tblTempVendorCDR_20' ) end [2025-04-08 09:55:20] Production.INFO: ProcessCDR(1,14861421,1,1,2) [2025-04-08 09:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861421', 'tblTempUsageDetail_20' ) start [2025-04-08 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861421', 'tblTempUsageDetail_20' ) end [2025-04-08 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:55:25] Production.INFO: ==31335== Releasing lock... [2025-04-08 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:55:25] Production.INFO: 43.25 MB #Memory Used# [2025-04-08 09:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:56:04 [end_date_ymd] => 2025-04-08 09:56:04 [RateCDR] => 1 ) [2025-04-08 09:56: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-04-08 06:56:04' and `end` < '2025-04-08 09:56: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-04-08 09:56:18] Production.INFO: count ==2058 [2025-04-08 09:56:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:56:04 - End Time 2025-04-08 09:56:04 [2025-04-08 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861426', 'tblTempUsageDetail_20' ) start [2025-04-08 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861426', 'tblTempUsageDetail_20' ) end [2025-04-08 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861426', 'tblTempVendorCDR_20' ) start [2025-04-08 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861426', 'tblTempVendorCDR_20' ) end [2025-04-08 09:56:18] Production.INFO: ProcessCDR(1,14861426,1,1,2) [2025-04-08 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861426', 'tblTempUsageDetail_20' ) start [2025-04-08 09:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861426', 'tblTempUsageDetail_20' ) end [2025-04-08 09:56:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:56:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:56:24] Production.INFO: ==31415== Releasing lock... [2025-04-08 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:56:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-08 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:57:05 [end_date_ymd] => 2025-04-08 09:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:57:05' and `end` < '2025-04-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-04-08 09:57:19] Production.INFO: count ==2062 [2025-04-08 09:57:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:57:05 - End Time 2025-04-08 09:57:05 [2025-04-08 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861431', 'tblTempUsageDetail_20' ) start [2025-04-08 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861431', 'tblTempUsageDetail_20' ) end [2025-04-08 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861431', 'tblTempVendorCDR_20' ) start [2025-04-08 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861431', 'tblTempVendorCDR_20' ) end [2025-04-08 09:57:19] Production.INFO: ProcessCDR(1,14861431,1,1,2) [2025-04-08 09:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861431', 'tblTempUsageDetail_20' ) start [2025-04-08 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861431', 'tblTempUsageDetail_20' ) end [2025-04-08 09:57:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:57:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:57:23] Production.INFO: ==31489== Releasing lock... [2025-04-08 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:57:23] Production.INFO: 43.75 MB #Memory Used# [2025-04-08 09:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:58:04 [end_date_ymd] => 2025-04-08 09:58:04 [RateCDR] => 1 ) [2025-04-08 09: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-04-08 06:58:04' and `end` < '2025-04-08 09: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-04-08 09:58:18] Production.INFO: count ==2079 [2025-04-08 09:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 06:58:04 - End Time 2025-04-08 09:58:04 [2025-04-08 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861436', 'tblTempUsageDetail_20' ) start [2025-04-08 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861436', 'tblTempUsageDetail_20' ) end [2025-04-08 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861436', 'tblTempVendorCDR_20' ) start [2025-04-08 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861436', 'tblTempVendorCDR_20' ) end [2025-04-08 09:58:18] Production.INFO: ProcessCDR(1,14861436,1,1,2) [2025-04-08 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861436', 'tblTempUsageDetail_20' ) start [2025-04-08 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861436', 'tblTempUsageDetail_20' ) end [2025-04-08 09:58:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:58:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:58:23] Production.INFO: ==31564== Releasing lock... [2025-04-08 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:58:23] Production.INFO: 44 MB #Memory Used# [2025-04-08 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 06:59:05 [end_date_ymd] => 2025-04-08 09:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 06:59:05' and `end` < '2025-04-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-04-08 09:59:18] Production.INFO: count ==2077 [2025-04-08 09:59:19] Production.ERROR: pbx CDR StartTime 2025-04-08 06:59:05 - End Time 2025-04-08 09:59:05 [2025-04-08 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861441', 'tblTempUsageDetail_20' ) start [2025-04-08 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861441', 'tblTempUsageDetail_20' ) end [2025-04-08 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861441', 'tblTempVendorCDR_20' ) start [2025-04-08 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861441', 'tblTempVendorCDR_20' ) end [2025-04-08 09:59:19] Production.INFO: ProcessCDR(1,14861441,1,1,2) [2025-04-08 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 09:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861441', 'tblTempUsageDetail_20' ) start [2025-04-08 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861441', 'tblTempUsageDetail_20' ) end [2025-04-08 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 09:59:25] Production.INFO: ==31642== Releasing lock... [2025-04-08 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 09:59:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-08 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:00:05 [end_date_ymd] => 2025-04-08 10:00:05 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:00:05' and `end` < '2025-04-08 10: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-04-08 10:00:19] Production.INFO: count ==2088 [2025-04-08 10:00:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:00:05 - End Time 2025-04-08 10:00:05 [2025-04-08 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861446', 'tblTempUsageDetail_20' ) start [2025-04-08 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861446', 'tblTempUsageDetail_20' ) end [2025-04-08 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861446', 'tblTempVendorCDR_20' ) start [2025-04-08 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861446', 'tblTempVendorCDR_20' ) end [2025-04-08 10:00:20] Production.INFO: ProcessCDR(1,14861446,1,1,2) [2025-04-08 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861446', 'tblTempUsageDetail_20' ) start [2025-04-08 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861446', 'tblTempUsageDetail_20' ) end [2025-04-08 10:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:00:25] Production.INFO: ==31724== Releasing lock... [2025-04-08 10:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:00:25] Production.INFO: 43.75 MB #Memory Used# [2025-04-08 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:01:05 [end_date_ymd] => 2025-04-08 10:01:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:01:05' and `end` < '2025-04-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-04-08 10:01:19] Production.INFO: count ==2169 [2025-04-08 10:01:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:01:05 - End Time 2025-04-08 10:01:05 [2025-04-08 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861452', 'tblTempUsageDetail_20' ) start [2025-04-08 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861452', 'tblTempUsageDetail_20' ) end [2025-04-08 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861452', 'tblTempVendorCDR_20' ) start [2025-04-08 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861452', 'tblTempVendorCDR_20' ) end [2025-04-08 10:01:19] Production.INFO: ProcessCDR(1,14861452,1,1,2) [2025-04-08 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861452', 'tblTempUsageDetail_20' ) start [2025-04-08 10:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861452', 'tblTempUsageDetail_20' ) end [2025-04-08 10:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:01:25] Production.INFO: ==31817== Releasing lock... [2025-04-08 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:01:25] Production.INFO: 44.25 MB #Memory Used# [2025-04-08 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:02:05 [end_date_ymd] => 2025-04-08 10:02:05 [RateCDR] => 1 ) [2025-04-08 10:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 07:02:05' and `end` < '2025-04-08 10:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 10:02:19] Production.INFO: count ==2178 [2025-04-08 10:02:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:02:05 - End Time 2025-04-08 10:02:05 [2025-04-08 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861457', 'tblTempUsageDetail_20' ) start [2025-04-08 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861457', 'tblTempUsageDetail_20' ) end [2025-04-08 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861457', 'tblTempVendorCDR_20' ) start [2025-04-08 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861457', 'tblTempVendorCDR_20' ) end [2025-04-08 10:02:20] Production.INFO: ProcessCDR(1,14861457,1,1,2) [2025-04-08 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861457', 'tblTempUsageDetail_20' ) start [2025-04-08 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861457', 'tblTempUsageDetail_20' ) end [2025-04-08 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:02:25] Production.INFO: ==31891== Releasing lock... [2025-04-08 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:02:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-08 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:03:05 [end_date_ymd] => 2025-04-08 10:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:03:05' and `end` < '2025-04-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-04-08 10:03:18] Production.INFO: count ==2196 [2025-04-08 10:03:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:03:05 - End Time 2025-04-08 10:03:05 [2025-04-08 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861462', 'tblTempUsageDetail_20' ) start [2025-04-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861462', 'tblTempUsageDetail_20' ) end [2025-04-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861462', 'tblTempVendorCDR_20' ) start [2025-04-08 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861462', 'tblTempVendorCDR_20' ) end [2025-04-08 10:03:19] Production.INFO: ProcessCDR(1,14861462,1,1,2) [2025-04-08 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861462', 'tblTempUsageDetail_20' ) start [2025-04-08 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861462', 'tblTempUsageDetail_20' ) end [2025-04-08 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:03:25] Production.INFO: ==31967== Releasing lock... [2025-04-08 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:03:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-08 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:04:06 [end_date_ymd] => 2025-04-08 10:04:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:04:06' and `end` < '2025-04-08 10: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-04-08 10:04:19] Production.INFO: count ==2205 [2025-04-08 10:04:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:04:06 - End Time 2025-04-08 10:04:06 [2025-04-08 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861467', 'tblTempUsageDetail_20' ) start [2025-04-08 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861467', 'tblTempUsageDetail_20' ) end [2025-04-08 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861467', 'tblTempVendorCDR_20' ) start [2025-04-08 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861467', 'tblTempVendorCDR_20' ) end [2025-04-08 10:04:20] Production.INFO: ProcessCDR(1,14861467,1,1,2) [2025-04-08 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861467', 'tblTempUsageDetail_20' ) start [2025-04-08 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861467', 'tblTempUsageDetail_20' ) end [2025-04-08 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:04:25] Production.INFO: ==32048== Releasing lock... [2025-04-08 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:04:25] Production.INFO: 44.5 MB #Memory Used# [2025-04-08 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:05:05 [end_date_ymd] => 2025-04-08 10:05:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:05:05' and `end` < '2025-04-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-04-08 10:05:18] Production.INFO: count ==2214 [2025-04-08 10:05:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:05:05 - End Time 2025-04-08 10:05:05 [2025-04-08 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861472', 'tblTempUsageDetail_20' ) start [2025-04-08 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861472', 'tblTempUsageDetail_20' ) end [2025-04-08 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861472', 'tblTempVendorCDR_20' ) start [2025-04-08 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861472', 'tblTempVendorCDR_20' ) end [2025-04-08 10:05:19] Production.INFO: ProcessCDR(1,14861472,1,1,2) [2025-04-08 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861472', 'tblTempUsageDetail_20' ) start [2025-04-08 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861472', 'tblTempUsageDetail_20' ) end [2025-04-08 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:05:25] Production.INFO: ==32121== Releasing lock... [2025-04-08 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:05:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-08 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:06:05 [end_date_ymd] => 2025-04-08 10:06:05 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:06:05' and `end` < '2025-04-08 10: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-04-08 10:06:18] Production.INFO: count ==2216 [2025-04-08 10:06:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:06:05 - End Time 2025-04-08 10:06:05 [2025-04-08 10:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861477', 'tblTempUsageDetail_20' ) start [2025-04-08 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861477', 'tblTempUsageDetail_20' ) end [2025-04-08 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861477', 'tblTempVendorCDR_20' ) start [2025-04-08 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861477', 'tblTempVendorCDR_20' ) end [2025-04-08 10:06:19] Production.INFO: ProcessCDR(1,14861477,1,1,2) [2025-04-08 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861477', 'tblTempUsageDetail_20' ) start [2025-04-08 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861477', 'tblTempUsageDetail_20' ) end [2025-04-08 10:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:06:25] Production.INFO: ==32199== Releasing lock... [2025-04-08 10:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:06:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-08 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:07:05 [end_date_ymd] => 2025-04-08 10:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:07:05' and `end` < '2025-04-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-04-08 10:07:19] Production.INFO: count ==2220 [2025-04-08 10:07:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:07:05 - End Time 2025-04-08 10:07:05 [2025-04-08 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861482', 'tblTempUsageDetail_20' ) start [2025-04-08 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861482', 'tblTempUsageDetail_20' ) end [2025-04-08 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861482', 'tblTempVendorCDR_20' ) start [2025-04-08 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861482', 'tblTempVendorCDR_20' ) end [2025-04-08 10:07:20] Production.INFO: ProcessCDR(1,14861482,1,1,2) [2025-04-08 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861482', 'tblTempUsageDetail_20' ) start [2025-04-08 10:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861482', 'tblTempUsageDetail_20' ) end [2025-04-08 10:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:07:25] Production.INFO: ==32274== Releasing lock... [2025-04-08 10:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:07:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-08 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:08:06 [end_date_ymd] => 2025-04-08 10:08:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:08:06' and `end` < '2025-04-08 10: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-04-08 10:08:19] Production.INFO: count ==2239 [2025-04-08 10:08:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:08:06 - End Time 2025-04-08 10:08:06 [2025-04-08 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861487', 'tblTempUsageDetail_20' ) start [2025-04-08 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861487', 'tblTempUsageDetail_20' ) end [2025-04-08 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861487', 'tblTempVendorCDR_20' ) start [2025-04-08 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861487', 'tblTempVendorCDR_20' ) end [2025-04-08 10:08:20] Production.INFO: ProcessCDR(1,14861487,1,1,2) [2025-04-08 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861487', 'tblTempUsageDetail_20' ) start [2025-04-08 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861487', 'tblTempUsageDetail_20' ) end [2025-04-08 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:08:25] Production.INFO: ==32352== Releasing lock... [2025-04-08 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:08:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-08 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:09:05 [end_date_ymd] => 2025-04-08 10:09:05 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:09:05' and `end` < '2025-04-08 10: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-04-08 10:09:19] Production.INFO: count ==2260 [2025-04-08 10:09:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:09:05 - End Time 2025-04-08 10:09:05 [2025-04-08 10:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861492', 'tblTempUsageDetail_20' ) start [2025-04-08 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861492', 'tblTempUsageDetail_20' ) end [2025-04-08 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861492', 'tblTempVendorCDR_20' ) start [2025-04-08 10:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861492', 'tblTempVendorCDR_20' ) end [2025-04-08 10:09:20] Production.INFO: ProcessCDR(1,14861492,1,1,2) [2025-04-08 10:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861492', 'tblTempUsageDetail_20' ) start [2025-04-08 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861492', 'tblTempUsageDetail_20' ) end [2025-04-08 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:09:25] Production.INFO: ==32427== Releasing lock... [2025-04-08 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:09:25] Production.INFO: 45 MB #Memory Used# [2025-04-08 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:10:06 [end_date_ymd] => 2025-04-08 10:10:06 [RateCDR] => 1 ) [2025-04-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-04-08 07:10:06' and `end` < '2025-04-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-04-08 10:10:20] Production.INFO: count ==2273 [2025-04-08 10:10:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:10:06 - End Time 2025-04-08 10:10:06 [2025-04-08 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861497', 'tblTempUsageDetail_20' ) start [2025-04-08 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861497', 'tblTempUsageDetail_20' ) end [2025-04-08 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861497', 'tblTempVendorCDR_20' ) start [2025-04-08 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861497', 'tblTempVendorCDR_20' ) end [2025-04-08 10:10:20] Production.INFO: ProcessCDR(1,14861497,1,1,2) [2025-04-08 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861497', 'tblTempUsageDetail_20' ) start [2025-04-08 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861497', 'tblTempUsageDetail_20' ) end [2025-04-08 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:10:26] Production.INFO: ==32533== Releasing lock... [2025-04-08 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:10:26] Production.INFO: 45.25 MB #Memory Used# [2025-04-08 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:11:05 [end_date_ymd] => 2025-04-08 10:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:11:05' and `end` < '2025-04-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-04-08 10:11:19] Production.INFO: count ==2414 [2025-04-08 10:11:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:11:05 - End Time 2025-04-08 10:11:05 [2025-04-08 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861503', 'tblTempUsageDetail_20' ) start [2025-04-08 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861503', 'tblTempUsageDetail_20' ) end [2025-04-08 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861503', 'tblTempVendorCDR_20' ) start [2025-04-08 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861503', 'tblTempVendorCDR_20' ) end [2025-04-08 10:11:19] Production.INFO: ProcessCDR(1,14861503,1,1,2) [2025-04-08 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861503', 'tblTempUsageDetail_20' ) start [2025-04-08 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861503', 'tblTempUsageDetail_20' ) end [2025-04-08 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:11:25] Production.INFO: ==32633== Releasing lock... [2025-04-08 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:11:25] Production.INFO: 46.25 MB #Memory Used# [2025-04-08 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:12:06 [end_date_ymd] => 2025-04-08 10:12:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:12:06' and `end` < '2025-04-08 10: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-04-08 10:12:20] Production.INFO: count ==2424 [2025-04-08 10:12:21] Production.ERROR: pbx CDR StartTime 2025-04-08 07:12:06 - End Time 2025-04-08 10:12:06 [2025-04-08 10:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861508', 'tblTempUsageDetail_20' ) start [2025-04-08 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861508', 'tblTempUsageDetail_20' ) end [2025-04-08 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861508', 'tblTempVendorCDR_20' ) start [2025-04-08 10:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861508', 'tblTempVendorCDR_20' ) end [2025-04-08 10:12:21] Production.INFO: ProcessCDR(1,14861508,1,1,2) [2025-04-08 10:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861508', 'tblTempUsageDetail_20' ) start [2025-04-08 10:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861508', 'tblTempUsageDetail_20' ) end [2025-04-08 10:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:12:26] Production.INFO: ==32708== Releasing lock... [2025-04-08 10:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:12:26] Production.INFO: 46.25 MB #Memory Used# [2025-04-08 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:13:05 [end_date_ymd] => 2025-04-08 10:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:13:05' and `end` < '2025-04-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-04-08 10:13:18] Production.INFO: count ==2448 [2025-04-08 10:13:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:13:05 - End Time 2025-04-08 10:13:05 [2025-04-08 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861513', 'tblTempUsageDetail_20' ) start [2025-04-08 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861513', 'tblTempUsageDetail_20' ) end [2025-04-08 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861513', 'tblTempVendorCDR_20' ) start [2025-04-08 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861513', 'tblTempVendorCDR_20' ) end [2025-04-08 10:13:19] Production.INFO: ProcessCDR(1,14861513,1,1,2) [2025-04-08 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861513', 'tblTempUsageDetail_20' ) start [2025-04-08 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861513', 'tblTempUsageDetail_20' ) end [2025-04-08 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:13:25] Production.INFO: ==321== Releasing lock... [2025-04-08 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:13:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-08 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:14:06 [end_date_ymd] => 2025-04-08 10:14:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:14:06' and `end` < '2025-04-08 10: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-04-08 10:14:19] Production.INFO: count ==2462 [2025-04-08 10:14:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:14:06 - End Time 2025-04-08 10:14:06 [2025-04-08 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861518', 'tblTempUsageDetail_20' ) start [2025-04-08 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861518', 'tblTempUsageDetail_20' ) end [2025-04-08 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861518', 'tblTempVendorCDR_20' ) start [2025-04-08 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861518', 'tblTempVendorCDR_20' ) end [2025-04-08 10:14:20] Production.INFO: ProcessCDR(1,14861518,1,1,2) [2025-04-08 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861518', 'tblTempUsageDetail_20' ) start [2025-04-08 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861518', 'tblTempUsageDetail_20' ) end [2025-04-08 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:14:25] Production.INFO: ==413== Releasing lock... [2025-04-08 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:14:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-08 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:15:05 [end_date_ymd] => 2025-04-08 10:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:15:05' and `end` < '2025-04-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-04-08 10:15:18] Production.INFO: count ==2470 [2025-04-08 10:15:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:15:05 - End Time 2025-04-08 10:15:05 [2025-04-08 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861523', 'tblTempUsageDetail_20' ) start [2025-04-08 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861523', 'tblTempUsageDetail_20' ) end [2025-04-08 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861523', 'tblTempVendorCDR_20' ) start [2025-04-08 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861523', 'tblTempVendorCDR_20' ) end [2025-04-08 10:15:19] Production.INFO: ProcessCDR(1,14861523,1,1,2) [2025-04-08 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861523', 'tblTempUsageDetail_20' ) start [2025-04-08 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861523', 'tblTempUsageDetail_20' ) end [2025-04-08 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:15:25] Production.INFO: ==488== Releasing lock... [2025-04-08 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:15:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-08 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:16:05 [end_date_ymd] => 2025-04-08 10:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:16:05' and `end` < '2025-04-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-04-08 10:16:18] Production.INFO: count ==2493 [2025-04-08 10:16:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:16:05 - End Time 2025-04-08 10:16:05 [2025-04-08 10:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861528', 'tblTempUsageDetail_20' ) start [2025-04-08 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861528', 'tblTempUsageDetail_20' ) end [2025-04-08 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861528', 'tblTempVendorCDR_20' ) start [2025-04-08 10:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861528', 'tblTempVendorCDR_20' ) end [2025-04-08 10:16:19] Production.INFO: ProcessCDR(1,14861528,1,1,2) [2025-04-08 10:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861528', 'tblTempUsageDetail_20' ) start [2025-04-08 10:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861528', 'tblTempUsageDetail_20' ) end [2025-04-08 10:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:16:24] Production.INFO: ==564== Releasing lock... [2025-04-08 10:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:16:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-08 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:17:05 [end_date_ymd] => 2025-04-08 10:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:17:05' and `end` < '2025-04-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-04-08 10:17:18] Production.INFO: count ==2507 [2025-04-08 10:17:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:17:05 - End Time 2025-04-08 10:17:05 [2025-04-08 10:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861533', 'tblTempUsageDetail_20' ) start [2025-04-08 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861533', 'tblTempUsageDetail_20' ) end [2025-04-08 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861533', 'tblTempVendorCDR_20' ) start [2025-04-08 10:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861533', 'tblTempVendorCDR_20' ) end [2025-04-08 10:17:19] Production.INFO: ProcessCDR(1,14861533,1,1,2) [2025-04-08 10:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861533', 'tblTempUsageDetail_20' ) start [2025-04-08 10:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861533', 'tblTempUsageDetail_20' ) end [2025-04-08 10:17:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:17:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:17:24] Production.INFO: ==645== Releasing lock... [2025-04-08 10:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:17:24] Production.INFO: 47 MB #Memory Used# [2025-04-08 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:18:05 [end_date_ymd] => 2025-04-08 10:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:18:05' and `end` < '2025-04-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-04-08 10:18:18] Production.INFO: count ==2523 [2025-04-08 10:18:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:18:05 - End Time 2025-04-08 10:18:05 [2025-04-08 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861538', 'tblTempUsageDetail_20' ) start [2025-04-08 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861538', 'tblTempUsageDetail_20' ) end [2025-04-08 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861538', 'tblTempVendorCDR_20' ) start [2025-04-08 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861538', 'tblTempVendorCDR_20' ) end [2025-04-08 10:18:19] Production.INFO: ProcessCDR(1,14861538,1,1,2) [2025-04-08 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861538', 'tblTempUsageDetail_20' ) start [2025-04-08 10:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861538', 'tblTempUsageDetail_20' ) end [2025-04-08 10:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:18:25] Production.INFO: ==751== Releasing lock... [2025-04-08 10:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:18:25] Production.INFO: 47 MB #Memory Used# [2025-04-08 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:19:05 [end_date_ymd] => 2025-04-08 10:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:19:05' and `end` < '2025-04-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-04-08 10:19:18] Production.INFO: count ==2548 [2025-04-08 10:19:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:19:05 - End Time 2025-04-08 10:19:05 [2025-04-08 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861543', 'tblTempUsageDetail_20' ) start [2025-04-08 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861543', 'tblTempUsageDetail_20' ) end [2025-04-08 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861543', 'tblTempVendorCDR_20' ) start [2025-04-08 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861543', 'tblTempVendorCDR_20' ) end [2025-04-08 10:19:19] Production.INFO: ProcessCDR(1,14861543,1,1,2) [2025-04-08 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861543', 'tblTempUsageDetail_20' ) start [2025-04-08 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861543', 'tblTempUsageDetail_20' ) end [2025-04-08 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:19:25] Production.INFO: ==826== Releasing lock... [2025-04-08 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:19:25] Production.INFO: 47.25 MB #Memory Used# [2025-04-08 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:20:06 [end_date_ymd] => 2025-04-08 10:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 07:20:06' and `end` < '2025-04-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-04-08 10:20:19] Production.INFO: count ==2577 [2025-04-08 10:20:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:20:06 - End Time 2025-04-08 10:20:06 [2025-04-08 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861548', 'tblTempUsageDetail_20' ) start [2025-04-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861548', 'tblTempUsageDetail_20' ) end [2025-04-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861548', 'tblTempVendorCDR_20' ) start [2025-04-08 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861548', 'tblTempVendorCDR_20' ) end [2025-04-08 10:20:20] Production.INFO: ProcessCDR(1,14861548,1,1,2) [2025-04-08 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861548', 'tblTempUsageDetail_20' ) start [2025-04-08 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861548', 'tblTempUsageDetail_20' ) end [2025-04-08 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:20:26] Production.INFO: ==902== Releasing lock... [2025-04-08 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:20:26] Production.INFO: 47.5 MB #Memory Used# [2025-04-08 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:21:05 [end_date_ymd] => 2025-04-08 10:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:21:05' and `end` < '2025-04-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-04-08 10:21:19] Production.INFO: count ==2678 [2025-04-08 10:21:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:21:05 - End Time 2025-04-08 10:21:05 [2025-04-08 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861554', 'tblTempUsageDetail_20' ) start [2025-04-08 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861554', 'tblTempUsageDetail_20' ) end [2025-04-08 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861554', 'tblTempVendorCDR_20' ) start [2025-04-08 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861554', 'tblTempVendorCDR_20' ) end [2025-04-08 10:21:20] Production.INFO: ProcessCDR(1,14861554,1,1,2) [2025-04-08 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861554', 'tblTempUsageDetail_20' ) start [2025-04-08 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861554', 'tblTempUsageDetail_20' ) end [2025-04-08 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:21:26] Production.INFO: ==979== Releasing lock... [2025-04-08 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:21:26] Production.INFO: 48.25 MB #Memory Used# [2025-04-08 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:22:06 [end_date_ymd] => 2025-04-08 10:22:06 [RateCDR] => 1 ) [2025-04-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-04-08 07:22:06' and `end` < '2025-04-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-04-08 10:22:19] Production.INFO: count ==2693 [2025-04-08 10:22:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:22:06 - End Time 2025-04-08 10:22:06 [2025-04-08 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861559', 'tblTempUsageDetail_20' ) start [2025-04-08 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861559', 'tblTempUsageDetail_20' ) end [2025-04-08 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861559', 'tblTempVendorCDR_20' ) start [2025-04-08 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861559', 'tblTempVendorCDR_20' ) end [2025-04-08 10:22:20] Production.INFO: ProcessCDR(1,14861559,1,1,2) [2025-04-08 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861559', 'tblTempUsageDetail_20' ) start [2025-04-08 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861559', 'tblTempUsageDetail_20' ) end [2025-04-08 10:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:22:26] Production.INFO: ==1055== Releasing lock... [2025-04-08 10:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:22:26] Production.INFO: 48.25 MB #Memory Used# [2025-04-08 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:23:05 [end_date_ymd] => 2025-04-08 10:23:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:23:05' and `end` < '2025-04-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-04-08 10:23:19] Production.INFO: count ==2713 [2025-04-08 10:23:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:23:05 - End Time 2025-04-08 10:23:05 [2025-04-08 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861564', 'tblTempUsageDetail_20' ) start [2025-04-08 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861564', 'tblTempUsageDetail_20' ) end [2025-04-08 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861564', 'tblTempVendorCDR_20' ) start [2025-04-08 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861564', 'tblTempVendorCDR_20' ) end [2025-04-08 10:23:20] Production.INFO: ProcessCDR(1,14861564,1,1,2) [2025-04-08 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861564', 'tblTempUsageDetail_20' ) start [2025-04-08 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861564', 'tblTempUsageDetail_20' ) end [2025-04-08 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:23:26] Production.INFO: ==1129== Releasing lock... [2025-04-08 10:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:23:26] Production.INFO: 48.5 MB #Memory Used# [2025-04-08 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:24:06 [end_date_ymd] => 2025-04-08 10:24:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:24:06' and `end` < '2025-04-08 10: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-04-08 10:24:20] Production.INFO: count ==2761 [2025-04-08 10:24:21] Production.ERROR: pbx CDR StartTime 2025-04-08 07:24:06 - End Time 2025-04-08 10:24:06 [2025-04-08 10:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861569', 'tblTempUsageDetail_20' ) start [2025-04-08 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861569', 'tblTempUsageDetail_20' ) end [2025-04-08 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861569', 'tblTempVendorCDR_20' ) start [2025-04-08 10:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861569', 'tblTempVendorCDR_20' ) end [2025-04-08 10:24:21] Production.INFO: ProcessCDR(1,14861569,1,1,2) [2025-04-08 10:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861569', 'tblTempUsageDetail_20' ) start [2025-04-08 10:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861569', 'tblTempUsageDetail_20' ) end [2025-04-08 10:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:24:27] Production.INFO: ==1208== Releasing lock... [2025-04-08 10:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:24:27] Production.INFO: 48.75 MB #Memory Used# [2025-04-08 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:25:05 [end_date_ymd] => 2025-04-08 10:25:05 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:25:05' and `end` < '2025-04-08 10: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-04-08 10:25:19] Production.INFO: count ==2791 [2025-04-08 10:25:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:25:05 - End Time 2025-04-08 10:25:05 [2025-04-08 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861574', 'tblTempUsageDetail_20' ) start [2025-04-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861574', 'tblTempUsageDetail_20' ) end [2025-04-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861574', 'tblTempVendorCDR_20' ) start [2025-04-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861574', 'tblTempVendorCDR_20' ) end [2025-04-08 10:25:20] Production.INFO: ProcessCDR(1,14861574,1,1,2) [2025-04-08 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861574', 'tblTempUsageDetail_20' ) start [2025-04-08 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861574', 'tblTempUsageDetail_20' ) end [2025-04-08 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:25:25] Production.INFO: ==1296== Releasing lock... [2025-04-08 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:25:25] Production.INFO: 49 MB #Memory Used# [2025-04-08 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:26:06 [end_date_ymd] => 2025-04-08 10:26:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:26:06' and `end` < '2025-04-08 10: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-04-08 10:26:19] Production.INFO: count ==2797 [2025-04-08 10:26:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:26:06 - End Time 2025-04-08 10:26:06 [2025-04-08 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861579', 'tblTempUsageDetail_20' ) start [2025-04-08 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861579', 'tblTempUsageDetail_20' ) end [2025-04-08 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861579', 'tblTempVendorCDR_20' ) start [2025-04-08 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861579', 'tblTempVendorCDR_20' ) end [2025-04-08 10:26:20] Production.INFO: ProcessCDR(1,14861579,1,1,2) [2025-04-08 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861579', 'tblTempUsageDetail_20' ) start [2025-04-08 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861579', 'tblTempUsageDetail_20' ) end [2025-04-08 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:26:26] Production.INFO: ==1410== Releasing lock... [2025-04-08 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:26:26] Production.INFO: 49 MB #Memory Used# [2025-04-08 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:27:05 [end_date_ymd] => 2025-04-08 10:27:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:27:05' and `end` < '2025-04-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-04-08 10:27:18] Production.INFO: count ==2813 [2025-04-08 10:27:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:27:05 - End Time 2025-04-08 10:27:05 [2025-04-08 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861584', 'tblTempUsageDetail_20' ) start [2025-04-08 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861584', 'tblTempUsageDetail_20' ) end [2025-04-08 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861584', 'tblTempVendorCDR_20' ) start [2025-04-08 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861584', 'tblTempVendorCDR_20' ) end [2025-04-08 10:27:20] Production.INFO: ProcessCDR(1,14861584,1,1,2) [2025-04-08 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861584', 'tblTempUsageDetail_20' ) start [2025-04-08 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861584', 'tblTempUsageDetail_20' ) end [2025-04-08 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:27:25] Production.INFO: ==1486== Releasing lock... [2025-04-08 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:27:25] Production.INFO: 49 MB #Memory Used# [2025-04-08 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:28:06 [end_date_ymd] => 2025-04-08 10:28:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:28:06' and `end` < '2025-04-08 10: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-04-08 10:28:19] Production.INFO: count ==2824 [2025-04-08 10:28:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:28:06 - End Time 2025-04-08 10:28:06 [2025-04-08 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861589', 'tblTempUsageDetail_20' ) start [2025-04-08 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861589', 'tblTempUsageDetail_20' ) end [2025-04-08 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861589', 'tblTempVendorCDR_20' ) start [2025-04-08 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861589', 'tblTempVendorCDR_20' ) end [2025-04-08 10:28:21] Production.INFO: ProcessCDR(1,14861589,1,1,2) [2025-04-08 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861589', 'tblTempUsageDetail_20' ) start [2025-04-08 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861589', 'tblTempUsageDetail_20' ) end [2025-04-08 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:28:26] Production.INFO: ==1595== Releasing lock... [2025-04-08 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:28:26] Production.INFO: 49.25 MB #Memory Used# [2025-04-08 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:29:05 [end_date_ymd] => 2025-04-08 10:29:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:29:05' and `end` < '2025-04-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-04-08 10:29:18] Production.INFO: count ==2837 [2025-04-08 10:29:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:29:05 - End Time 2025-04-08 10:29:05 [2025-04-08 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861594', 'tblTempUsageDetail_20' ) start [2025-04-08 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861594', 'tblTempUsageDetail_20' ) end [2025-04-08 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861594', 'tblTempVendorCDR_20' ) start [2025-04-08 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861594', 'tblTempVendorCDR_20' ) end [2025-04-08 10:29:19] Production.INFO: ProcessCDR(1,14861594,1,1,2) [2025-04-08 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861594', 'tblTempUsageDetail_20' ) start [2025-04-08 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861594', 'tblTempUsageDetail_20' ) end [2025-04-08 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:29:25] Production.INFO: ==1675== Releasing lock... [2025-04-08 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:29:25] Production.INFO: 49.25 MB #Memory Used# [2025-04-08 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:30:06 [end_date_ymd] => 2025-04-08 10:30:06 [RateCDR] => 1 ) [2025-04-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-04-08 07:30:06' and `end` < '2025-04-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-04-08 10:30:20] Production.INFO: count ==2882 [2025-04-08 10:30:21] Production.ERROR: pbx CDR StartTime 2025-04-08 07:30:06 - End Time 2025-04-08 10:30:06 [2025-04-08 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861599', 'tblTempUsageDetail_20' ) start [2025-04-08 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861599', 'tblTempUsageDetail_20' ) end [2025-04-08 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861599', 'tblTempVendorCDR_20' ) start [2025-04-08 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861599', 'tblTempVendorCDR_20' ) end [2025-04-08 10:30:21] Production.INFO: ProcessCDR(1,14861599,1,1,2) [2025-04-08 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861599', 'tblTempUsageDetail_20' ) start [2025-04-08 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861599', 'tblTempUsageDetail_20' ) end [2025-04-08 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:30:26] Production.INFO: ==1751== Releasing lock... [2025-04-08 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:30:26] Production.INFO: 49.5 MB #Memory Used# [2025-04-08 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:31:05 [end_date_ymd] => 2025-04-08 10:31:05 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:31:05' and `end` < '2025-04-08 10: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-04-08 10:31:19] Production.INFO: count ==3000 [2025-04-08 10:31:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:31:05 - End Time 2025-04-08 10:31:05 [2025-04-08 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861605', 'tblTempUsageDetail_20' ) start [2025-04-08 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861605', 'tblTempUsageDetail_20' ) end [2025-04-08 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861605', 'tblTempVendorCDR_20' ) start [2025-04-08 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861605', 'tblTempVendorCDR_20' ) end [2025-04-08 10:31:20] Production.INFO: ProcessCDR(1,14861605,1,1,2) [2025-04-08 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861605', 'tblTempUsageDetail_20' ) start [2025-04-08 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861605', 'tblTempUsageDetail_20' ) end [2025-04-08 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:31:25] Production.INFO: ==1839== Releasing lock... [2025-04-08 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:31:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-08 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:32:05 [end_date_ymd] => 2025-04-08 10:32:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:32:05' and `end` < '2025-04-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-04-08 10:32:19] Production.INFO: count ==3019 [2025-04-08 10:32:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:32:05 - End Time 2025-04-08 10:32:05 [2025-04-08 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861610', 'tblTempUsageDetail_20' ) start [2025-04-08 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861610', 'tblTempUsageDetail_20' ) end [2025-04-08 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861610', 'tblTempVendorCDR_20' ) start [2025-04-08 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861610', 'tblTempVendorCDR_20' ) end [2025-04-08 10:32:20] Production.INFO: ProcessCDR(1,14861610,1,1,2) [2025-04-08 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861610', 'tblTempUsageDetail_20' ) start [2025-04-08 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861610', 'tblTempUsageDetail_20' ) end [2025-04-08 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:32:27] Production.INFO: ==1911== Releasing lock... [2025-04-08 10:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:32:27] Production.INFO: 50.5 MB #Memory Used# [2025-04-08 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:33:05 [end_date_ymd] => 2025-04-08 10:33:05 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:33:05' and `end` < '2025-04-08 10: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-04-08 10:33:19] Production.INFO: count ==3045 [2025-04-08 10:33:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:33:05 - End Time 2025-04-08 10:33:05 [2025-04-08 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861615', 'tblTempUsageDetail_20' ) start [2025-04-08 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861615', 'tblTempUsageDetail_20' ) end [2025-04-08 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861615', 'tblTempVendorCDR_20' ) start [2025-04-08 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861615', 'tblTempVendorCDR_20' ) end [2025-04-08 10:33:20] Production.INFO: ProcessCDR(1,14861615,1,1,2) [2025-04-08 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861615', 'tblTempUsageDetail_20' ) start [2025-04-08 10:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861615', 'tblTempUsageDetail_20' ) end [2025-04-08 10:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:33:26] Production.INFO: ==1985== Releasing lock... [2025-04-08 10:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:33:26] Production.INFO: 50.75 MB #Memory Used# [2025-04-08 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:34:05 [end_date_ymd] => 2025-04-08 10:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:34:05' and `end` < '2025-04-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-04-08 10:34:19] Production.INFO: count ==3055 [2025-04-08 10:34:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:34:05 - End Time 2025-04-08 10:34:05 [2025-04-08 10:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861620', 'tblTempUsageDetail_20' ) start [2025-04-08 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861620', 'tblTempUsageDetail_20' ) end [2025-04-08 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861620', 'tblTempVendorCDR_20' ) start [2025-04-08 10:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861620', 'tblTempVendorCDR_20' ) end [2025-04-08 10:34:20] Production.INFO: ProcessCDR(1,14861620,1,1,2) [2025-04-08 10:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861620', 'tblTempUsageDetail_20' ) start [2025-04-08 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861620', 'tblTempUsageDetail_20' ) end [2025-04-08 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:34:25] Production.INFO: ==2062== Releasing lock... [2025-04-08 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:34:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-08 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:35:05 [end_date_ymd] => 2025-04-08 10:35:05 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:35:05' and `end` < '2025-04-08 10: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-04-08 10:35:19] Production.INFO: count ==3077 [2025-04-08 10:35:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:35:05 - End Time 2025-04-08 10:35:05 [2025-04-08 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861625', 'tblTempUsageDetail_20' ) start [2025-04-08 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861625', 'tblTempUsageDetail_20' ) end [2025-04-08 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861625', 'tblTempVendorCDR_20' ) start [2025-04-08 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861625', 'tblTempVendorCDR_20' ) end [2025-04-08 10:35:20] Production.INFO: ProcessCDR(1,14861625,1,1,2) [2025-04-08 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861625', 'tblTempUsageDetail_20' ) start [2025-04-08 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861625', 'tblTempUsageDetail_20' ) end [2025-04-08 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:35:25] Production.INFO: ==2137== Releasing lock... [2025-04-08 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:35:25] Production.INFO: 51 MB #Memory Used# [2025-04-08 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:36:05 [end_date_ymd] => 2025-04-08 10:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:36:05' and `end` < '2025-04-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-04-08 10:36:18] Production.INFO: count ==3088 [2025-04-08 10:36:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:36:05 - End Time 2025-04-08 10:36:05 [2025-04-08 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861630', 'tblTempUsageDetail_20' ) start [2025-04-08 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861630', 'tblTempUsageDetail_20' ) end [2025-04-08 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861630', 'tblTempVendorCDR_20' ) start [2025-04-08 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861630', 'tblTempVendorCDR_20' ) end [2025-04-08 10:36:19] Production.INFO: ProcessCDR(1,14861630,1,1,2) [2025-04-08 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861630', 'tblTempUsageDetail_20' ) start [2025-04-08 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861630', 'tblTempUsageDetail_20' ) end [2025-04-08 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:36:25] Production.INFO: ==2209== Releasing lock... [2025-04-08 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:36:25] Production.INFO: 51 MB #Memory Used# [2025-04-08 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:37:05 [end_date_ymd] => 2025-04-08 10:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:37:05' and `end` < '2025-04-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-04-08 10:37:18] Production.INFO: count ==3095 [2025-04-08 10:37:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:37:05 - End Time 2025-04-08 10:37:05 [2025-04-08 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861635', 'tblTempUsageDetail_20' ) start [2025-04-08 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861635', 'tblTempUsageDetail_20' ) end [2025-04-08 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861635', 'tblTempVendorCDR_20' ) start [2025-04-08 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861635', 'tblTempVendorCDR_20' ) end [2025-04-08 10:37:20] Production.INFO: ProcessCDR(1,14861635,1,1,2) [2025-04-08 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861635', 'tblTempUsageDetail_20' ) start [2025-04-08 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861635', 'tblTempUsageDetail_20' ) end [2025-04-08 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:37:25] Production.INFO: ==2293== Releasing lock... [2025-04-08 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:37:25] Production.INFO: 51 MB #Memory Used# [2025-04-08 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:38:05 [end_date_ymd] => 2025-04-08 10:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:38:05' and `end` < '2025-04-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-04-08 10:38:18] Production.INFO: count ==3098 [2025-04-08 10:38:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:38:05 - End Time 2025-04-08 10:38:05 [2025-04-08 10:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861640', 'tblTempUsageDetail_20' ) start [2025-04-08 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861640', 'tblTempUsageDetail_20' ) end [2025-04-08 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861640', 'tblTempVendorCDR_20' ) start [2025-04-08 10:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861640', 'tblTempVendorCDR_20' ) end [2025-04-08 10:38:20] Production.INFO: ProcessCDR(1,14861640,1,1,2) [2025-04-08 10:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861640', 'tblTempUsageDetail_20' ) start [2025-04-08 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861640', 'tblTempUsageDetail_20' ) end [2025-04-08 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:38:25] Production.INFO: ==2368== Releasing lock... [2025-04-08 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:38:25] Production.INFO: 51 MB #Memory Used# [2025-04-08 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:39:05 [end_date_ymd] => 2025-04-08 10:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:39:05' and `end` < '2025-04-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-04-08 10:39:19] Production.INFO: count ==3104 [2025-04-08 10:39:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:39:05 - End Time 2025-04-08 10:39:05 [2025-04-08 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861645', 'tblTempUsageDetail_20' ) start [2025-04-08 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861645', 'tblTempUsageDetail_20' ) end [2025-04-08 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861645', 'tblTempVendorCDR_20' ) start [2025-04-08 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861645', 'tblTempVendorCDR_20' ) end [2025-04-08 10:39:20] Production.INFO: ProcessCDR(1,14861645,1,1,2) [2025-04-08 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861645', 'tblTempUsageDetail_20' ) start [2025-04-08 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861645', 'tblTempUsageDetail_20' ) end [2025-04-08 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:39:25] Production.INFO: ==2452== Releasing lock... [2025-04-08 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:39:25] Production.INFO: 51.25 MB #Memory Used# [2025-04-08 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:40:06 [end_date_ymd] => 2025-04-08 10:40:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:40:06' and `end` < '2025-04-08 10: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-04-08 10:40:19] Production.INFO: count ==3115 [2025-04-08 10:40:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:40:06 - End Time 2025-04-08 10:40:06 [2025-04-08 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861650', 'tblTempUsageDetail_20' ) start [2025-04-08 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861650', 'tblTempUsageDetail_20' ) end [2025-04-08 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861650', 'tblTempVendorCDR_20' ) start [2025-04-08 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861650', 'tblTempVendorCDR_20' ) end [2025-04-08 10:40:21] Production.INFO: ProcessCDR(1,14861650,1,1,2) [2025-04-08 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861650', 'tblTempUsageDetail_20' ) start [2025-04-08 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861650', 'tblTempUsageDetail_20' ) end [2025-04-08 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:40:26] Production.INFO: ==2532== Releasing lock... [2025-04-08 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:40:26] Production.INFO: 51.25 MB #Memory Used# [2025-04-08 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:41:05 [end_date_ymd] => 2025-04-08 10:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:41:05' and `end` < '2025-04-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-04-08 10:41:18] Production.INFO: count ==3188 [2025-04-08 10:41:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:41:05 - End Time 2025-04-08 10:41:05 [2025-04-08 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861656', 'tblTempUsageDetail_20' ) start [2025-04-08 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861656', 'tblTempUsageDetail_20' ) end [2025-04-08 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861656', 'tblTempVendorCDR_20' ) start [2025-04-08 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861656', 'tblTempVendorCDR_20' ) end [2025-04-08 10:41:20] Production.INFO: ProcessCDR(1,14861656,1,1,2) [2025-04-08 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861656', 'tblTempUsageDetail_20' ) start [2025-04-08 10:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861656', 'tblTempUsageDetail_20' ) end [2025-04-08 10:41:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:41:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:41:24] Production.INFO: ==2660== Releasing lock... [2025-04-08 10:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:41:24] Production.INFO: 53.25 MB #Memory Used# [2025-04-08 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:42:05 [end_date_ymd] => 2025-04-08 10:42:05 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:42:05' and `end` < '2025-04-08 10: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-04-08 10:42:18] Production.INFO: count ==3190 [2025-04-08 10:42:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:42:05 - End Time 2025-04-08 10:42:05 [2025-04-08 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861661', 'tblTempUsageDetail_20' ) start [2025-04-08 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861661', 'tblTempUsageDetail_20' ) end [2025-04-08 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861661', 'tblTempVendorCDR_20' ) start [2025-04-08 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861661', 'tblTempVendorCDR_20' ) end [2025-04-08 10:42:20] Production.INFO: ProcessCDR(1,14861661,1,1,2) [2025-04-08 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861661', 'tblTempUsageDetail_20' ) start [2025-04-08 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861661', 'tblTempUsageDetail_20' ) end [2025-04-08 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:42:25] Production.INFO: ==2733== Releasing lock... [2025-04-08 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:42:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-08 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:43:05 [end_date_ymd] => 2025-04-08 10:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:43:05' and `end` < '2025-04-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-04-08 10:43:19] Production.INFO: count ==3204 [2025-04-08 10:43:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:43:05 - End Time 2025-04-08 10:43:05 [2025-04-08 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861666', 'tblTempUsageDetail_20' ) start [2025-04-08 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861666', 'tblTempUsageDetail_20' ) end [2025-04-08 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861666', 'tblTempVendorCDR_20' ) start [2025-04-08 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861666', 'tblTempVendorCDR_20' ) end [2025-04-08 10:43:20] Production.INFO: ProcessCDR(1,14861666,1,1,2) [2025-04-08 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861666', 'tblTempUsageDetail_20' ) start [2025-04-08 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861666', 'tblTempUsageDetail_20' ) end [2025-04-08 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:43:25] Production.INFO: ==2818== Releasing lock... [2025-04-08 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:43:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-08 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:44:06 [end_date_ymd] => 2025-04-08 10:44:06 [RateCDR] => 1 ) [2025-04-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-04-08 07:44:06' and `end` < '2025-04-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-04-08 10:44:20] Production.INFO: count ==3236 [2025-04-08 10:44:21] Production.ERROR: pbx CDR StartTime 2025-04-08 07:44:06 - End Time 2025-04-08 10:44:06 [2025-04-08 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861671', 'tblTempUsageDetail_20' ) start [2025-04-08 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861671', 'tblTempUsageDetail_20' ) end [2025-04-08 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861671', 'tblTempVendorCDR_20' ) start [2025-04-08 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861671', 'tblTempVendorCDR_20' ) end [2025-04-08 10:44:21] Production.INFO: ProcessCDR(1,14861671,1,1,2) [2025-04-08 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861671', 'tblTempUsageDetail_20' ) start [2025-04-08 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861671', 'tblTempUsageDetail_20' ) end [2025-04-08 10:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:44:27] Production.INFO: ==2897== Releasing lock... [2025-04-08 10:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:44:27] Production.INFO: 52.25 MB #Memory Used# [2025-04-08 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:45:05 [end_date_ymd] => 2025-04-08 10:45:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:45:05' and `end` < '2025-04-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-04-08 10:45:19] Production.INFO: count ==3254 [2025-04-08 10:45:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:45:05 - End Time 2025-04-08 10:45:05 [2025-04-08 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861676', 'tblTempUsageDetail_20' ) start [2025-04-08 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861676', 'tblTempUsageDetail_20' ) end [2025-04-08 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861676', 'tblTempVendorCDR_20' ) start [2025-04-08 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861676', 'tblTempVendorCDR_20' ) end [2025-04-08 10:45:20] Production.INFO: ProcessCDR(1,14861676,1,1,2) [2025-04-08 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861676', 'tblTempUsageDetail_20' ) start [2025-04-08 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861676', 'tblTempUsageDetail_20' ) end [2025-04-08 10:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:45:26] Production.INFO: ==2981== Releasing lock... [2025-04-08 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:45:26] Production.INFO: 53.25 MB #Memory Used# [2025-04-08 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:46:06 [end_date_ymd] => 2025-04-08 10:46:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:46:06' and `end` < '2025-04-08 10: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-04-08 10:46:20] Production.INFO: count ==3259 [2025-04-08 10:46:21] Production.ERROR: pbx CDR StartTime 2025-04-08 07:46:06 - End Time 2025-04-08 10:46:06 [2025-04-08 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861681', 'tblTempUsageDetail_20' ) start [2025-04-08 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861681', 'tblTempUsageDetail_20' ) end [2025-04-08 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861681', 'tblTempVendorCDR_20' ) start [2025-04-08 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861681', 'tblTempVendorCDR_20' ) end [2025-04-08 10:46:21] Production.INFO: ProcessCDR(1,14861681,1,1,2) [2025-04-08 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861681', 'tblTempUsageDetail_20' ) start [2025-04-08 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861681', 'tblTempUsageDetail_20' ) end [2025-04-08 10:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:46:27] Production.INFO: ==3057== Releasing lock... [2025-04-08 10:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:46:27] Production.INFO: 52.25 MB #Memory Used# [2025-04-08 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:47:06 [end_date_ymd] => 2025-04-08 10:47:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:47:06' and `end` < '2025-04-08 10: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-04-08 10:47:19] Production.INFO: count ==3263 [2025-04-08 10:47:21] Production.ERROR: pbx CDR StartTime 2025-04-08 07:47:06 - End Time 2025-04-08 10:47:06 [2025-04-08 10:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861686', 'tblTempUsageDetail_20' ) start [2025-04-08 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861686', 'tblTempUsageDetail_20' ) end [2025-04-08 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861686', 'tblTempVendorCDR_20' ) start [2025-04-08 10:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861686', 'tblTempVendorCDR_20' ) end [2025-04-08 10:47:21] Production.INFO: ProcessCDR(1,14861686,1,1,2) [2025-04-08 10:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861686', 'tblTempUsageDetail_20' ) start [2025-04-08 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861686', 'tblTempUsageDetail_20' ) end [2025-04-08 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:47:26] Production.INFO: ==3143== Releasing lock... [2025-04-08 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:47:26] Production.INFO: 52.25 MB #Memory Used# [2025-04-08 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:48:06 [end_date_ymd] => 2025-04-08 10:48:06 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:48:06' and `end` < '2025-04-08 10: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-04-08 10:48:19] Production.INFO: count ==3272 [2025-04-08 10:48:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:48:06 - End Time 2025-04-08 10:48:06 [2025-04-08 10:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861691', 'tblTempUsageDetail_20' ) start [2025-04-08 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861691', 'tblTempUsageDetail_20' ) end [2025-04-08 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861691', 'tblTempVendorCDR_20' ) start [2025-04-08 10:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861691', 'tblTempVendorCDR_20' ) end [2025-04-08 10:48:20] Production.INFO: ProcessCDR(1,14861691,1,1,2) [2025-04-08 10:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861691', 'tblTempUsageDetail_20' ) start [2025-04-08 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861691', 'tblTempUsageDetail_20' ) end [2025-04-08 10:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:48:26] Production.INFO: ==3223== Releasing lock... [2025-04-08 10:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:48:26] Production.INFO: 52.5 MB #Memory Used# [2025-04-08 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:49:05 [end_date_ymd] => 2025-04-08 10:49:05 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:49:05' and `end` < '2025-04-08 10: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-04-08 10:49:19] Production.INFO: count ==3275 [2025-04-08 10:49:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:49:05 - End Time 2025-04-08 10:49:05 [2025-04-08 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861696', 'tblTempUsageDetail_20' ) start [2025-04-08 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861696', 'tblTempUsageDetail_20' ) end [2025-04-08 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861696', 'tblTempVendorCDR_20' ) start [2025-04-08 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861696', 'tblTempVendorCDR_20' ) end [2025-04-08 10:49:20] Production.INFO: ProcessCDR(1,14861696,1,1,2) [2025-04-08 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861696', 'tblTempUsageDetail_20' ) start [2025-04-08 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861696', 'tblTempUsageDetail_20' ) end [2025-04-08 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:49:25] Production.INFO: ==3302== Releasing lock... [2025-04-08 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:49:25] Production.INFO: 52.75 MB #Memory Used# [2025-04-08 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:50:06 [end_date_ymd] => 2025-04-08 10:50:06 [RateCDR] => 1 ) [2025-04-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-04-08 07:50:06' and `end` < '2025-04-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-04-08 10:50:21] Production.INFO: count ==3291 [2025-04-08 10:50:22] Production.ERROR: pbx CDR StartTime 2025-04-08 07:50:06 - End Time 2025-04-08 10:50:06 [2025-04-08 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861701', 'tblTempUsageDetail_20' ) start [2025-04-08 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861701', 'tblTempUsageDetail_20' ) end [2025-04-08 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861701', 'tblTempVendorCDR_20' ) start [2025-04-08 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861701', 'tblTempVendorCDR_20' ) end [2025-04-08 10:50:22] Production.INFO: ProcessCDR(1,14861701,1,1,2) [2025-04-08 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861701', 'tblTempUsageDetail_20' ) start [2025-04-08 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861701', 'tblTempUsageDetail_20' ) end [2025-04-08 10:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:50:28] Production.INFO: ==3391== Releasing lock... [2025-04-08 10:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:50:28] Production.INFO: 52.5 MB #Memory Used# [2025-04-08 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:51:05 [end_date_ymd] => 2025-04-08 10:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:51:05' and `end` < '2025-04-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-04-08 10:51:18] Production.INFO: count ==3376 [2025-04-08 10:51:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:51:05 - End Time 2025-04-08 10:51:05 [2025-04-08 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861707', 'tblTempUsageDetail_20' ) start [2025-04-08 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861707', 'tblTempUsageDetail_20' ) end [2025-04-08 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861707', 'tblTempVendorCDR_20' ) start [2025-04-08 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861707', 'tblTempVendorCDR_20' ) end [2025-04-08 10:51:20] Production.INFO: ProcessCDR(1,14861707,1,1,2) [2025-04-08 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861707', 'tblTempUsageDetail_20' ) start [2025-04-08 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861707', 'tblTempUsageDetail_20' ) end [2025-04-08 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:51:25] Production.INFO: ==3470== Releasing lock... [2025-04-08 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:51:25] Production.INFO: 53.25 MB #Memory Used# [2025-04-08 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:52:05 [end_date_ymd] => 2025-04-08 10:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:52:05' and `end` < '2025-04-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-04-08 10:52:19] Production.INFO: count ==3414 [2025-04-08 10:52:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:52:05 - End Time 2025-04-08 10:52:05 [2025-04-08 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861712', 'tblTempUsageDetail_20' ) start [2025-04-08 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861712', 'tblTempUsageDetail_20' ) end [2025-04-08 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861712', 'tblTempVendorCDR_20' ) start [2025-04-08 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861712', 'tblTempVendorCDR_20' ) end [2025-04-08 10:52:20] Production.INFO: ProcessCDR(1,14861712,1,1,2) [2025-04-08 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861712', 'tblTempUsageDetail_20' ) start [2025-04-08 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861712', 'tblTempUsageDetail_20' ) end [2025-04-08 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:52:25] Production.INFO: ==3545== Releasing lock... [2025-04-08 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:52:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-08 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:53:05 [end_date_ymd] => 2025-04-08 10:53:05 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:53:05' and `end` < '2025-04-08 10: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-04-08 10:53:18] Production.INFO: count ==3421 [2025-04-08 10:53:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:53:05 - End Time 2025-04-08 10:53:05 [2025-04-08 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861717', 'tblTempUsageDetail_20' ) start [2025-04-08 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861717', 'tblTempUsageDetail_20' ) end [2025-04-08 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861717', 'tblTempVendorCDR_20' ) start [2025-04-08 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861717', 'tblTempVendorCDR_20' ) end [2025-04-08 10:53:20] Production.INFO: ProcessCDR(1,14861717,1,1,2) [2025-04-08 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861717', 'tblTempUsageDetail_20' ) start [2025-04-08 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861717', 'tblTempUsageDetail_20' ) end [2025-04-08 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:53:25] Production.INFO: ==3626== Releasing lock... [2025-04-08 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:53:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-08 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:54:05 [end_date_ymd] => 2025-04-08 10:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:54:05' and `end` < '2025-04-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-04-08 10:54:20] Production.INFO: count ==3436 [2025-04-08 10:54:21] Production.ERROR: pbx CDR StartTime 2025-04-08 07:54:05 - End Time 2025-04-08 10:54:05 [2025-04-08 10:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861722', 'tblTempUsageDetail_20' ) start [2025-04-08 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861722', 'tblTempUsageDetail_20' ) end [2025-04-08 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861722', 'tblTempVendorCDR_20' ) start [2025-04-08 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861722', 'tblTempVendorCDR_20' ) end [2025-04-08 10:54:21] Production.INFO: ProcessCDR(1,14861722,1,1,2) [2025-04-08 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861722', 'tblTempUsageDetail_20' ) start [2025-04-08 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861722', 'tblTempUsageDetail_20' ) end [2025-04-08 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:54:26] Production.INFO: ==3712== Releasing lock... [2025-04-08 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:54:26] Production.INFO: 54.25 MB #Memory Used# [2025-04-08 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:55:05 [end_date_ymd] => 2025-04-08 10:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:55:05' and `end` < '2025-04-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-04-08 10:55:19] Production.INFO: count ==3446 [2025-04-08 10:55:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:55:05 - End Time 2025-04-08 10:55:05 [2025-04-08 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861727', 'tblTempUsageDetail_20' ) start [2025-04-08 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861727', 'tblTempUsageDetail_20' ) end [2025-04-08 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861727', 'tblTempVendorCDR_20' ) start [2025-04-08 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861727', 'tblTempVendorCDR_20' ) end [2025-04-08 10:55:20] Production.INFO: ProcessCDR(1,14861727,1,1,2) [2025-04-08 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861727', 'tblTempUsageDetail_20' ) start [2025-04-08 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861727', 'tblTempUsageDetail_20' ) end [2025-04-08 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:55:25] Production.INFO: ==3795== Releasing lock... [2025-04-08 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:55:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-08 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:56:05 [end_date_ymd] => 2025-04-08 10:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:56:05' and `end` < '2025-04-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-04-08 10:56:19] Production.INFO: count ==3472 [2025-04-08 10:56:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:56:05 - End Time 2025-04-08 10:56:05 [2025-04-08 10:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861732', 'tblTempUsageDetail_20' ) start [2025-04-08 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861732', 'tblTempUsageDetail_20' ) end [2025-04-08 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861732', 'tblTempVendorCDR_20' ) start [2025-04-08 10:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861732', 'tblTempVendorCDR_20' ) end [2025-04-08 10:56:20] Production.INFO: ProcessCDR(1,14861732,1,1,2) [2025-04-08 10:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861732', 'tblTempUsageDetail_20' ) start [2025-04-08 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861732', 'tblTempUsageDetail_20' ) end [2025-04-08 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:56:25] Production.INFO: ==3879== Releasing lock... [2025-04-08 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:56:25] Production.INFO: 54 MB #Memory Used# [2025-04-08 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:57:05 [end_date_ymd] => 2025-04-08 10:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:57:05' and `end` < '2025-04-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-04-08 10:57:19] Production.INFO: count ==3475 [2025-04-08 10:57:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:57:05 - End Time 2025-04-08 10:57:05 [2025-04-08 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861737', 'tblTempUsageDetail_20' ) start [2025-04-08 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861737', 'tblTempUsageDetail_20' ) end [2025-04-08 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861737', 'tblTempVendorCDR_20' ) start [2025-04-08 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861737', 'tblTempVendorCDR_20' ) end [2025-04-08 10:57:20] Production.INFO: ProcessCDR(1,14861737,1,1,2) [2025-04-08 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861737', 'tblTempUsageDetail_20' ) start [2025-04-08 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861737', 'tblTempUsageDetail_20' ) end [2025-04-08 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:57:25] Production.INFO: ==3998== Releasing lock... [2025-04-08 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:57:25] Production.INFO: 54.25 MB #Memory Used# [2025-04-08 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:58:05 [end_date_ymd] => 2025-04-08 10:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 07:58:05' and `end` < '2025-04-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-04-08 10:58:19] Production.INFO: count ==3485 [2025-04-08 10:58:20] Production.ERROR: pbx CDR StartTime 2025-04-08 07:58:05 - End Time 2025-04-08 10:58:05 [2025-04-08 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861742', 'tblTempUsageDetail_20' ) start [2025-04-08 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861742', 'tblTempUsageDetail_20' ) end [2025-04-08 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861742', 'tblTempVendorCDR_20' ) start [2025-04-08 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861742', 'tblTempVendorCDR_20' ) end [2025-04-08 10:58:20] Production.INFO: ProcessCDR(1,14861742,1,1,2) [2025-04-08 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861742', 'tblTempUsageDetail_20' ) start [2025-04-08 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861742', 'tblTempUsageDetail_20' ) end [2025-04-08 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:58:25] Production.INFO: ==4076== Releasing lock... [2025-04-08 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:58:25] Production.INFO: 54 MB #Memory Used# [2025-04-08 10:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 07:59:04 [end_date_ymd] => 2025-04-08 10:59:04 [RateCDR] => 1 ) [2025-04-08 10: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-04-08 07:59:04' and `end` < '2025-04-08 10: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-04-08 10:59:18] Production.INFO: count ==3490 [2025-04-08 10:59:19] Production.ERROR: pbx CDR StartTime 2025-04-08 07:59:04 - End Time 2025-04-08 10:59:04 [2025-04-08 10:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 10:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861747', 'tblTempUsageDetail_20' ) start [2025-04-08 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861747', 'tblTempUsageDetail_20' ) end [2025-04-08 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861747', 'tblTempVendorCDR_20' ) start [2025-04-08 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861747', 'tblTempVendorCDR_20' ) end [2025-04-08 10:59:20] Production.INFO: ProcessCDR(1,14861747,1,1,2) [2025-04-08 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 10:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861747', 'tblTempUsageDetail_20' ) start [2025-04-08 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861747', 'tblTempUsageDetail_20' ) end [2025-04-08 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 10:59:25] Production.INFO: ==4153== Releasing lock... [2025-04-08 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 10:59:25] Production.INFO: 54 MB #Memory Used# [2025-04-08 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:00:06 [end_date_ymd] => 2025-04-08 11:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 08:00:06' and `end` < '2025-04-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-04-08 11:00:20] Production.INFO: count ==3537 [2025-04-08 11:00:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:00:06 - End Time 2025-04-08 11:00:06 [2025-04-08 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861752', 'tblTempUsageDetail_20' ) start [2025-04-08 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861752', 'tblTempUsageDetail_20' ) end [2025-04-08 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861752', 'tblTempVendorCDR_20' ) start [2025-04-08 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861752', 'tblTempVendorCDR_20' ) end [2025-04-08 11:00:21] Production.INFO: ProcessCDR(1,14861752,1,1,2) [2025-04-08 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861752', 'tblTempUsageDetail_20' ) start [2025-04-08 11:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861752', 'tblTempUsageDetail_20' ) end [2025-04-08 11:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:00:27] Production.INFO: ==4241== Releasing lock... [2025-04-08 11:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:00:27] Production.INFO: 55 MB #Memory Used# [2025-04-08 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:01:06 [end_date_ymd] => 2025-04-08 11:01:06 [RateCDR] => 1 ) [2025-04-08 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 08:01:06' and `end` < '2025-04-08 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 11:01:19] Production.INFO: count ==3658 [2025-04-08 11:01:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:01:06 - End Time 2025-04-08 11:01:06 [2025-04-08 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861758', 'tblTempUsageDetail_20' ) start [2025-04-08 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861758', 'tblTempUsageDetail_20' ) end [2025-04-08 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861758', 'tblTempVendorCDR_20' ) start [2025-04-08 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861758', 'tblTempVendorCDR_20' ) end [2025-04-08 11:01:21] Production.INFO: ProcessCDR(1,14861758,1,1,2) [2025-04-08 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861758', 'tblTempUsageDetail_20' ) start [2025-04-08 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861758', 'tblTempUsageDetail_20' ) end [2025-04-08 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:01:26] Production.INFO: ==4341== Releasing lock... [2025-04-08 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:01:26] Production.INFO: 55.25 MB #Memory Used# [2025-04-08 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:02:05 [end_date_ymd] => 2025-04-08 11:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:02:05' and `end` < '2025-04-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-04-08 11:02:19] Production.INFO: count ==3676 [2025-04-08 11:02:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:02:05 - End Time 2025-04-08 11:02:05 [2025-04-08 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861763', 'tblTempUsageDetail_20' ) start [2025-04-08 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861763', 'tblTempUsageDetail_20' ) end [2025-04-08 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861763', 'tblTempVendorCDR_20' ) start [2025-04-08 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861763', 'tblTempVendorCDR_20' ) end [2025-04-08 11:02:21] Production.INFO: ProcessCDR(1,14861763,1,1,2) [2025-04-08 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861763', 'tblTempUsageDetail_20' ) start [2025-04-08 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861763', 'tblTempUsageDetail_20' ) end [2025-04-08 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:02:26] Production.INFO: ==4504== Releasing lock... [2025-04-08 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:02:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-08 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:03:06 [end_date_ymd] => 2025-04-08 11:03:06 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:03:06' and `end` < '2025-04-08 11: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-04-08 11:03:19] Production.INFO: count ==3688 [2025-04-08 11:03:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:03:06 - End Time 2025-04-08 11:03:06 [2025-04-08 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861768', 'tblTempUsageDetail_20' ) start [2025-04-08 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861768', 'tblTempUsageDetail_20' ) end [2025-04-08 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861768', 'tblTempVendorCDR_20' ) start [2025-04-08 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861768', 'tblTempVendorCDR_20' ) end [2025-04-08 11:03:21] Production.INFO: ProcessCDR(1,14861768,1,1,2) [2025-04-08 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861768', 'tblTempUsageDetail_20' ) start [2025-04-08 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861768', 'tblTempUsageDetail_20' ) end [2025-04-08 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:03:26] Production.INFO: ==4588== Releasing lock... [2025-04-08 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:03:26] Production.INFO: 55.5 MB #Memory Used# [2025-04-08 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:04:05 [end_date_ymd] => 2025-04-08 11:04:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:04:05' and `end` < '2025-04-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-04-08 11:04:19] Production.INFO: count ==3694 [2025-04-08 11:04:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:04:05 - End Time 2025-04-08 11:04:05 [2025-04-08 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861773', 'tblTempUsageDetail_20' ) start [2025-04-08 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861773', 'tblTempUsageDetail_20' ) end [2025-04-08 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861773', 'tblTempVendorCDR_20' ) start [2025-04-08 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861773', 'tblTempVendorCDR_20' ) end [2025-04-08 11:04:20] Production.INFO: ProcessCDR(1,14861773,1,1,2) [2025-04-08 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861773', 'tblTempUsageDetail_20' ) start [2025-04-08 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861773', 'tblTempUsageDetail_20' ) end [2025-04-08 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:04:26] Production.INFO: ==4663== Releasing lock... [2025-04-08 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:04:26] Production.INFO: 56 MB #Memory Used# [2025-04-08 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:05:06 [end_date_ymd] => 2025-04-08 11:05:06 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:05:06' and `end` < '2025-04-08 11: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-04-08 11:05:19] Production.INFO: count ==3705 [2025-04-08 11:05:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:05:06 - End Time 2025-04-08 11:05:06 [2025-04-08 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861778', 'tblTempUsageDetail_20' ) start [2025-04-08 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861778', 'tblTempUsageDetail_20' ) end [2025-04-08 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861778', 'tblTempVendorCDR_20' ) start [2025-04-08 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861778', 'tblTempVendorCDR_20' ) end [2025-04-08 11:05:21] Production.INFO: ProcessCDR(1,14861778,1,1,2) [2025-04-08 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861778', 'tblTempUsageDetail_20' ) start [2025-04-08 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861778', 'tblTempUsageDetail_20' ) end [2025-04-08 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:05:26] Production.INFO: ==4830== Releasing lock... [2025-04-08 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:05:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-08 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:06:06 [end_date_ymd] => 2025-04-08 11:06:06 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:06:06' and `end` < '2025-04-08 11: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-04-08 11:06:20] Production.INFO: count ==3714 [2025-04-08 11:06:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:06:06 - End Time 2025-04-08 11:06:06 [2025-04-08 11:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861783', 'tblTempUsageDetail_20' ) start [2025-04-08 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861783', 'tblTempUsageDetail_20' ) end [2025-04-08 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861783', 'tblTempVendorCDR_20' ) start [2025-04-08 11:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861783', 'tblTempVendorCDR_20' ) end [2025-04-08 11:06:21] Production.INFO: ProcessCDR(1,14861783,1,1,2) [2025-04-08 11:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861783', 'tblTempUsageDetail_20' ) start [2025-04-08 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861783', 'tblTempUsageDetail_20' ) end [2025-04-08 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:06:26] Production.INFO: ==4904== Releasing lock... [2025-04-08 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:06:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-08 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:07:05 [end_date_ymd] => 2025-04-08 11:07:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:07:05' and `end` < '2025-04-08 11: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-04-08 11:07:19] Production.INFO: count ==3723 [2025-04-08 11:07:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:07:05 - End Time 2025-04-08 11:07:05 [2025-04-08 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861788', 'tblTempUsageDetail_20' ) start [2025-04-08 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861788', 'tblTempUsageDetail_20' ) end [2025-04-08 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861788', 'tblTempVendorCDR_20' ) start [2025-04-08 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861788', 'tblTempVendorCDR_20' ) end [2025-04-08 11:07:21] Production.INFO: ProcessCDR(1,14861788,1,1,2) [2025-04-08 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861788', 'tblTempUsageDetail_20' ) start [2025-04-08 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861788', 'tblTempUsageDetail_20' ) end [2025-04-08 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:07:26] Production.INFO: ==4985== Releasing lock... [2025-04-08 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:07:26] Production.INFO: 55.75 MB #Memory Used# [2025-04-08 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:08:06 [end_date_ymd] => 2025-04-08 11:08:06 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:08:06' and `end` < '2025-04-08 11: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-04-08 11:08:20] Production.INFO: count ==3740 [2025-04-08 11:08:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:08:06 - End Time 2025-04-08 11:08:06 [2025-04-08 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861793', 'tblTempUsageDetail_20' ) start [2025-04-08 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861793', 'tblTempUsageDetail_20' ) end [2025-04-08 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861793', 'tblTempVendorCDR_20' ) start [2025-04-08 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861793', 'tblTempVendorCDR_20' ) end [2025-04-08 11:08:21] Production.INFO: ProcessCDR(1,14861793,1,1,2) [2025-04-08 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861793', 'tblTempUsageDetail_20' ) start [2025-04-08 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861793', 'tblTempUsageDetail_20' ) end [2025-04-08 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:08:26] Production.INFO: ==5105== Releasing lock... [2025-04-08 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:08:26] Production.INFO: 56 MB #Memory Used# [2025-04-08 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:09:05 [end_date_ymd] => 2025-04-08 11:09:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:09:05' and `end` < '2025-04-08 11: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-04-08 11:09:19] Production.INFO: count ==3747 [2025-04-08 11:09:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:09:05 - End Time 2025-04-08 11:09:05 [2025-04-08 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861798', 'tblTempUsageDetail_20' ) start [2025-04-08 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861798', 'tblTempUsageDetail_20' ) end [2025-04-08 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861798', 'tblTempVendorCDR_20' ) start [2025-04-08 11:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861798', 'tblTempVendorCDR_20' ) end [2025-04-08 11:09:21] Production.INFO: ProcessCDR(1,14861798,1,1,2) [2025-04-08 11:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861798', 'tblTempUsageDetail_20' ) start [2025-04-08 11:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861798', 'tblTempUsageDetail_20' ) end [2025-04-08 11:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:09:26] Production.INFO: ==5230== Releasing lock... [2025-04-08 11:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:09:26] Production.INFO: 56 MB #Memory Used# [2025-04-08 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:10:06 [end_date_ymd] => 2025-04-08 11:10:06 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:10:06' and `end` < '2025-04-08 11: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-04-08 11:10:20] Production.INFO: count ==3735 [2025-04-08 11:10:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:10:06 - End Time 2025-04-08 11:10:06 [2025-04-08 11:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861803', 'tblTempUsageDetail_20' ) start [2025-04-08 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861803', 'tblTempUsageDetail_20' ) end [2025-04-08 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861803', 'tblTempVendorCDR_20' ) start [2025-04-08 11:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861803', 'tblTempVendorCDR_20' ) end [2025-04-08 11:10:21] Production.INFO: ProcessCDR(1,14861803,1,1,2) [2025-04-08 11:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861803', 'tblTempUsageDetail_20' ) start [2025-04-08 11:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861803', 'tblTempUsageDetail_20' ) end [2025-04-08 11:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:10:27] Production.INFO: ==5316== Releasing lock... [2025-04-08 11:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:10:27] Production.INFO: 56.25 MB #Memory Used# [2025-04-08 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:11:05 [end_date_ymd] => 2025-04-08 11:11:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:11:05' and `end` < '2025-04-08 11: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-04-08 11:11:19] Production.INFO: count ==3834 [2025-04-08 11:11:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:11:05 - End Time 2025-04-08 11:11:05 [2025-04-08 11:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861809', 'tblTempUsageDetail_20' ) start [2025-04-08 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861809', 'tblTempUsageDetail_20' ) end [2025-04-08 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861809', 'tblTempVendorCDR_20' ) start [2025-04-08 11:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861809', 'tblTempVendorCDR_20' ) end [2025-04-08 11:11:21] Production.INFO: ProcessCDR(1,14861809,1,1,2) [2025-04-08 11:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861809', 'tblTempUsageDetail_20' ) start [2025-04-08 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861809', 'tblTempUsageDetail_20' ) end [2025-04-08 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:11:26] Production.INFO: ==5403== Releasing lock... [2025-04-08 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:11:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-08 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:12:05 [end_date_ymd] => 2025-04-08 11:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:12:05' and `end` < '2025-04-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-04-08 11:12:19] Production.INFO: count ==3845 [2025-04-08 11:12:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:12:05 - End Time 2025-04-08 11:12:05 [2025-04-08 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861814', 'tblTempUsageDetail_20' ) start [2025-04-08 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861814', 'tblTempUsageDetail_20' ) end [2025-04-08 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861814', 'tblTempVendorCDR_20' ) start [2025-04-08 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861814', 'tblTempVendorCDR_20' ) end [2025-04-08 11:12:21] Production.INFO: ProcessCDR(1,14861814,1,1,2) [2025-04-08 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861814', 'tblTempUsageDetail_20' ) start [2025-04-08 11:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861814', 'tblTempUsageDetail_20' ) end [2025-04-08 11:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:12:27] Production.INFO: ==5594== Releasing lock... [2025-04-08 11:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:12:27] Production.INFO: 56.75 MB #Memory Used# [2025-04-08 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:13:05 [end_date_ymd] => 2025-04-08 11:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:13:05' and `end` < '2025-04-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-04-08 11:13:19] Production.INFO: count ==3855 [2025-04-08 11:13:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:13:05 - End Time 2025-04-08 11:13:05 [2025-04-08 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861819', 'tblTempUsageDetail_20' ) start [2025-04-08 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861819', 'tblTempUsageDetail_20' ) end [2025-04-08 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861819', 'tblTempVendorCDR_20' ) start [2025-04-08 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861819', 'tblTempVendorCDR_20' ) end [2025-04-08 11:13:21] Production.INFO: ProcessCDR(1,14861819,1,1,2) [2025-04-08 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861819', 'tblTempUsageDetail_20' ) start [2025-04-08 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861819', 'tblTempUsageDetail_20' ) end [2025-04-08 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:13:26] Production.INFO: ==5681== Releasing lock... [2025-04-08 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:13:26] Production.INFO: 56.75 MB #Memory Used# [2025-04-08 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:14:05 [end_date_ymd] => 2025-04-08 11:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:14:05' and `end` < '2025-04-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-04-08 11:14:19] Production.INFO: count ==3872 [2025-04-08 11:14:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:14:05 - End Time 2025-04-08 11:14:05 [2025-04-08 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861824', 'tblTempUsageDetail_20' ) start [2025-04-08 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861824', 'tblTempUsageDetail_20' ) end [2025-04-08 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861824', 'tblTempVendorCDR_20' ) start [2025-04-08 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861824', 'tblTempVendorCDR_20' ) end [2025-04-08 11:14:20] Production.INFO: ProcessCDR(1,14861824,1,1,2) [2025-04-08 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861824', 'tblTempUsageDetail_20' ) start [2025-04-08 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861824', 'tblTempUsageDetail_20' ) end [2025-04-08 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:14:26] Production.INFO: ==5753== Releasing lock... [2025-04-08 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:14:26] Production.INFO: 57 MB #Memory Used# [2025-04-08 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:15:06 [end_date_ymd] => 2025-04-08 11:15:06 [RateCDR] => 1 ) [2025-04-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-04-08 08:15:06' and `end` < '2025-04-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-04-08 11:15:19] Production.INFO: count ==3881 [2025-04-08 11:15:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:15:06 - End Time 2025-04-08 11:15:06 [2025-04-08 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861829', 'tblTempUsageDetail_20' ) start [2025-04-08 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861829', 'tblTempUsageDetail_20' ) end [2025-04-08 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861829', 'tblTempVendorCDR_20' ) start [2025-04-08 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861829', 'tblTempVendorCDR_20' ) end [2025-04-08 11:15:21] Production.INFO: ProcessCDR(1,14861829,1,1,2) [2025-04-08 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861829', 'tblTempUsageDetail_20' ) start [2025-04-08 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861829', 'tblTempUsageDetail_20' ) end [2025-04-08 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:15:26] Production.INFO: ==5918== Releasing lock... [2025-04-08 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:15:26] Production.INFO: 57 MB #Memory Used# [2025-04-08 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:16:05 [end_date_ymd] => 2025-04-08 11:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:16:05' and `end` < '2025-04-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-04-08 11:16:18] Production.INFO: count ==3909 [2025-04-08 11:16:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:16:05 - End Time 2025-04-08 11:16:05 [2025-04-08 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861834', 'tblTempUsageDetail_20' ) start [2025-04-08 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861834', 'tblTempUsageDetail_20' ) end [2025-04-08 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861834', 'tblTempVendorCDR_20' ) start [2025-04-08 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861834', 'tblTempVendorCDR_20' ) end [2025-04-08 11:16:20] Production.INFO: ProcessCDR(1,14861834,1,1,2) [2025-04-08 11:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861834', 'tblTempUsageDetail_20' ) start [2025-04-08 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861834', 'tblTempUsageDetail_20' ) end [2025-04-08 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:16:26] Production.INFO: ==5997== Releasing lock... [2025-04-08 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:16:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-08 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:17:05 [end_date_ymd] => 2025-04-08 11:17:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:17:05' and `end` < '2025-04-08 11: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-04-08 11:17:19] Production.INFO: count ==3901 [2025-04-08 11:17:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:17:05 - End Time 2025-04-08 11:17:05 [2025-04-08 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861839', 'tblTempUsageDetail_20' ) start [2025-04-08 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861839', 'tblTempUsageDetail_20' ) end [2025-04-08 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861839', 'tblTempVendorCDR_20' ) start [2025-04-08 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861839', 'tblTempVendorCDR_20' ) end [2025-04-08 11:17:20] Production.INFO: ProcessCDR(1,14861839,1,1,2) [2025-04-08 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861839', 'tblTempUsageDetail_20' ) start [2025-04-08 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861839', 'tblTempUsageDetail_20' ) end [2025-04-08 11:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:17:26] Production.INFO: ==6070== Releasing lock... [2025-04-08 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:17:26] Production.INFO: 57 MB #Memory Used# [2025-04-08 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:18:05 [end_date_ymd] => 2025-04-08 11:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:18:05' and `end` < '2025-04-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-04-08 11:18:18] Production.INFO: count ==3896 [2025-04-08 11:18:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:18:05 - End Time 2025-04-08 11:18:05 [2025-04-08 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861844', 'tblTempUsageDetail_20' ) start [2025-04-08 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861844', 'tblTempUsageDetail_20' ) end [2025-04-08 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861844', 'tblTempVendorCDR_20' ) start [2025-04-08 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861844', 'tblTempVendorCDR_20' ) end [2025-04-08 11:18:20] Production.INFO: ProcessCDR(1,14861844,1,1,2) [2025-04-08 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861844', 'tblTempUsageDetail_20' ) start [2025-04-08 11:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861844', 'tblTempUsageDetail_20' ) end [2025-04-08 11:18:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:18:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:18:25] Production.INFO: ==6144== Releasing lock... [2025-04-08 11:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:18:25] Production.INFO: 57 MB #Memory Used# [2025-04-08 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:19:05 [end_date_ymd] => 2025-04-08 11:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:19:05' and `end` < '2025-04-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-04-08 11:19:19] Production.INFO: count ==3923 [2025-04-08 11:19:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:19:05 - End Time 2025-04-08 11:19:05 [2025-04-08 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861849', 'tblTempUsageDetail_20' ) start [2025-04-08 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861849', 'tblTempUsageDetail_20' ) end [2025-04-08 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861849', 'tblTempVendorCDR_20' ) start [2025-04-08 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861849', 'tblTempVendorCDR_20' ) end [2025-04-08 11:19:20] Production.INFO: ProcessCDR(1,14861849,1,1,2) [2025-04-08 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861849', 'tblTempUsageDetail_20' ) start [2025-04-08 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861849', 'tblTempUsageDetail_20' ) end [2025-04-08 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:19:25] Production.INFO: ==6219== Releasing lock... [2025-04-08 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:19:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-08 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:20:06 [end_date_ymd] => 2025-04-08 11:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 08:20:06' and `end` < '2025-04-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-04-08 11:20:19] Production.INFO: count ==3924 [2025-04-08 11:20:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:20:06 - End Time 2025-04-08 11:20:06 [2025-04-08 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861855', 'tblTempUsageDetail_20' ) start [2025-04-08 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861855', 'tblTempUsageDetail_20' ) end [2025-04-08 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861855', 'tblTempVendorCDR_20' ) start [2025-04-08 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861855', 'tblTempVendorCDR_20' ) end [2025-04-08 11:20:21] Production.INFO: ProcessCDR(1,14861855,1,1,2) [2025-04-08 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861855', 'tblTempUsageDetail_20' ) start [2025-04-08 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861855', 'tblTempUsageDetail_20' ) end [2025-04-08 11:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:20:26] Production.INFO: ==6293== Releasing lock... [2025-04-08 11:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:20:26] Production.INFO: 57.25 MB #Memory Used# [2025-04-08 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:21:05 [end_date_ymd] => 2025-04-08 11:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:21:05' and `end` < '2025-04-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-04-08 11:21:19] Production.INFO: count ==3980 [2025-04-08 11:21:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:21:05 - End Time 2025-04-08 11:21:05 [2025-04-08 11:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861860', 'tblTempUsageDetail_20' ) start [2025-04-08 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861860', 'tblTempUsageDetail_20' ) end [2025-04-08 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861860', 'tblTempVendorCDR_20' ) start [2025-04-08 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861860', 'tblTempVendorCDR_20' ) end [2025-04-08 11:21:21] Production.INFO: ProcessCDR(1,14861860,1,1,2) [2025-04-08 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861860', 'tblTempUsageDetail_20' ) start [2025-04-08 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861860', 'tblTempUsageDetail_20' ) end [2025-04-08 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:21:26] Production.INFO: ==6369== Releasing lock... [2025-04-08 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:21:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-08 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:22:05 [end_date_ymd] => 2025-04-08 11:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:22:05' and `end` < '2025-04-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-04-08 11:22:18] Production.INFO: count ==3978 [2025-04-08 11:22:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:22:05 - End Time 2025-04-08 11:22:05 [2025-04-08 11:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861865', 'tblTempUsageDetail_20' ) start [2025-04-08 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861865', 'tblTempUsageDetail_20' ) end [2025-04-08 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861865', 'tblTempVendorCDR_20' ) start [2025-04-08 11:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861865', 'tblTempVendorCDR_20' ) end [2025-04-08 11:22:20] Production.INFO: ProcessCDR(1,14861865,1,1,2) [2025-04-08 11:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861865', 'tblTempUsageDetail_20' ) start [2025-04-08 11:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861865', 'tblTempUsageDetail_20' ) end [2025-04-08 11:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:22:25] Production.INFO: ==6442== Releasing lock... [2025-04-08 11:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:22:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-08 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:23:05 [end_date_ymd] => 2025-04-08 11:23:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:23:05' and `end` < '2025-04-08 11: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-04-08 11:23:19] Production.INFO: count ==3988 [2025-04-08 11:23:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:23:05 - End Time 2025-04-08 11:23:05 [2025-04-08 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861870', 'tblTempUsageDetail_20' ) start [2025-04-08 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861870', 'tblTempUsageDetail_20' ) end [2025-04-08 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861870', 'tblTempVendorCDR_20' ) start [2025-04-08 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861870', 'tblTempVendorCDR_20' ) end [2025-04-08 11:23:20] Production.INFO: ProcessCDR(1,14861870,1,1,2) [2025-04-08 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861870', 'tblTempUsageDetail_20' ) start [2025-04-08 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861870', 'tblTempUsageDetail_20' ) end [2025-04-08 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:23:26] Production.INFO: ==6519== Releasing lock... [2025-04-08 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:23:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-08 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:24:06 [end_date_ymd] => 2025-04-08 11:24:06 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:24:06' and `end` < '2025-04-08 11: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-04-08 11:24:19] Production.INFO: count ==4000 [2025-04-08 11:24:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:24:06 - End Time 2025-04-08 11:24:06 [2025-04-08 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861875', 'tblTempUsageDetail_20' ) start [2025-04-08 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861875', 'tblTempUsageDetail_20' ) end [2025-04-08 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861875', 'tblTempVendorCDR_20' ) start [2025-04-08 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861875', 'tblTempVendorCDR_20' ) end [2025-04-08 11:24:21] Production.INFO: ProcessCDR(1,14861875,1,1,2) [2025-04-08 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861875', 'tblTempUsageDetail_20' ) start [2025-04-08 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861875', 'tblTempUsageDetail_20' ) end [2025-04-08 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:24:26] Production.INFO: ==6596== Releasing lock... [2025-04-08 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:24:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-08 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:25:05 [end_date_ymd] => 2025-04-08 11:25:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:25:05' and `end` < '2025-04-08 11: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-04-08 11:25:19] Production.INFO: count ==4000 [2025-04-08 11:25:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:25:05 - End Time 2025-04-08 11:25:05 [2025-04-08 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861880', 'tblTempUsageDetail_20' ) start [2025-04-08 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861880', 'tblTempUsageDetail_20' ) end [2025-04-08 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861880', 'tblTempVendorCDR_20' ) start [2025-04-08 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861880', 'tblTempVendorCDR_20' ) end [2025-04-08 11:25:21] Production.INFO: ProcessCDR(1,14861880,1,1,2) [2025-04-08 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861880', 'tblTempUsageDetail_20' ) start [2025-04-08 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861880', 'tblTempUsageDetail_20' ) end [2025-04-08 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:25:26] Production.INFO: ==6665== Releasing lock... [2025-04-08 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:25:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-08 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:26:05 [end_date_ymd] => 2025-04-08 11:26:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:26:05' and `end` < '2025-04-08 11: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-04-08 11:26:19] Production.INFO: count ==4013 [2025-04-08 11:26:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:26:05 - End Time 2025-04-08 11:26:05 [2025-04-08 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861885', 'tblTempUsageDetail_20' ) start [2025-04-08 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861885', 'tblTempUsageDetail_20' ) end [2025-04-08 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861885', 'tblTempVendorCDR_20' ) start [2025-04-08 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861885', 'tblTempVendorCDR_20' ) end [2025-04-08 11:26:20] Production.INFO: ProcessCDR(1,14861885,1,1,2) [2025-04-08 11:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861885', 'tblTempUsageDetail_20' ) start [2025-04-08 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861885', 'tblTempUsageDetail_20' ) end [2025-04-08 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:26:26] Production.INFO: ==6744== Releasing lock... [2025-04-08 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:26:26] Production.INFO: 58 MB #Memory Used# [2025-04-08 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:27:05 [end_date_ymd] => 2025-04-08 11:27:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:27:05' and `end` < '2025-04-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-04-08 11:27:19] Production.INFO: count ==4018 [2025-04-08 11:27:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:27:05 - End Time 2025-04-08 11:27:05 [2025-04-08 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861890', 'tblTempUsageDetail_20' ) start [2025-04-08 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861890', 'tblTempUsageDetail_20' ) end [2025-04-08 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861890', 'tblTempVendorCDR_20' ) start [2025-04-08 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861890', 'tblTempVendorCDR_20' ) end [2025-04-08 11:27:20] Production.INFO: ProcessCDR(1,14861890,1,1,2) [2025-04-08 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861890', 'tblTempUsageDetail_20' ) start [2025-04-08 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861890', 'tblTempUsageDetail_20' ) end [2025-04-08 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:27:26] Production.INFO: ==6821== Releasing lock... [2025-04-08 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:27:26] Production.INFO: 58 MB #Memory Used# [2025-04-08 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:28:05 [end_date_ymd] => 2025-04-08 11:28:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:28:05' and `end` < '2025-04-08 11: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-04-08 11:28:19] Production.INFO: count ==4029 [2025-04-08 11:28:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:28:05 - End Time 2025-04-08 11:28:05 [2025-04-08 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861895', 'tblTempUsageDetail_20' ) start [2025-04-08 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861895', 'tblTempUsageDetail_20' ) end [2025-04-08 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861895', 'tblTempVendorCDR_20' ) start [2025-04-08 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861895', 'tblTempVendorCDR_20' ) end [2025-04-08 11:28:21] Production.INFO: ProcessCDR(1,14861895,1,1,2) [2025-04-08 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861895', 'tblTempUsageDetail_20' ) start [2025-04-08 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861895', 'tblTempUsageDetail_20' ) end [2025-04-08 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:28:26] Production.INFO: ==6931== Releasing lock... [2025-04-08 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:28:26] Production.INFO: 58 MB #Memory Used# [2025-04-08 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:29:05 [end_date_ymd] => 2025-04-08 11:29:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:29:05' and `end` < '2025-04-08 11: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-04-08 11:29:18] Production.INFO: count ==4018 [2025-04-08 11:29:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:29:05 - End Time 2025-04-08 11:29:05 [2025-04-08 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861900', 'tblTempUsageDetail_20' ) start [2025-04-08 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861900', 'tblTempUsageDetail_20' ) end [2025-04-08 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861900', 'tblTempVendorCDR_20' ) start [2025-04-08 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861900', 'tblTempVendorCDR_20' ) end [2025-04-08 11:29:20] Production.INFO: ProcessCDR(1,14861900,1,1,2) [2025-04-08 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861900', 'tblTempUsageDetail_20' ) start [2025-04-08 11:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861900', 'tblTempUsageDetail_20' ) end [2025-04-08 11:29:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:29:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:29:23] Production.INFO: ==7008== Releasing lock... [2025-04-08 11:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:29:23] Production.INFO: 58.25 MB #Memory Used# [2025-04-08 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:30:06 [end_date_ymd] => 2025-04-08 11:30:06 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:30:06' and `end` < '2025-04-08 11: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-04-08 11:30:19] Production.INFO: count ==4028 [2025-04-08 11:30:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:30:06 - End Time 2025-04-08 11:30:06 [2025-04-08 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861905', 'tblTempUsageDetail_20' ) start [2025-04-08 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861905', 'tblTempUsageDetail_20' ) end [2025-04-08 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861905', 'tblTempVendorCDR_20' ) start [2025-04-08 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861905', 'tblTempVendorCDR_20' ) end [2025-04-08 11:30:21] Production.INFO: ProcessCDR(1,14861905,1,1,2) [2025-04-08 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861905', 'tblTempUsageDetail_20' ) start [2025-04-08 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861905', 'tblTempUsageDetail_20' ) end [2025-04-08 11:30:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:30:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:30:26] Production.INFO: ==7086== Releasing lock... [2025-04-08 11:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:30:26] Production.INFO: 58 MB #Memory Used# [2025-04-08 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:31:04 [end_date_ymd] => 2025-04-08 11:31:04 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:31:04' and `end` < '2025-04-08 11: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-04-08 11:31:18] Production.INFO: count ==4084 [2025-04-08 11:31:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:31:04 - End Time 2025-04-08 11:31:04 [2025-04-08 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861911', 'tblTempUsageDetail_20' ) start [2025-04-08 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861911', 'tblTempUsageDetail_20' ) end [2025-04-08 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861911', 'tblTempVendorCDR_20' ) start [2025-04-08 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861911', 'tblTempVendorCDR_20' ) end [2025-04-08 11:31:20] Production.INFO: ProcessCDR(1,14861911,1,1,2) [2025-04-08 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861911', 'tblTempUsageDetail_20' ) start [2025-04-08 11:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861911', 'tblTempUsageDetail_20' ) end [2025-04-08 11:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:31:25] Production.INFO: ==7161== Releasing lock... [2025-04-08 11:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:31:25] Production.INFO: 58.5 MB #Memory Used# [2025-04-08 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:32:05 [end_date_ymd] => 2025-04-08 11:32:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:32:05' and `end` < '2025-04-08 11: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-04-08 11:32:19] Production.INFO: count ==4092 [2025-04-08 11:32:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:32:05 - End Time 2025-04-08 11:32:05 [2025-04-08 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861916', 'tblTempUsageDetail_20' ) start [2025-04-08 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861916', 'tblTempUsageDetail_20' ) end [2025-04-08 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861916', 'tblTempVendorCDR_20' ) start [2025-04-08 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861916', 'tblTempVendorCDR_20' ) end [2025-04-08 11:32:20] Production.INFO: ProcessCDR(1,14861916,1,1,2) [2025-04-08 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861916', 'tblTempUsageDetail_20' ) start [2025-04-08 11:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861916', 'tblTempUsageDetail_20' ) end [2025-04-08 11:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:32:26] Production.INFO: ==7235== Releasing lock... [2025-04-08 11:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:32:26] Production.INFO: 58.5 MB #Memory Used# [2025-04-08 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:33:05 [end_date_ymd] => 2025-04-08 11:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:33:05' and `end` < '2025-04-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-04-08 11:33:19] Production.INFO: count ==4072 [2025-04-08 11:33:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:33:05 - End Time 2025-04-08 11:33:05 [2025-04-08 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861921', 'tblTempUsageDetail_20' ) start [2025-04-08 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861921', 'tblTempUsageDetail_20' ) end [2025-04-08 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861921', 'tblTempVendorCDR_20' ) start [2025-04-08 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861921', 'tblTempVendorCDR_20' ) end [2025-04-08 11:33:20] Production.INFO: ProcessCDR(1,14861921,1,1,2) [2025-04-08 11:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861921', 'tblTempUsageDetail_20' ) start [2025-04-08 11:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861921', 'tblTempUsageDetail_20' ) end [2025-04-08 11:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:33:25] Production.INFO: ==7308== Releasing lock... [2025-04-08 11:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:33:25] Production.INFO: 58.5 MB #Memory Used# [2025-04-08 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:34:05 [end_date_ymd] => 2025-04-08 11:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:34:05' and `end` < '2025-04-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-04-08 11:34:19] Production.INFO: count ==4103 [2025-04-08 11:34:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:34:05 - End Time 2025-04-08 11:34:05 [2025-04-08 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861926', 'tblTempUsageDetail_20' ) start [2025-04-08 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861926', 'tblTempUsageDetail_20' ) end [2025-04-08 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861926', 'tblTempVendorCDR_20' ) start [2025-04-08 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861926', 'tblTempVendorCDR_20' ) end [2025-04-08 11:34:21] Production.INFO: ProcessCDR(1,14861926,1,1,2) [2025-04-08 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861926', 'tblTempUsageDetail_20' ) start [2025-04-08 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861926', 'tblTempUsageDetail_20' ) end [2025-04-08 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:34:26] Production.INFO: ==7382== Releasing lock... [2025-04-08 11:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:34:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-08 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:35:05 [end_date_ymd] => 2025-04-08 11:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:35:05' and `end` < '2025-04-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-04-08 11:35:19] Production.INFO: count ==4114 [2025-04-08 11:35:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:35:05 - End Time 2025-04-08 11:35:05 [2025-04-08 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861931', 'tblTempUsageDetail_20' ) start [2025-04-08 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861931', 'tblTempUsageDetail_20' ) end [2025-04-08 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861931', 'tblTempVendorCDR_20' ) start [2025-04-08 11:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861931', 'tblTempVendorCDR_20' ) end [2025-04-08 11:35:21] Production.INFO: ProcessCDR(1,14861931,1,1,2) [2025-04-08 11:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861931', 'tblTempUsageDetail_20' ) start [2025-04-08 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861931', 'tblTempUsageDetail_20' ) end [2025-04-08 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:35:26] Production.INFO: ==7454== Releasing lock... [2025-04-08 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:35:26] Production.INFO: 58.75 MB #Memory Used# [2025-04-08 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:36:05 [end_date_ymd] => 2025-04-08 11:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:36:05' and `end` < '2025-04-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-04-08 11:36:19] Production.INFO: count ==4137 [2025-04-08 11:36:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:36:05 - End Time 2025-04-08 11:36:05 [2025-04-08 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861936', 'tblTempUsageDetail_20' ) start [2025-04-08 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861936', 'tblTempUsageDetail_20' ) end [2025-04-08 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861936', 'tblTempVendorCDR_20' ) start [2025-04-08 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861936', 'tblTempVendorCDR_20' ) end [2025-04-08 11:36:21] Production.INFO: ProcessCDR(1,14861936,1,1,2) [2025-04-08 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861936', 'tblTempUsageDetail_20' ) start [2025-04-08 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861936', 'tblTempUsageDetail_20' ) end [2025-04-08 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:36:26] Production.INFO: ==7527== Releasing lock... [2025-04-08 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:36:26] Production.INFO: 59 MB #Memory Used# [2025-04-08 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:37:05 [end_date_ymd] => 2025-04-08 11:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:37:05' and `end` < '2025-04-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-04-08 11:37:19] Production.INFO: count ==4146 [2025-04-08 11:37:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:37:05 - End Time 2025-04-08 11:37:05 [2025-04-08 11:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861941', 'tblTempUsageDetail_20' ) start [2025-04-08 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861941', 'tblTempUsageDetail_20' ) end [2025-04-08 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861941', 'tblTempVendorCDR_20' ) start [2025-04-08 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861941', 'tblTempVendorCDR_20' ) end [2025-04-08 11:37:21] Production.INFO: ProcessCDR(1,14861941,1,1,2) [2025-04-08 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861941', 'tblTempUsageDetail_20' ) start [2025-04-08 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861941', 'tblTempUsageDetail_20' ) end [2025-04-08 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:37:27] Production.INFO: ==7620== Releasing lock... [2025-04-08 11:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:37:27] Production.INFO: 59 MB #Memory Used# [2025-04-08 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:38:05 [end_date_ymd] => 2025-04-08 11:38:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:38:05' and `end` < '2025-04-08 11: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-04-08 11:38:19] Production.INFO: count ==4155 [2025-04-08 11:38:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:38:05 - End Time 2025-04-08 11:38:05 [2025-04-08 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861946', 'tblTempUsageDetail_20' ) start [2025-04-08 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861946', 'tblTempUsageDetail_20' ) end [2025-04-08 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861946', 'tblTempVendorCDR_20' ) start [2025-04-08 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861946', 'tblTempVendorCDR_20' ) end [2025-04-08 11:38:21] Production.INFO: ProcessCDR(1,14861946,1,1,2) [2025-04-08 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861946', 'tblTempUsageDetail_20' ) start [2025-04-08 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861946', 'tblTempUsageDetail_20' ) end [2025-04-08 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:38:26] Production.INFO: ==7698== Releasing lock... [2025-04-08 11:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:38:26] Production.INFO: 59 MB #Memory Used# [2025-04-08 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:39:05 [end_date_ymd] => 2025-04-08 11:39:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:39:05' and `end` < '2025-04-08 11: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-04-08 11:39:19] Production.INFO: count ==4168 [2025-04-08 11:39:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:39:05 - End Time 2025-04-08 11:39:05 [2025-04-08 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861951', 'tblTempUsageDetail_20' ) start [2025-04-08 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861951', 'tblTempUsageDetail_20' ) end [2025-04-08 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861951', 'tblTempVendorCDR_20' ) start [2025-04-08 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861951', 'tblTempVendorCDR_20' ) end [2025-04-08 11:39:20] Production.INFO: ProcessCDR(1,14861951,1,1,2) [2025-04-08 11:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861951', 'tblTempUsageDetail_20' ) start [2025-04-08 11:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861951', 'tblTempUsageDetail_20' ) end [2025-04-08 11:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:39:25] Production.INFO: ==7771== Releasing lock... [2025-04-08 11:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:39:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-08 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:40:06 [end_date_ymd] => 2025-04-08 11:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 08:40:06' and `end` < '2025-04-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-04-08 11:40:19] Production.INFO: count ==4175 [2025-04-08 11:40:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:40:06 - End Time 2025-04-08 11:40:06 [2025-04-08 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861957', 'tblTempUsageDetail_20' ) start [2025-04-08 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861957', 'tblTempUsageDetail_20' ) end [2025-04-08 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861957', 'tblTempVendorCDR_20' ) start [2025-04-08 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861957', 'tblTempVendorCDR_20' ) end [2025-04-08 11:40:21] Production.INFO: ProcessCDR(1,14861957,1,1,2) [2025-04-08 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861957', 'tblTempUsageDetail_20' ) start [2025-04-08 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861957', 'tblTempUsageDetail_20' ) end [2025-04-08 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:40:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:40:26] Production.INFO: ==7850== Releasing lock... [2025-04-08 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:40:26] Production.INFO: 59.25 MB #Memory Used# [2025-04-08 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:41:05 [end_date_ymd] => 2025-04-08 11:41:05 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:41:05' and `end` < '2025-04-08 11: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-04-08 11:41:18] Production.INFO: count ==4212 [2025-04-08 11:41:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:41:05 - End Time 2025-04-08 11:41:05 [2025-04-08 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861962', 'tblTempUsageDetail_20' ) start [2025-04-08 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861962', 'tblTempUsageDetail_20' ) end [2025-04-08 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861962', 'tblTempVendorCDR_20' ) start [2025-04-08 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861962', 'tblTempVendorCDR_20' ) end [2025-04-08 11:41:20] Production.INFO: ProcessCDR(1,14861962,1,1,2) [2025-04-08 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861962', 'tblTempUsageDetail_20' ) start [2025-04-08 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861962', 'tblTempUsageDetail_20' ) end [2025-04-08 11:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:41:25] Production.INFO: ==7924== Releasing lock... [2025-04-08 11:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:41:25] Production.INFO: 59.5 MB #Memory Used# [2025-04-08 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:42:05 [end_date_ymd] => 2025-04-08 11:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:42:05' and `end` < '2025-04-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-04-08 11:42:19] Production.INFO: count ==4226 [2025-04-08 11:42:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:42:05 - End Time 2025-04-08 11:42:05 [2025-04-08 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861967', 'tblTempUsageDetail_20' ) start [2025-04-08 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861967', 'tblTempUsageDetail_20' ) end [2025-04-08 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861967', 'tblTempVendorCDR_20' ) start [2025-04-08 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861967', 'tblTempVendorCDR_20' ) end [2025-04-08 11:42:21] Production.INFO: ProcessCDR(1,14861967,1,1,2) [2025-04-08 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861967', 'tblTempUsageDetail_20' ) start [2025-04-08 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861967', 'tblTempUsageDetail_20' ) end [2025-04-08 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:42:26] Production.INFO: ==8001== Releasing lock... [2025-04-08 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:42:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-08 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:43:05 [end_date_ymd] => 2025-04-08 11:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:43:05' and `end` < '2025-04-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-04-08 11:43:19] Production.INFO: count ==4237 [2025-04-08 11:43:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:43:05 - End Time 2025-04-08 11:43:05 [2025-04-08 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861972', 'tblTempUsageDetail_20' ) start [2025-04-08 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861972', 'tblTempUsageDetail_20' ) end [2025-04-08 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861972', 'tblTempVendorCDR_20' ) start [2025-04-08 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861972', 'tblTempVendorCDR_20' ) end [2025-04-08 11:43:21] Production.INFO: ProcessCDR(1,14861972,1,1,2) [2025-04-08 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861972', 'tblTempUsageDetail_20' ) start [2025-04-08 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861972', 'tblTempUsageDetail_20' ) end [2025-04-08 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:43:27] Production.INFO: ==8109== Releasing lock... [2025-04-08 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:43:27] Production.INFO: 59.75 MB #Memory Used# [2025-04-08 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:44:05 [end_date_ymd] => 2025-04-08 11:44:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:44:05' and `end` < '2025-04-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-04-08 11:44:19] Production.INFO: count ==4258 [2025-04-08 11:44:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:44:05 - End Time 2025-04-08 11:44:05 [2025-04-08 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861977', 'tblTempUsageDetail_20' ) start [2025-04-08 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861977', 'tblTempUsageDetail_20' ) end [2025-04-08 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861977', 'tblTempVendorCDR_20' ) start [2025-04-08 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861977', 'tblTempVendorCDR_20' ) end [2025-04-08 11:44:21] Production.INFO: ProcessCDR(1,14861977,1,1,2) [2025-04-08 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861977', 'tblTempUsageDetail_20' ) start [2025-04-08 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861977', 'tblTempUsageDetail_20' ) end [2025-04-08 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:44:26] Production.INFO: ==8184== Releasing lock... [2025-04-08 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:44:26] Production.INFO: 59.75 MB #Memory Used# [2025-04-08 11:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:45:04 [end_date_ymd] => 2025-04-08 11:45:04 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:45:04' and `end` < '2025-04-08 11: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-04-08 11:45:18] Production.INFO: count ==4262 [2025-04-08 11:45:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:45:04 - End Time 2025-04-08 11:45:04 [2025-04-08 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861982', 'tblTempUsageDetail_20' ) start [2025-04-08 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861982', 'tblTempUsageDetail_20' ) end [2025-04-08 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861982', 'tblTempVendorCDR_20' ) start [2025-04-08 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861982', 'tblTempVendorCDR_20' ) end [2025-04-08 11:45:20] Production.INFO: ProcessCDR(1,14861982,1,1,2) [2025-04-08 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861982', 'tblTempUsageDetail_20' ) start [2025-04-08 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861982', 'tblTempUsageDetail_20' ) end [2025-04-08 11:45:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:45:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:45:25] Production.INFO: ==8259== Releasing lock... [2025-04-08 11:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:45:25] Production.INFO: 60 MB #Memory Used# [2025-04-08 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:46:05 [end_date_ymd] => 2025-04-08 11:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:46:05' and `end` < '2025-04-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-04-08 11:46:19] Production.INFO: count ==4281 [2025-04-08 11:46:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:46:05 - End Time 2025-04-08 11:46:05 [2025-04-08 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861987', 'tblTempUsageDetail_20' ) start [2025-04-08 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861987', 'tblTempUsageDetail_20' ) end [2025-04-08 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861987', 'tblTempVendorCDR_20' ) start [2025-04-08 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861987', 'tblTempVendorCDR_20' ) end [2025-04-08 11:46:21] Production.INFO: ProcessCDR(1,14861987,1,1,2) [2025-04-08 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861987', 'tblTempUsageDetail_20' ) start [2025-04-08 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861987', 'tblTempUsageDetail_20' ) end [2025-04-08 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:46:26] Production.INFO: ==8332== Releasing lock... [2025-04-08 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:46:26] Production.INFO: 60 MB #Memory Used# [2025-04-08 11:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:47:04 [end_date_ymd] => 2025-04-08 11:47:04 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:47:04' and `end` < '2025-04-08 11: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-04-08 11:47:18] Production.INFO: count ==4311 [2025-04-08 11:47:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:47:04 - End Time 2025-04-08 11:47:04 [2025-04-08 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861992', 'tblTempUsageDetail_20' ) start [2025-04-08 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861992', 'tblTempUsageDetail_20' ) end [2025-04-08 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861992', 'tblTempVendorCDR_20' ) start [2025-04-08 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861992', 'tblTempVendorCDR_20' ) end [2025-04-08 11:47:20] Production.INFO: ProcessCDR(1,14861992,1,1,2) [2025-04-08 11:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861992', 'tblTempUsageDetail_20' ) start [2025-04-08 11:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861992', 'tblTempUsageDetail_20' ) end [2025-04-08 11:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:47:25] Production.INFO: ==8404== Releasing lock... [2025-04-08 11:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:47:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-08 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:48:05 [end_date_ymd] => 2025-04-08 11:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:48:05' and `end` < '2025-04-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-04-08 11:48:19] Production.INFO: count ==4319 [2025-04-08 11:48:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:48:05 - End Time 2025-04-08 11:48:05 [2025-04-08 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861997', 'tblTempUsageDetail_20' ) start [2025-04-08 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14861997', 'tblTempUsageDetail_20' ) end [2025-04-08 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861997', 'tblTempVendorCDR_20' ) start [2025-04-08 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14861997', 'tblTempVendorCDR_20' ) end [2025-04-08 11:48:21] Production.INFO: ProcessCDR(1,14861997,1,1,2) [2025-04-08 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14861997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14861997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14861997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14861997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861997', 'tblTempUsageDetail_20' ) start [2025-04-08 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14861997', 'tblTempUsageDetail_20' ) end [2025-04-08 11:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:48:26] Production.INFO: ==8486== Releasing lock... [2025-04-08 11:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:48:26] Production.INFO: 60.25 MB #Memory Used# [2025-04-08 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:49:06 [end_date_ymd] => 2025-04-08 11:49:06 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:49:06' and `end` < '2025-04-08 11: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-04-08 11:49:19] Production.INFO: count ==4323 [2025-04-08 11:49:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:49:06 - End Time 2025-04-08 11:49:06 [2025-04-08 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862002', 'tblTempUsageDetail_20' ) start [2025-04-08 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862002', 'tblTempUsageDetail_20' ) end [2025-04-08 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862002', 'tblTempVendorCDR_20' ) start [2025-04-08 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862002', 'tblTempVendorCDR_20' ) end [2025-04-08 11:49:21] Production.INFO: ProcessCDR(1,14862002,1,1,2) [2025-04-08 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862002', 'tblTempUsageDetail_20' ) start [2025-04-08 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862002', 'tblTempUsageDetail_20' ) end [2025-04-08 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:49:27] Production.INFO: ==8558== Releasing lock... [2025-04-08 11:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:49:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-08 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:50:06 [end_date_ymd] => 2025-04-08 11:50:06 [RateCDR] => 1 ) [2025-04-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-04-08 08:50:06' and `end` < '2025-04-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-04-08 11:50:20] Production.INFO: count ==4330 [2025-04-08 11:50:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:50:06 - End Time 2025-04-08 11:50:06 [2025-04-08 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862008', 'tblTempUsageDetail_20' ) start [2025-04-08 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862008', 'tblTempUsageDetail_20' ) end [2025-04-08 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862008', 'tblTempVendorCDR_20' ) start [2025-04-08 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862008', 'tblTempVendorCDR_20' ) end [2025-04-08 11:50:22] Production.INFO: ProcessCDR(1,14862008,1,1,2) [2025-04-08 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862008', 'tblTempUsageDetail_20' ) start [2025-04-08 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862008', 'tblTempUsageDetail_20' ) end [2025-04-08 11:50:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:50:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:50:26] Production.INFO: ==8633== Releasing lock... [2025-04-08 11:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:50:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-08 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:51:05 [end_date_ymd] => 2025-04-08 11:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:51:05' and `end` < '2025-04-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-04-08 11:51:19] Production.INFO: count ==4413 [2025-04-08 11:51:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:51:05 - End Time 2025-04-08 11:51:05 [2025-04-08 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862013', 'tblTempUsageDetail_20' ) start [2025-04-08 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862013', 'tblTempUsageDetail_20' ) end [2025-04-08 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862013', 'tblTempVendorCDR_20' ) start [2025-04-08 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862013', 'tblTempVendorCDR_20' ) end [2025-04-08 11:51:21] Production.INFO: ProcessCDR(1,14862013,1,1,2) [2025-04-08 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862013', 'tblTempUsageDetail_20' ) start [2025-04-08 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862013', 'tblTempUsageDetail_20' ) end [2025-04-08 11:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:51:25] Production.INFO: ==8707== Releasing lock... [2025-04-08 11:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:51:25] Production.INFO: 61 MB #Memory Used# [2025-04-08 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:52:05 [end_date_ymd] => 2025-04-08 11:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:52:05' and `end` < '2025-04-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-04-08 11:52:19] Production.INFO: count ==4432 [2025-04-08 11:52:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:52:05 - End Time 2025-04-08 11:52:05 [2025-04-08 11:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862018', 'tblTempUsageDetail_20' ) start [2025-04-08 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862018', 'tblTempUsageDetail_20' ) end [2025-04-08 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862018', 'tblTempVendorCDR_20' ) start [2025-04-08 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862018', 'tblTempVendorCDR_20' ) end [2025-04-08 11:52:20] Production.INFO: ProcessCDR(1,14862018,1,1,2) [2025-04-08 11:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862018', 'tblTempUsageDetail_20' ) start [2025-04-08 11:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862018', 'tblTempUsageDetail_20' ) end [2025-04-08 11:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:52:26] Production.INFO: ==8781== Releasing lock... [2025-04-08 11:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:52:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-08 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:53:05 [end_date_ymd] => 2025-04-08 11:53:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:53:05' and `end` < '2025-04-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-04-08 11:53:19] Production.INFO: count ==4420 [2025-04-08 11:53:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:53:05 - End Time 2025-04-08 11:53:05 [2025-04-08 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862023', 'tblTempUsageDetail_20' ) start [2025-04-08 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862023', 'tblTempUsageDetail_20' ) end [2025-04-08 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862023', 'tblTempVendorCDR_20' ) start [2025-04-08 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862023', 'tblTempVendorCDR_20' ) end [2025-04-08 11:53:21] Production.INFO: ProcessCDR(1,14862023,1,1,2) [2025-04-08 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862023', 'tblTempUsageDetail_20' ) start [2025-04-08 11:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862023', 'tblTempUsageDetail_20' ) end [2025-04-08 11:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:53:27] Production.INFO: ==8856== Releasing lock... [2025-04-08 11:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:53:27] Production.INFO: 61 MB #Memory Used# [2025-04-08 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:54:05 [end_date_ymd] => 2025-04-08 11:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:54:05' and `end` < '2025-04-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-04-08 11:54:19] Production.INFO: count ==4433 [2025-04-08 11:54:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:54:05 - End Time 2025-04-08 11:54:05 [2025-04-08 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862028', 'tblTempUsageDetail_20' ) start [2025-04-08 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862028', 'tblTempUsageDetail_20' ) end [2025-04-08 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862028', 'tblTempVendorCDR_20' ) start [2025-04-08 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862028', 'tblTempVendorCDR_20' ) end [2025-04-08 11:54:21] Production.INFO: ProcessCDR(1,14862028,1,1,2) [2025-04-08 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862028', 'tblTempUsageDetail_20' ) start [2025-04-08 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862028', 'tblTempUsageDetail_20' ) end [2025-04-08 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:54:26] Production.INFO: ==8931== Releasing lock... [2025-04-08 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:54:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-08 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:55:05 [end_date_ymd] => 2025-04-08 11:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:55:05' and `end` < '2025-04-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-04-08 11:55:19] Production.INFO: count ==4451 [2025-04-08 11:55:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:55:05 - End Time 2025-04-08 11:55:05 [2025-04-08 11:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862033', 'tblTempUsageDetail_20' ) start [2025-04-08 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862033', 'tblTempUsageDetail_20' ) end [2025-04-08 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862033', 'tblTempVendorCDR_20' ) start [2025-04-08 11:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862033', 'tblTempVendorCDR_20' ) end [2025-04-08 11:55:21] Production.INFO: ProcessCDR(1,14862033,1,1,2) [2025-04-08 11:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862033', 'tblTempUsageDetail_20' ) start [2025-04-08 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862033', 'tblTempUsageDetail_20' ) end [2025-04-08 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:55:26] Production.INFO: ==9008== Releasing lock... [2025-04-08 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:55:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-08 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:56:06 [end_date_ymd] => 2025-04-08 11:56:06 [RateCDR] => 1 ) [2025-04-08 11: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-04-08 08:56:06' and `end` < '2025-04-08 11: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-04-08 11:56:19] Production.INFO: count ==4441 [2025-04-08 11:56:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:56:06 - End Time 2025-04-08 11:56:06 [2025-04-08 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862038', 'tblTempUsageDetail_20' ) start [2025-04-08 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862038', 'tblTempUsageDetail_20' ) end [2025-04-08 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862038', 'tblTempVendorCDR_20' ) start [2025-04-08 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862038', 'tblTempVendorCDR_20' ) end [2025-04-08 11:56:21] Production.INFO: ProcessCDR(1,14862038,1,1,2) [2025-04-08 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862038', 'tblTempUsageDetail_20' ) start [2025-04-08 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862038', 'tblTempUsageDetail_20' ) end [2025-04-08 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:56:27] Production.INFO: ==9081== Releasing lock... [2025-04-08 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:56:27] Production.INFO: 61.25 MB #Memory Used# [2025-04-08 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:57:05 [end_date_ymd] => 2025-04-08 11:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:57:05' and `end` < '2025-04-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-04-08 11:57:19] Production.INFO: count ==4443 [2025-04-08 11:57:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:57:05 - End Time 2025-04-08 11:57:05 [2025-04-08 11:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862043', 'tblTempUsageDetail_20' ) start [2025-04-08 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862043', 'tblTempUsageDetail_20' ) end [2025-04-08 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862043', 'tblTempVendorCDR_20' ) start [2025-04-08 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862043', 'tblTempVendorCDR_20' ) end [2025-04-08 11:57:21] Production.INFO: ProcessCDR(1,14862043,1,1,2) [2025-04-08 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862043', 'tblTempUsageDetail_20' ) start [2025-04-08 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862043', 'tblTempUsageDetail_20' ) end [2025-04-08 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:57:26] Production.INFO: ==9158== Releasing lock... [2025-04-08 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:57:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-08 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:58:05 [end_date_ymd] => 2025-04-08 11:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:58:05' and `end` < '2025-04-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-04-08 11:58:19] Production.INFO: count ==4445 [2025-04-08 11:58:20] Production.ERROR: pbx CDR StartTime 2025-04-08 08:58:05 - End Time 2025-04-08 11:58:05 [2025-04-08 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862048', 'tblTempUsageDetail_20' ) start [2025-04-08 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862048', 'tblTempUsageDetail_20' ) end [2025-04-08 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862048', 'tblTempVendorCDR_20' ) start [2025-04-08 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862048', 'tblTempVendorCDR_20' ) end [2025-04-08 11:58:21] Production.INFO: ProcessCDR(1,14862048,1,1,2) [2025-04-08 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862048', 'tblTempUsageDetail_20' ) start [2025-04-08 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862048', 'tblTempUsageDetail_20' ) end [2025-04-08 11:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:58:26] Production.INFO: ==9234== Releasing lock... [2025-04-08 11:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:58:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-08 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 08:59:05 [end_date_ymd] => 2025-04-08 11:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 08:59:05' and `end` < '2025-04-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-04-08 11:59:19] Production.INFO: count ==4451 [2025-04-08 11:59:21] Production.ERROR: pbx CDR StartTime 2025-04-08 08:59:05 - End Time 2025-04-08 11:59:05 [2025-04-08 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862053', 'tblTempUsageDetail_20' ) start [2025-04-08 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862053', 'tblTempUsageDetail_20' ) end [2025-04-08 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862053', 'tblTempVendorCDR_20' ) start [2025-04-08 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862053', 'tblTempVendorCDR_20' ) end [2025-04-08 11:59:21] Production.INFO: ProcessCDR(1,14862053,1,1,2) [2025-04-08 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862053', 'tblTempUsageDetail_20' ) start [2025-04-08 11:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862053', 'tblTempUsageDetail_20' ) end [2025-04-08 11:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 11:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 11:59:26] Production.INFO: ==9344== Releasing lock... [2025-04-08 11:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 11:59:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-08 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:00:06 [end_date_ymd] => 2025-04-08 12:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 09:00:06' and `end` < '2025-04-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-04-08 12:00:20] Production.INFO: count ==4467 [2025-04-08 12:00:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:00:06 - End Time 2025-04-08 12:00:06 [2025-04-08 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862059', 'tblTempUsageDetail_20' ) start [2025-04-08 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862059', 'tblTempUsageDetail_20' ) end [2025-04-08 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862059', 'tblTempVendorCDR_20' ) start [2025-04-08 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862059', 'tblTempVendorCDR_20' ) end [2025-04-08 12:00:22] Production.INFO: ProcessCDR(1,14862059,1,1,2) [2025-04-08 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862059', 'tblTempUsageDetail_20' ) start [2025-04-08 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862059', 'tblTempUsageDetail_20' ) end [2025-04-08 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:00:27] Production.INFO: ==9423== Releasing lock... [2025-04-08 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:00:27] Production.INFO: 61.5 MB #Memory Used# [2025-04-08 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:01:05 [end_date_ymd] => 2025-04-08 12:01:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:01:05' and `end` < '2025-04-08 12: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-04-08 12:01:19] Production.INFO: count ==4559 [2025-04-08 12:01:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:01:05 - End Time 2025-04-08 12:01:05 [2025-04-08 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862064', 'tblTempUsageDetail_20' ) start [2025-04-08 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862064', 'tblTempUsageDetail_20' ) end [2025-04-08 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862064', 'tblTempVendorCDR_20' ) start [2025-04-08 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862064', 'tblTempVendorCDR_20' ) end [2025-04-08 12:01:21] Production.INFO: ProcessCDR(1,14862064,1,1,2) [2025-04-08 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862064', 'tblTempUsageDetail_20' ) start [2025-04-08 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862064', 'tblTempUsageDetail_20' ) end [2025-04-08 12:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:01:26] Production.INFO: ==9511== Releasing lock... [2025-04-08 12:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:01:26] Production.INFO: 62 MB #Memory Used# [2025-04-08 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:02:05 [end_date_ymd] => 2025-04-08 12:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:02:05' and `end` < '2025-04-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-04-08 12:02:19] Production.INFO: count ==4578 [2025-04-08 12:02:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:02:05 - End Time 2025-04-08 12:02:05 [2025-04-08 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862069', 'tblTempUsageDetail_20' ) start [2025-04-08 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862069', 'tblTempUsageDetail_20' ) end [2025-04-08 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862069', 'tblTempVendorCDR_20' ) start [2025-04-08 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862069', 'tblTempVendorCDR_20' ) end [2025-04-08 12:02:21] Production.INFO: ProcessCDR(1,14862069,1,1,2) [2025-04-08 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862069', 'tblTempUsageDetail_20' ) start [2025-04-08 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862069', 'tblTempUsageDetail_20' ) end [2025-04-08 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:02:26] Production.INFO: ==9585== Releasing lock... [2025-04-08 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:02:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:03:05 [end_date_ymd] => 2025-04-08 12:03:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:03:05' and `end` < '2025-04-08 12: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-04-08 12:03:19] Production.INFO: count ==4585 [2025-04-08 12:03:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:03:05 - End Time 2025-04-08 12:03:05 [2025-04-08 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862074', 'tblTempUsageDetail_20' ) start [2025-04-08 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862074', 'tblTempUsageDetail_20' ) end [2025-04-08 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862074', 'tblTempVendorCDR_20' ) start [2025-04-08 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862074', 'tblTempVendorCDR_20' ) end [2025-04-08 12:03:21] Production.INFO: ProcessCDR(1,14862074,1,1,2) [2025-04-08 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862074', 'tblTempUsageDetail_20' ) start [2025-04-08 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862074', 'tblTempUsageDetail_20' ) end [2025-04-08 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:03:26] Production.INFO: ==9658== Releasing lock... [2025-04-08 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:03:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:04:05 [end_date_ymd] => 2025-04-08 12:04:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:04:05' and `end` < '2025-04-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-04-08 12:04:19] Production.INFO: count ==4594 [2025-04-08 12:04:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:04:05 - End Time 2025-04-08 12:04:05 [2025-04-08 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862079', 'tblTempUsageDetail_20' ) start [2025-04-08 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862079', 'tblTempUsageDetail_20' ) end [2025-04-08 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862079', 'tblTempVendorCDR_20' ) start [2025-04-08 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862079', 'tblTempVendorCDR_20' ) end [2025-04-08 12:04:21] Production.INFO: ProcessCDR(1,14862079,1,1,2) [2025-04-08 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862079', 'tblTempUsageDetail_20' ) start [2025-04-08 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862079', 'tblTempUsageDetail_20' ) end [2025-04-08 12:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:04:26] Production.INFO: ==9731== Releasing lock... [2025-04-08 12:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:04:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:05:06 [end_date_ymd] => 2025-04-08 12:05:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:05:06' and `end` < '2025-04-08 12: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-04-08 12:05:19] Production.INFO: count ==4596 [2025-04-08 12:05:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:05:06 - End Time 2025-04-08 12:05:06 [2025-04-08 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862084', 'tblTempUsageDetail_20' ) start [2025-04-08 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862084', 'tblTempUsageDetail_20' ) end [2025-04-08 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862084', 'tblTempVendorCDR_20' ) start [2025-04-08 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862084', 'tblTempVendorCDR_20' ) end [2025-04-08 12:05:21] Production.INFO: ProcessCDR(1,14862084,1,1,2) [2025-04-08 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862084', 'tblTempUsageDetail_20' ) start [2025-04-08 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862084', 'tblTempUsageDetail_20' ) end [2025-04-08 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:05:26] Production.INFO: ==9808== Releasing lock... [2025-04-08 12:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:05:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:06:05 [end_date_ymd] => 2025-04-08 12:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:06:05' and `end` < '2025-04-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-04-08 12:06:18] Production.INFO: count ==4594 [2025-04-08 12:06:20] Production.ERROR: pbx CDR StartTime 2025-04-08 09:06:05 - End Time 2025-04-08 12:06:05 [2025-04-08 12:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862089', 'tblTempUsageDetail_20' ) start [2025-04-08 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862089', 'tblTempUsageDetail_20' ) end [2025-04-08 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862089', 'tblTempVendorCDR_20' ) start [2025-04-08 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862089', 'tblTempVendorCDR_20' ) end [2025-04-08 12:06:20] Production.INFO: ProcessCDR(1,14862089,1,1,2) [2025-04-08 12:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862089', 'tblTempUsageDetail_20' ) start [2025-04-08 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862089', 'tblTempUsageDetail_20' ) end [2025-04-08 12:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:06:26] Production.INFO: ==9883== Releasing lock... [2025-04-08 12:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:06:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:07:05 [end_date_ymd] => 2025-04-08 12:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:07:05' and `end` < '2025-04-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-04-08 12:07:19] Production.INFO: count ==4594 [2025-04-08 12:07:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:07:05 - End Time 2025-04-08 12:07:05 [2025-04-08 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862094', 'tblTempUsageDetail_20' ) start [2025-04-08 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862094', 'tblTempUsageDetail_20' ) end [2025-04-08 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862094', 'tblTempVendorCDR_20' ) start [2025-04-08 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862094', 'tblTempVendorCDR_20' ) end [2025-04-08 12:07:21] Production.INFO: ProcessCDR(1,14862094,1,1,2) [2025-04-08 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862094', 'tblTempUsageDetail_20' ) start [2025-04-08 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862094', 'tblTempUsageDetail_20' ) end [2025-04-08 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:07:26] Production.INFO: ==9954== Releasing lock... [2025-04-08 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:07:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:08:05 [end_date_ymd] => 2025-04-08 12:08:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:08:05' and `end` < '2025-04-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-04-08 12:08:18] Production.INFO: count ==4592 [2025-04-08 12:08:20] Production.ERROR: pbx CDR StartTime 2025-04-08 09:08:05 - End Time 2025-04-08 12:08:05 [2025-04-08 12:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862099', 'tblTempUsageDetail_20' ) start [2025-04-08 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862099', 'tblTempUsageDetail_20' ) end [2025-04-08 12:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862099', 'tblTempVendorCDR_20' ) start [2025-04-08 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862099', 'tblTempVendorCDR_20' ) end [2025-04-08 12:08:21] Production.INFO: ProcessCDR(1,14862099,1,1,2) [2025-04-08 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862099', 'tblTempUsageDetail_20' ) start [2025-04-08 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862099', 'tblTempUsageDetail_20' ) end [2025-04-08 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:08:26] Production.INFO: ==10034== Releasing lock... [2025-04-08 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:08:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:09:05 [end_date_ymd] => 2025-04-08 12:09:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:09:05' and `end` < '2025-04-08 12: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-04-08 12:09:19] Production.INFO: count ==4602 [2025-04-08 12:09:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:09:05 - End Time 2025-04-08 12:09:05 [2025-04-08 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862104', 'tblTempUsageDetail_20' ) start [2025-04-08 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862104', 'tblTempUsageDetail_20' ) end [2025-04-08 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862104', 'tblTempVendorCDR_20' ) start [2025-04-08 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862104', 'tblTempVendorCDR_20' ) end [2025-04-08 12:09:21] Production.INFO: ProcessCDR(1,14862104,1,1,2) [2025-04-08 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862104', 'tblTempUsageDetail_20' ) start [2025-04-08 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862104', 'tblTempUsageDetail_20' ) end [2025-04-08 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:09:26] Production.INFO: ==10107== Releasing lock... [2025-04-08 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:09:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:10:05 [end_date_ymd] => 2025-04-08 12:10:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:10:05' and `end` < '2025-04-08 12: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-04-08 12:10:19] Production.INFO: count ==4628 [2025-04-08 12:10:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:10:05 - End Time 2025-04-08 12:10:05 [2025-04-08 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862110', 'tblTempUsageDetail_20' ) start [2025-04-08 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862110', 'tblTempUsageDetail_20' ) end [2025-04-08 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862110', 'tblTempVendorCDR_20' ) start [2025-04-08 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862110', 'tblTempVendorCDR_20' ) end [2025-04-08 12:10:21] Production.INFO: ProcessCDR(1,14862110,1,1,2) [2025-04-08 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862110', 'tblTempUsageDetail_20' ) start [2025-04-08 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862110', 'tblTempUsageDetail_20' ) end [2025-04-08 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:10:27] Production.INFO: ==10182== Releasing lock... [2025-04-08 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:10:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:11:05 [end_date_ymd] => 2025-04-08 12:11:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:11:05' and `end` < '2025-04-08 12: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-04-08 12:11:19] Production.INFO: count ==4681 [2025-04-08 12:11:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:11:05 - End Time 2025-04-08 12:11:05 [2025-04-08 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862115', 'tblTempUsageDetail_20' ) start [2025-04-08 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862115', 'tblTempUsageDetail_20' ) end [2025-04-08 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862115', 'tblTempVendorCDR_20' ) start [2025-04-08 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862115', 'tblTempVendorCDR_20' ) end [2025-04-08 12:11:21] Production.INFO: ProcessCDR(1,14862115,1,1,2) [2025-04-08 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862115', 'tblTempUsageDetail_20' ) start [2025-04-08 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862115', 'tblTempUsageDetail_20' ) end [2025-04-08 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:11:25] Production.INFO: ==10258== Releasing lock... [2025-04-08 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:11:25] Production.INFO: 63 MB #Memory Used# [2025-04-08 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:12:05 [end_date_ymd] => 2025-04-08 12:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:12:05' and `end` < '2025-04-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-04-08 12:12:18] Production.INFO: count ==4687 [2025-04-08 12:12:20] Production.ERROR: pbx CDR StartTime 2025-04-08 09:12:05 - End Time 2025-04-08 12:12:05 [2025-04-08 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862120', 'tblTempUsageDetail_20' ) start [2025-04-08 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862120', 'tblTempUsageDetail_20' ) end [2025-04-08 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862120', 'tblTempVendorCDR_20' ) start [2025-04-08 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862120', 'tblTempVendorCDR_20' ) end [2025-04-08 12:12:20] Production.INFO: ProcessCDR(1,14862120,1,1,2) [2025-04-08 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862120', 'tblTempUsageDetail_20' ) start [2025-04-08 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862120', 'tblTempUsageDetail_20' ) end [2025-04-08 12:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:12:25] Production.INFO: ==10335== Releasing lock... [2025-04-08 12:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:12:25] Production.INFO: 63 MB #Memory Used# [2025-04-08 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:13:05 [end_date_ymd] => 2025-04-08 12:13:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:13:05' and `end` < '2025-04-08 12: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-04-08 12:13:19] Production.INFO: count ==4696 [2025-04-08 12:13:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:13:05 - End Time 2025-04-08 12:13:05 [2025-04-08 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862125', 'tblTempUsageDetail_20' ) start [2025-04-08 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862125', 'tblTempUsageDetail_20' ) end [2025-04-08 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862125', 'tblTempVendorCDR_20' ) start [2025-04-08 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862125', 'tblTempVendorCDR_20' ) end [2025-04-08 12:13:21] Production.INFO: ProcessCDR(1,14862125,1,1,2) [2025-04-08 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862125', 'tblTempUsageDetail_20' ) start [2025-04-08 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862125', 'tblTempUsageDetail_20' ) end [2025-04-08 12:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:13:26] Production.INFO: ==10408== Releasing lock... [2025-04-08 12:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:13:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:14:06 [end_date_ymd] => 2025-04-08 12:14:06 [RateCDR] => 1 ) [2025-04-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-04-08 09:14:06' and `end` < '2025-04-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-04-08 12:14:19] Production.INFO: count ==4690 [2025-04-08 12:14:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:14:06 - End Time 2025-04-08 12:14:06 [2025-04-08 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862130', 'tblTempUsageDetail_20' ) start [2025-04-08 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862130', 'tblTempUsageDetail_20' ) end [2025-04-08 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862130', 'tblTempVendorCDR_20' ) start [2025-04-08 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862130', 'tblTempVendorCDR_20' ) end [2025-04-08 12:14:21] Production.INFO: ProcessCDR(1,14862130,1,1,2) [2025-04-08 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862130', 'tblTempUsageDetail_20' ) start [2025-04-08 12:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862130', 'tblTempUsageDetail_20' ) end [2025-04-08 12:14:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:14:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:14:27] Production.INFO: ==10522== Releasing lock... [2025-04-08 12:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:14:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:15:05 [end_date_ymd] => 2025-04-08 12:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:15:05' and `end` < '2025-04-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-04-08 12:15:19] Production.INFO: count ==4703 [2025-04-08 12:15:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:15:05 - End Time 2025-04-08 12:15:05 [2025-04-08 12:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862135', 'tblTempUsageDetail_20' ) start [2025-04-08 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862135', 'tblTempUsageDetail_20' ) end [2025-04-08 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862135', 'tblTempVendorCDR_20' ) start [2025-04-08 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862135', 'tblTempVendorCDR_20' ) end [2025-04-08 12:15:21] Production.INFO: ProcessCDR(1,14862135,1,1,2) [2025-04-08 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862135', 'tblTempUsageDetail_20' ) start [2025-04-08 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862135', 'tblTempUsageDetail_20' ) end [2025-04-08 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:15:26] Production.INFO: ==10592== Releasing lock... [2025-04-08 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:15:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:16:05 [end_date_ymd] => 2025-04-08 12:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:16:05' and `end` < '2025-04-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-04-08 12:16:19] Production.INFO: count ==4709 [2025-04-08 12:16:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:16:05 - End Time 2025-04-08 12:16:05 [2025-04-08 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862140', 'tblTempUsageDetail_20' ) start [2025-04-08 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862140', 'tblTempUsageDetail_20' ) end [2025-04-08 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862140', 'tblTempVendorCDR_20' ) start [2025-04-08 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862140', 'tblTempVendorCDR_20' ) end [2025-04-08 12:16:21] Production.INFO: ProcessCDR(1,14862140,1,1,2) [2025-04-08 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862140', 'tblTempUsageDetail_20' ) start [2025-04-08 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862140', 'tblTempUsageDetail_20' ) end [2025-04-08 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:16:26] Production.INFO: ==10668== Releasing lock... [2025-04-08 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:16:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:17:05 [end_date_ymd] => 2025-04-08 12:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:17:05' and `end` < '2025-04-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-04-08 12:17:19] Production.INFO: count ==4731 [2025-04-08 12:17:20] Production.ERROR: pbx CDR StartTime 2025-04-08 09:17:05 - End Time 2025-04-08 12:17:05 [2025-04-08 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862145', 'tblTempUsageDetail_20' ) start [2025-04-08 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862145', 'tblTempUsageDetail_20' ) end [2025-04-08 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862145', 'tblTempVendorCDR_20' ) start [2025-04-08 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862145', 'tblTempVendorCDR_20' ) end [2025-04-08 12:17:21] Production.INFO: ProcessCDR(1,14862145,1,1,2) [2025-04-08 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862145', 'tblTempUsageDetail_20' ) start [2025-04-08 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862145', 'tblTempUsageDetail_20' ) end [2025-04-08 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:17:26] Production.INFO: ==10739== Releasing lock... [2025-04-08 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:17:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:18:06 [end_date_ymd] => 2025-04-08 12:18:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:18:06' and `end` < '2025-04-08 12: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-04-08 12:18:20] Production.INFO: count ==4730 [2025-04-08 12:18:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:18:06 - End Time 2025-04-08 12:18:06 [2025-04-08 12:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862150', 'tblTempUsageDetail_20' ) start [2025-04-08 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862150', 'tblTempUsageDetail_20' ) end [2025-04-08 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862150', 'tblTempVendorCDR_20' ) start [2025-04-08 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862150', 'tblTempVendorCDR_20' ) end [2025-04-08 12:18:22] Production.INFO: ProcessCDR(1,14862150,1,1,2) [2025-04-08 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862150', 'tblTempUsageDetail_20' ) start [2025-04-08 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862150', 'tblTempUsageDetail_20' ) end [2025-04-08 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:18:27] Production.INFO: ==10813== Releasing lock... [2025-04-08 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:18:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:19:05 [end_date_ymd] => 2025-04-08 12:19:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:19:05' and `end` < '2025-04-08 12: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-04-08 12:19:19] Production.INFO: count ==4726 [2025-04-08 12:19:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:19:05 - End Time 2025-04-08 12:19:05 [2025-04-08 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862155', 'tblTempUsageDetail_20' ) start [2025-04-08 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862155', 'tblTempUsageDetail_20' ) end [2025-04-08 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862155', 'tblTempVendorCDR_20' ) start [2025-04-08 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862155', 'tblTempVendorCDR_20' ) end [2025-04-08 12:19:21] Production.INFO: ProcessCDR(1,14862155,1,1,2) [2025-04-08 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862155', 'tblTempUsageDetail_20' ) start [2025-04-08 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862155', 'tblTempUsageDetail_20' ) end [2025-04-08 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:19:26] Production.INFO: ==10890== Releasing lock... [2025-04-08 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:19:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:20:06 [end_date_ymd] => 2025-04-08 12:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 09:20:06' and `end` < '2025-04-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-04-08 12:20:20] Production.INFO: count ==4737 [2025-04-08 12:20:22] Production.ERROR: pbx CDR StartTime 2025-04-08 09:20:06 - End Time 2025-04-08 12:20:06 [2025-04-08 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862161', 'tblTempUsageDetail_20' ) start [2025-04-08 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862161', 'tblTempUsageDetail_20' ) end [2025-04-08 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862161', 'tblTempVendorCDR_20' ) start [2025-04-08 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862161', 'tblTempVendorCDR_20' ) end [2025-04-08 12:20:22] Production.INFO: ProcessCDR(1,14862161,1,1,2) [2025-04-08 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862161', 'tblTempUsageDetail_20' ) start [2025-04-08 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862161', 'tblTempUsageDetail_20' ) end [2025-04-08 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:20:27] Production.INFO: ==10969== Releasing lock... [2025-04-08 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:20:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:21:05 [end_date_ymd] => 2025-04-08 12:21:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:21:05' and `end` < '2025-04-08 12: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-04-08 12:21:18] Production.INFO: count ==4789 [2025-04-08 12:21:20] Production.ERROR: pbx CDR StartTime 2025-04-08 09:21:05 - End Time 2025-04-08 12:21:05 [2025-04-08 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862166', 'tblTempUsageDetail_20' ) start [2025-04-08 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862166', 'tblTempUsageDetail_20' ) end [2025-04-08 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862166', 'tblTempVendorCDR_20' ) start [2025-04-08 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862166', 'tblTempVendorCDR_20' ) end [2025-04-08 12:21:21] Production.INFO: ProcessCDR(1,14862166,1,1,2) [2025-04-08 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862166', 'tblTempUsageDetail_20' ) start [2025-04-08 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862166', 'tblTempUsageDetail_20' ) end [2025-04-08 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:21:26] Production.INFO: ==11042== Releasing lock... [2025-04-08 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:21:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:22:05 [end_date_ymd] => 2025-04-08 12:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:22:05' and `end` < '2025-04-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-04-08 12:22:19] Production.INFO: count ==4783 [2025-04-08 12:22:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:22:05 - End Time 2025-04-08 12:22:05 [2025-04-08 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862171', 'tblTempUsageDetail_20' ) start [2025-04-08 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862171', 'tblTempUsageDetail_20' ) end [2025-04-08 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862171', 'tblTempVendorCDR_20' ) start [2025-04-08 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862171', 'tblTempVendorCDR_20' ) end [2025-04-08 12:22:21] Production.INFO: ProcessCDR(1,14862171,1,1,2) [2025-04-08 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862171', 'tblTempUsageDetail_20' ) start [2025-04-08 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862171', 'tblTempUsageDetail_20' ) end [2025-04-08 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:22:26] Production.INFO: ==11117== Releasing lock... [2025-04-08 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:22:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:23:05 [end_date_ymd] => 2025-04-08 12:23:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:23:05' and `end` < '2025-04-08 12: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-04-08 12:23:18] Production.INFO: count ==4788 [2025-04-08 12:23:20] Production.ERROR: pbx CDR StartTime 2025-04-08 09:23:05 - End Time 2025-04-08 12:23:05 [2025-04-08 12:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862176', 'tblTempUsageDetail_20' ) start [2025-04-08 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862176', 'tblTempUsageDetail_20' ) end [2025-04-08 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862176', 'tblTempVendorCDR_20' ) start [2025-04-08 12:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862176', 'tblTempVendorCDR_20' ) end [2025-04-08 12:23:20] Production.INFO: ProcessCDR(1,14862176,1,1,2) [2025-04-08 12:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862176', 'tblTempUsageDetail_20' ) start [2025-04-08 12:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862176', 'tblTempUsageDetail_20' ) end [2025-04-08 12:23:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:23:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:23:25] Production.INFO: ==11190== Releasing lock... [2025-04-08 12:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:23:25] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:24:05 [end_date_ymd] => 2025-04-08 12:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:24:05' and `end` < '2025-04-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-04-08 12:24:19] Production.INFO: count ==4791 [2025-04-08 12:24:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:24:05 - End Time 2025-04-08 12:24:05 [2025-04-08 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862181', 'tblTempUsageDetail_20' ) start [2025-04-08 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862181', 'tblTempUsageDetail_20' ) end [2025-04-08 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862181', 'tblTempVendorCDR_20' ) start [2025-04-08 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862181', 'tblTempVendorCDR_20' ) end [2025-04-08 12:24:21] Production.INFO: ProcessCDR(1,14862181,1,1,2) [2025-04-08 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862181', 'tblTempUsageDetail_20' ) start [2025-04-08 12:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862181', 'tblTempUsageDetail_20' ) end [2025-04-08 12:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:24:27] Production.INFO: ==11264== Releasing lock... [2025-04-08 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:24:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:25:05 [end_date_ymd] => 2025-04-08 12:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:25:05' and `end` < '2025-04-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-04-08 12:25:19] Production.INFO: count ==4793 [2025-04-08 12:25:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:25:05 - End Time 2025-04-08 12:25:05 [2025-04-08 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862183', 'tblTempUsageDetail_20' ) start [2025-04-08 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862183', 'tblTempUsageDetail_20' ) end [2025-04-08 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862183', 'tblTempVendorCDR_20' ) start [2025-04-08 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862183', 'tblTempVendorCDR_20' ) end [2025-04-08 12:25:21] Production.INFO: ProcessCDR(1,14862183,1,1,2) [2025-04-08 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862183', 'tblTempUsageDetail_20' ) start [2025-04-08 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862183', 'tblTempUsageDetail_20' ) end [2025-04-08 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:25:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:25:24] Production.INFO: ==11336== Releasing lock... [2025-04-08 12:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:25:24] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:26:06 [end_date_ymd] => 2025-04-08 12:26:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:26:06' and `end` < '2025-04-08 12: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-04-08 12:26:20] Production.INFO: count ==4796 [2025-04-08 12:26:22] Production.ERROR: pbx CDR StartTime 2025-04-08 09:26:06 - End Time 2025-04-08 12:26:06 [2025-04-08 12:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862191', 'tblTempUsageDetail_20' ) start [2025-04-08 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862191', 'tblTempUsageDetail_20' ) end [2025-04-08 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862191', 'tblTempVendorCDR_20' ) start [2025-04-08 12:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862191', 'tblTempVendorCDR_20' ) end [2025-04-08 12:26:22] Production.INFO: ProcessCDR(1,14862191,1,1,2) [2025-04-08 12:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862191', 'tblTempUsageDetail_20' ) start [2025-04-08 12:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862191', 'tblTempUsageDetail_20' ) end [2025-04-08 12:26:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:26:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:26:27] Production.INFO: ==11410== Releasing lock... [2025-04-08 12:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:26:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:27:05 [end_date_ymd] => 2025-04-08 12:27:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:27:05' and `end` < '2025-04-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-04-08 12:27:19] Production.INFO: count ==4795 [2025-04-08 12:27:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:27:05 - End Time 2025-04-08 12:27:05 [2025-04-08 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862196', 'tblTempUsageDetail_20' ) start [2025-04-08 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862196', 'tblTempUsageDetail_20' ) end [2025-04-08 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862196', 'tblTempVendorCDR_20' ) start [2025-04-08 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862196', 'tblTempVendorCDR_20' ) end [2025-04-08 12:27:21] Production.INFO: ProcessCDR(1,14862196,1,1,2) [2025-04-08 12:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862196', 'tblTempUsageDetail_20' ) start [2025-04-08 12:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862196', 'tblTempUsageDetail_20' ) end [2025-04-08 12:27:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:27:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:27:24] Production.INFO: ==11493== Releasing lock... [2025-04-08 12:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:27:24] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:28:05 [end_date_ymd] => 2025-04-08 12:28:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:28:05' and `end` < '2025-04-08 12: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-04-08 12:28:19] Production.INFO: count ==4798 [2025-04-08 12:28:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:28:05 - End Time 2025-04-08 12:28:05 [2025-04-08 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862201', 'tblTempUsageDetail_20' ) start [2025-04-08 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862201', 'tblTempUsageDetail_20' ) end [2025-04-08 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862201', 'tblTempVendorCDR_20' ) start [2025-04-08 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862201', 'tblTempVendorCDR_20' ) end [2025-04-08 12:28:21] Production.INFO: ProcessCDR(1,14862201,1,1,2) [2025-04-08 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862201', 'tblTempUsageDetail_20' ) start [2025-04-08 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862201', 'tblTempUsageDetail_20' ) end [2025-04-08 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:28:27] Production.INFO: ==11569== Releasing lock... [2025-04-08 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:28:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:29:05 [end_date_ymd] => 2025-04-08 12:29:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:29:05' and `end` < '2025-04-08 12: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-04-08 12:29:19] Production.INFO: count ==4795 [2025-04-08 12:29:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:29:05 - End Time 2025-04-08 12:29:05 [2025-04-08 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862206', 'tblTempUsageDetail_20' ) start [2025-04-08 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862206', 'tblTempUsageDetail_20' ) end [2025-04-08 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862206', 'tblTempVendorCDR_20' ) start [2025-04-08 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862206', 'tblTempVendorCDR_20' ) end [2025-04-08 12:29:21] Production.INFO: ProcessCDR(1,14862206,1,1,2) [2025-04-08 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862206', 'tblTempUsageDetail_20' ) start [2025-04-08 12:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862206', 'tblTempUsageDetail_20' ) end [2025-04-08 12:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:29:27] Production.INFO: ==11640== Releasing lock... [2025-04-08 12:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:29:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:30:06 [end_date_ymd] => 2025-04-08 12:30:06 [RateCDR] => 1 ) [2025-04-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-04-08 09:30:06' and `end` < '2025-04-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-04-08 12:30:20] Production.INFO: count ==4802 [2025-04-08 12:30:22] Production.ERROR: pbx CDR StartTime 2025-04-08 09:30:06 - End Time 2025-04-08 12:30:06 [2025-04-08 12:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862212', 'tblTempUsageDetail_20' ) start [2025-04-08 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862212', 'tblTempUsageDetail_20' ) end [2025-04-08 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862212', 'tblTempVendorCDR_20' ) start [2025-04-08 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862212', 'tblTempVendorCDR_20' ) end [2025-04-08 12:30:22] Production.INFO: ProcessCDR(1,14862212,1,1,2) [2025-04-08 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862212', 'tblTempUsageDetail_20' ) start [2025-04-08 12:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862212', 'tblTempUsageDetail_20' ) end [2025-04-08 12:30:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:30:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:30:28] Production.INFO: ==11759== Releasing lock... [2025-04-08 12:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:30:28] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:31:05 [end_date_ymd] => 2025-04-08 12:31:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:31:05' and `end` < '2025-04-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-04-08 12:31:19] Production.INFO: count ==4834 [2025-04-08 12:31:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:31:05 - End Time 2025-04-08 12:31:05 [2025-04-08 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862217', 'tblTempUsageDetail_20' ) start [2025-04-08 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862217', 'tblTempUsageDetail_20' ) end [2025-04-08 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862217', 'tblTempVendorCDR_20' ) start [2025-04-08 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862217', 'tblTempVendorCDR_20' ) end [2025-04-08 12:31:21] Production.INFO: ProcessCDR(1,14862217,1,1,2) [2025-04-08 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862217', 'tblTempUsageDetail_20' ) start [2025-04-08 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862217', 'tblTempUsageDetail_20' ) end [2025-04-08 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:31:27] Production.INFO: ==11836== Releasing lock... [2025-04-08 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:31:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:32:06 [end_date_ymd] => 2025-04-08 12:32:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:32:06' and `end` < '2025-04-08 12: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-04-08 12:32:19] Production.INFO: count ==4843 [2025-04-08 12:32:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:32:06 - End Time 2025-04-08 12:32:06 [2025-04-08 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862222', 'tblTempUsageDetail_20' ) start [2025-04-08 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862222', 'tblTempUsageDetail_20' ) end [2025-04-08 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862222', 'tblTempVendorCDR_20' ) start [2025-04-08 12:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862222', 'tblTempVendorCDR_20' ) end [2025-04-08 12:32:22] Production.INFO: ProcessCDR(1,14862222,1,1,2) [2025-04-08 12:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862222', 'tblTempUsageDetail_20' ) start [2025-04-08 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862222', 'tblTempUsageDetail_20' ) end [2025-04-08 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:32:27] Production.INFO: ==11908== Releasing lock... [2025-04-08 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:32:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:33:05 [end_date_ymd] => 2025-04-08 12:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:33:05' and `end` < '2025-04-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-04-08 12:33:19] Production.INFO: count ==4832 [2025-04-08 12:33:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:33:05 - End Time 2025-04-08 12:33:05 [2025-04-08 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862227', 'tblTempUsageDetail_20' ) start [2025-04-08 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862227', 'tblTempUsageDetail_20' ) end [2025-04-08 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862227', 'tblTempVendorCDR_20' ) start [2025-04-08 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862227', 'tblTempVendorCDR_20' ) end [2025-04-08 12:33:21] Production.INFO: ProcessCDR(1,14862227,1,1,2) [2025-04-08 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862227', 'tblTempUsageDetail_20' ) start [2025-04-08 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862227', 'tblTempUsageDetail_20' ) end [2025-04-08 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:33:26] Production.INFO: ==11986== Releasing lock... [2025-04-08 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:33:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:34:05 [end_date_ymd] => 2025-04-08 12:34:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:34:05' and `end` < '2025-04-08 12: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-04-08 12:34:19] Production.INFO: count ==4832 [2025-04-08 12:34:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:34:05 - End Time 2025-04-08 12:34:05 [2025-04-08 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862232', 'tblTempUsageDetail_20' ) start [2025-04-08 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862232', 'tblTempUsageDetail_20' ) end [2025-04-08 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862232', 'tblTempVendorCDR_20' ) start [2025-04-08 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862232', 'tblTempVendorCDR_20' ) end [2025-04-08 12:34:21] Production.INFO: ProcessCDR(1,14862232,1,1,2) [2025-04-08 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862232', 'tblTempUsageDetail_20' ) start [2025-04-08 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862232', 'tblTempUsageDetail_20' ) end [2025-04-08 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:34:27] Production.INFO: ==12059== Releasing lock... [2025-04-08 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:34:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:35:05 [end_date_ymd] => 2025-04-08 12:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:35:05' and `end` < '2025-04-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-04-08 12:35:19] Production.INFO: count ==4822 [2025-04-08 12:35:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:35:05 - End Time 2025-04-08 12:35:05 [2025-04-08 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862237', 'tblTempUsageDetail_20' ) start [2025-04-08 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862237', 'tblTempUsageDetail_20' ) end [2025-04-08 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862237', 'tblTempVendorCDR_20' ) start [2025-04-08 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862237', 'tblTempVendorCDR_20' ) end [2025-04-08 12:35:21] Production.INFO: ProcessCDR(1,14862237,1,1,2) [2025-04-08 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862237', 'tblTempUsageDetail_20' ) start [2025-04-08 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862237', 'tblTempUsageDetail_20' ) end [2025-04-08 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:35:26] Production.INFO: ==12133== Releasing lock... [2025-04-08 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:35:26] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:36:05 [end_date_ymd] => 2025-04-08 12:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:36:05' and `end` < '2025-04-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-04-08 12:36:19] Production.INFO: count ==4804 [2025-04-08 12:36:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:36:05 - End Time 2025-04-08 12:36:05 [2025-04-08 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862242', 'tblTempUsageDetail_20' ) start [2025-04-08 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862242', 'tblTempUsageDetail_20' ) end [2025-04-08 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862242', 'tblTempVendorCDR_20' ) start [2025-04-08 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862242', 'tblTempVendorCDR_20' ) end [2025-04-08 12:36:21] Production.INFO: ProcessCDR(1,14862242,1,1,2) [2025-04-08 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862242', 'tblTempUsageDetail_20' ) start [2025-04-08 12:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862242', 'tblTempUsageDetail_20' ) end [2025-04-08 12:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:36:27] Production.INFO: ==12205== Releasing lock... [2025-04-08 12:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:36:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:37:05 [end_date_ymd] => 2025-04-08 12:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:37:05' and `end` < '2025-04-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-04-08 12:37:19] Production.INFO: count ==4784 [2025-04-08 12:37:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:37:05 - End Time 2025-04-08 12:37:05 [2025-04-08 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862247', 'tblTempUsageDetail_20' ) start [2025-04-08 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862247', 'tblTempUsageDetail_20' ) end [2025-04-08 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862247', 'tblTempVendorCDR_20' ) start [2025-04-08 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862247', 'tblTempVendorCDR_20' ) end [2025-04-08 12:37:21] Production.INFO: ProcessCDR(1,14862247,1,1,2) [2025-04-08 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862247', 'tblTempUsageDetail_20' ) start [2025-04-08 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862247', 'tblTempUsageDetail_20' ) end [2025-04-08 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:37:27] Production.INFO: ==12278== Releasing lock... [2025-04-08 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:37:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:38:05 [end_date_ymd] => 2025-04-08 12:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:38:05' and `end` < '2025-04-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-04-08 12:38:19] Production.INFO: count ==4769 [2025-04-08 12:38:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:38:05 - End Time 2025-04-08 12:38:05 [2025-04-08 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862252', 'tblTempUsageDetail_20' ) start [2025-04-08 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862252', 'tblTempUsageDetail_20' ) end [2025-04-08 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862252', 'tblTempVendorCDR_20' ) start [2025-04-08 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862252', 'tblTempVendorCDR_20' ) end [2025-04-08 12:38:21] Production.INFO: ProcessCDR(1,14862252,1,1,2) [2025-04-08 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862252', 'tblTempUsageDetail_20' ) start [2025-04-08 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862252', 'tblTempUsageDetail_20' ) end [2025-04-08 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:38:27] Production.INFO: ==12354== Releasing lock... [2025-04-08 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:38:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:39:05 [end_date_ymd] => 2025-04-08 12:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:39:05' and `end` < '2025-04-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-04-08 12:39:19] Production.INFO: count ==4762 [2025-04-08 12:39:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:39:05 - End Time 2025-04-08 12:39:05 [2025-04-08 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862257', 'tblTempUsageDetail_20' ) start [2025-04-08 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862257', 'tblTempUsageDetail_20' ) end [2025-04-08 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862257', 'tblTempVendorCDR_20' ) start [2025-04-08 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862257', 'tblTempVendorCDR_20' ) end [2025-04-08 12:39:21] Production.INFO: ProcessCDR(1,14862257,1,1,2) [2025-04-08 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862257', 'tblTempUsageDetail_20' ) start [2025-04-08 12:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862257', 'tblTempUsageDetail_20' ) end [2025-04-08 12:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:39:27] Production.INFO: ==12427== Releasing lock... [2025-04-08 12:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:39:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:40:06 [end_date_ymd] => 2025-04-08 12:40:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:40:06' and `end` < '2025-04-08 12: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-04-08 12:40:22] Production.INFO: count ==4760 [2025-04-08 12:40:24] Production.ERROR: pbx CDR StartTime 2025-04-08 09:40:06 - End Time 2025-04-08 12:40:06 [2025-04-08 12:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862263', 'tblTempUsageDetail_20' ) start [2025-04-08 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862263', 'tblTempUsageDetail_20' ) end [2025-04-08 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862263', 'tblTempVendorCDR_20' ) start [2025-04-08 12:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862263', 'tblTempVendorCDR_20' ) end [2025-04-08 12:40:24] Production.INFO: ProcessCDR(1,14862263,1,1,2) [2025-04-08 12:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:40:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862263', 'tblTempUsageDetail_20' ) start [2025-04-08 12:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862263', 'tblTempUsageDetail_20' ) end [2025-04-08 12:40:30] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:40:30] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:40:30] Production.INFO: ==12500== Releasing lock... [2025-04-08 12:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:40:30] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:41:05 [end_date_ymd] => 2025-04-08 12:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:41:05' and `end` < '2025-04-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-04-08 12:41:19] Production.INFO: count ==4804 [2025-04-08 12:41:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:41:05 - End Time 2025-04-08 12:41:05 [2025-04-08 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862268', 'tblTempUsageDetail_20' ) start [2025-04-08 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862268', 'tblTempUsageDetail_20' ) end [2025-04-08 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862268', 'tblTempVendorCDR_20' ) start [2025-04-08 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862268', 'tblTempVendorCDR_20' ) end [2025-04-08 12:41:21] Production.INFO: ProcessCDR(1,14862268,1,1,2) [2025-04-08 12:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862268', 'tblTempUsageDetail_20' ) start [2025-04-08 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862268', 'tblTempUsageDetail_20' ) end [2025-04-08 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:41:27] Production.INFO: ==12579== Releasing lock... [2025-04-08 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:41:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:42:05 [end_date_ymd] => 2025-04-08 12:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:42:05' and `end` < '2025-04-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-04-08 12:42:19] Production.INFO: count ==4810 [2025-04-08 12:42:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:42:05 - End Time 2025-04-08 12:42:05 [2025-04-08 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862273', 'tblTempUsageDetail_20' ) start [2025-04-08 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862273', 'tblTempUsageDetail_20' ) end [2025-04-08 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862273', 'tblTempVendorCDR_20' ) start [2025-04-08 12:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862273', 'tblTempVendorCDR_20' ) end [2025-04-08 12:42:22] Production.INFO: ProcessCDR(1,14862273,1,1,2) [2025-04-08 12:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862273', 'tblTempUsageDetail_20' ) start [2025-04-08 12:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862273', 'tblTempUsageDetail_20' ) end [2025-04-08 12:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:42:27] Production.INFO: ==12658== Releasing lock... [2025-04-08 12:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:42:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:43:06 [end_date_ymd] => 2025-04-08 12:43:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:43:06' and `end` < '2025-04-08 12: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-04-08 12:43:20] Production.INFO: count ==4816 [2025-04-08 12:43:22] Production.ERROR: pbx CDR StartTime 2025-04-08 09:43:06 - End Time 2025-04-08 12:43:06 [2025-04-08 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862278', 'tblTempUsageDetail_20' ) start [2025-04-08 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862278', 'tblTempUsageDetail_20' ) end [2025-04-08 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862278', 'tblTempVendorCDR_20' ) start [2025-04-08 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862278', 'tblTempVendorCDR_20' ) end [2025-04-08 12:43:22] Production.INFO: ProcessCDR(1,14862278,1,1,2) [2025-04-08 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862278', 'tblTempUsageDetail_20' ) start [2025-04-08 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862278', 'tblTempUsageDetail_20' ) end [2025-04-08 12:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:43:28] Production.INFO: ==12731== Releasing lock... [2025-04-08 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:43:28] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:44:05 [end_date_ymd] => 2025-04-08 12:44:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:44:05' and `end` < '2025-04-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-04-08 12:44:19] Production.INFO: count ==4821 [2025-04-08 12:44:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:44:05 - End Time 2025-04-08 12:44:05 [2025-04-08 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862283', 'tblTempUsageDetail_20' ) start [2025-04-08 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862283', 'tblTempUsageDetail_20' ) end [2025-04-08 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862283', 'tblTempVendorCDR_20' ) start [2025-04-08 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862283', 'tblTempVendorCDR_20' ) end [2025-04-08 12:44:21] Production.INFO: ProcessCDR(1,14862283,1,1,2) [2025-04-08 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862283', 'tblTempUsageDetail_20' ) start [2025-04-08 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862283', 'tblTempUsageDetail_20' ) end [2025-04-08 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:44:27] Production.INFO: ==12805== Releasing lock... [2025-04-08 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:44:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:45:06 [end_date_ymd] => 2025-04-08 12:45:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:45:06' and `end` < '2025-04-08 12: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-04-08 12:45:20] Production.INFO: count ==4822 [2025-04-08 12:45:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:45:06 - End Time 2025-04-08 12:45:06 [2025-04-08 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862288', 'tblTempUsageDetail_20' ) start [2025-04-08 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862288', 'tblTempUsageDetail_20' ) end [2025-04-08 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862288', 'tblTempVendorCDR_20' ) start [2025-04-08 12:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862288', 'tblTempVendorCDR_20' ) end [2025-04-08 12:45:22] Production.INFO: ProcessCDR(1,14862288,1,1,2) [2025-04-08 12:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862288', 'tblTempUsageDetail_20' ) start [2025-04-08 12:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862288', 'tblTempUsageDetail_20' ) end [2025-04-08 12:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:45:27] Production.INFO: ==12921== Releasing lock... [2025-04-08 12:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:45:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:46:05 [end_date_ymd] => 2025-04-08 12:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:46:05' and `end` < '2025-04-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-04-08 12:46:19] Production.INFO: count ==4831 [2025-04-08 12:46:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:46:05 - End Time 2025-04-08 12:46:05 [2025-04-08 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862293', 'tblTempUsageDetail_20' ) start [2025-04-08 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862293', 'tblTempUsageDetail_20' ) end [2025-04-08 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862293', 'tblTempVendorCDR_20' ) start [2025-04-08 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862293', 'tblTempVendorCDR_20' ) end [2025-04-08 12:46:21] Production.INFO: ProcessCDR(1,14862293,1,1,2) [2025-04-08 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862293', 'tblTempUsageDetail_20' ) start [2025-04-08 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862293', 'tblTempUsageDetail_20' ) end [2025-04-08 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:46:27] Production.INFO: ==13001== Releasing lock... [2025-04-08 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:46:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:47:06 [end_date_ymd] => 2025-04-08 12:47:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:47:06' and `end` < '2025-04-08 12: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-04-08 12:47:20] Production.INFO: count ==4809 [2025-04-08 12:47:22] Production.ERROR: pbx CDR StartTime 2025-04-08 09:47:06 - End Time 2025-04-08 12:47:06 [2025-04-08 12:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862298', 'tblTempUsageDetail_20' ) start [2025-04-08 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862298', 'tblTempUsageDetail_20' ) end [2025-04-08 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862298', 'tblTempVendorCDR_20' ) start [2025-04-08 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862298', 'tblTempVendorCDR_20' ) end [2025-04-08 12:47:22] Production.INFO: ProcessCDR(1,14862298,1,1,2) [2025-04-08 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862298', 'tblTempUsageDetail_20' ) start [2025-04-08 12:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862298', 'tblTempUsageDetail_20' ) end [2025-04-08 12:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:47:27] Production.INFO: ==13076== Releasing lock... [2025-04-08 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:47:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:48:05 [end_date_ymd] => 2025-04-08 12:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:48:05' and `end` < '2025-04-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-04-08 12:48:19] Production.INFO: count ==4798 [2025-04-08 12:48:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:48:05 - End Time 2025-04-08 12:48:05 [2025-04-08 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862303', 'tblTempUsageDetail_20' ) start [2025-04-08 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862303', 'tblTempUsageDetail_20' ) end [2025-04-08 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862303', 'tblTempVendorCDR_20' ) start [2025-04-08 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862303', 'tblTempVendorCDR_20' ) end [2025-04-08 12:48:21] Production.INFO: ProcessCDR(1,14862303,1,1,2) [2025-04-08 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862303', 'tblTempUsageDetail_20' ) start [2025-04-08 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862303', 'tblTempUsageDetail_20' ) end [2025-04-08 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:48:27] Production.INFO: ==13151== Releasing lock... [2025-04-08 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:48:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:49:06 [end_date_ymd] => 2025-04-08 12:49:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:49:06' and `end` < '2025-04-08 12: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-04-08 12:49:19] Production.INFO: count ==4797 [2025-04-08 12:49:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:49:06 - End Time 2025-04-08 12:49:06 [2025-04-08 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862308', 'tblTempUsageDetail_20' ) start [2025-04-08 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862308', 'tblTempUsageDetail_20' ) end [2025-04-08 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862308', 'tblTempVendorCDR_20' ) start [2025-04-08 12:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862308', 'tblTempVendorCDR_20' ) end [2025-04-08 12:49:22] Production.INFO: ProcessCDR(1,14862308,1,1,2) [2025-04-08 12:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862308', 'tblTempUsageDetail_20' ) start [2025-04-08 12:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862308', 'tblTempUsageDetail_20' ) end [2025-04-08 12:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:49:27] Production.INFO: ==13227== Releasing lock... [2025-04-08 12:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:49:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 12:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:50:07 [end_date_ymd] => 2025-04-08 12:50:07 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:50:07' and `end` < '2025-04-08 12: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-04-08 12:50:21] Production.INFO: count ==4789 [2025-04-08 12:50:23] Production.ERROR: pbx CDR StartTime 2025-04-08 09:50:07 - End Time 2025-04-08 12:50:07 [2025-04-08 12:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862314', 'tblTempUsageDetail_20' ) start [2025-04-08 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862314', 'tblTempUsageDetail_20' ) end [2025-04-08 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862314', 'tblTempVendorCDR_20' ) start [2025-04-08 12:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862314', 'tblTempVendorCDR_20' ) end [2025-04-08 12:50:23] Production.INFO: ProcessCDR(1,14862314,1,1,2) [2025-04-08 12:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862314', 'tblTempUsageDetail_20' ) start [2025-04-08 12:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862314', 'tblTempUsageDetail_20' ) end [2025-04-08 12:50:29] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:50:29] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:50:29] Production.INFO: ==13300== Releasing lock... [2025-04-08 12:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:50:29] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:51:06 [end_date_ymd] => 2025-04-08 12:51:06 [RateCDR] => 1 ) [2025-04-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-04-08 09:51:06' and `end` < '2025-04-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-04-08 12:51:20] Production.INFO: count ==4748 [2025-04-08 12:51:22] Production.ERROR: pbx CDR StartTime 2025-04-08 09:51:06 - End Time 2025-04-08 12:51:06 [2025-04-08 12:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862319', 'tblTempUsageDetail_20' ) start [2025-04-08 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862319', 'tblTempUsageDetail_20' ) end [2025-04-08 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862319', 'tblTempVendorCDR_20' ) start [2025-04-08 12:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862319', 'tblTempVendorCDR_20' ) end [2025-04-08 12:51:22] Production.INFO: ProcessCDR(1,14862319,1,1,2) [2025-04-08 12:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:51:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:51:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:51:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862319', 'tblTempUsageDetail_20' ) start [2025-04-08 12:51:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862319', 'tblTempUsageDetail_20' ) end [2025-04-08 12:51:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:51:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:51:28] Production.INFO: ==13378== Releasing lock... [2025-04-08 12:51:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:51:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:52:05 [end_date_ymd] => 2025-04-08 12:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:52:05' and `end` < '2025-04-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-04-08 12:52:19] Production.INFO: count ==4746 [2025-04-08 12:52:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:52:05 - End Time 2025-04-08 12:52:05 [2025-04-08 12:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862324', 'tblTempUsageDetail_20' ) start [2025-04-08 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862324', 'tblTempUsageDetail_20' ) end [2025-04-08 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862324', 'tblTempVendorCDR_20' ) start [2025-04-08 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862324', 'tblTempVendorCDR_20' ) end [2025-04-08 12:52:21] Production.INFO: ProcessCDR(1,14862324,1,1,2) [2025-04-08 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862324', 'tblTempUsageDetail_20' ) start [2025-04-08 12:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862324', 'tblTempUsageDetail_20' ) end [2025-04-08 12:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:52:27] Production.INFO: ==13452== Releasing lock... [2025-04-08 12:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:52:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:53:05 [end_date_ymd] => 2025-04-08 12:53:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:53:05' and `end` < '2025-04-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-04-08 12:53:19] Production.INFO: count ==4750 [2025-04-08 12:53:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:53:05 - End Time 2025-04-08 12:53:05 [2025-04-08 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862329', 'tblTempUsageDetail_20' ) start [2025-04-08 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862329', 'tblTempUsageDetail_20' ) end [2025-04-08 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862329', 'tblTempVendorCDR_20' ) start [2025-04-08 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862329', 'tblTempVendorCDR_20' ) end [2025-04-08 12:53:22] Production.INFO: ProcessCDR(1,14862329,1,1,2) [2025-04-08 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862329', 'tblTempUsageDetail_20' ) start [2025-04-08 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862329', 'tblTempUsageDetail_20' ) end [2025-04-08 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:53:27] Production.INFO: ==13525== Releasing lock... [2025-04-08 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:53:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:54:05 [end_date_ymd] => 2025-04-08 12:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:54:05' and `end` < '2025-04-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-04-08 12:54:19] Production.INFO: count ==4746 [2025-04-08 12:54:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:54:05 - End Time 2025-04-08 12:54:05 [2025-04-08 12:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862334', 'tblTempUsageDetail_20' ) start [2025-04-08 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862334', 'tblTempUsageDetail_20' ) end [2025-04-08 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862334', 'tblTempVendorCDR_20' ) start [2025-04-08 12:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862334', 'tblTempVendorCDR_20' ) end [2025-04-08 12:54:21] Production.INFO: ProcessCDR(1,14862334,1,1,2) [2025-04-08 12:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862334', 'tblTempUsageDetail_20' ) start [2025-04-08 12:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862334', 'tblTempUsageDetail_20' ) end [2025-04-08 12:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:54:26] Production.INFO: ==13597== Releasing lock... [2025-04-08 12:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:54:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:55:06 [end_date_ymd] => 2025-04-08 12:55:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:55:06' and `end` < '2025-04-08 12: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-04-08 12:55:20] Production.INFO: count ==4750 [2025-04-08 12:55:22] Production.ERROR: pbx CDR StartTime 2025-04-08 09:55:06 - End Time 2025-04-08 12:55:06 [2025-04-08 12:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862339', 'tblTempUsageDetail_20' ) start [2025-04-08 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862339', 'tblTempUsageDetail_20' ) end [2025-04-08 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862339', 'tblTempVendorCDR_20' ) start [2025-04-08 12:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862339', 'tblTempVendorCDR_20' ) end [2025-04-08 12:55:22] Production.INFO: ProcessCDR(1,14862339,1,1,2) [2025-04-08 12:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:55:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862339', 'tblTempUsageDetail_20' ) start [2025-04-08 12:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862339', 'tblTempUsageDetail_20' ) end [2025-04-08 12:55:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:55:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:55:28] Production.INFO: ==13674== Releasing lock... [2025-04-08 12:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:55:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:56:05 [end_date_ymd] => 2025-04-08 12:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:56:05' and `end` < '2025-04-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-04-08 12:56:19] Production.INFO: count ==4736 [2025-04-08 12:56:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:56:05 - End Time 2025-04-08 12:56:05 [2025-04-08 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862344', 'tblTempUsageDetail_20' ) start [2025-04-08 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862344', 'tblTempUsageDetail_20' ) end [2025-04-08 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862344', 'tblTempVendorCDR_20' ) start [2025-04-08 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862344', 'tblTempVendorCDR_20' ) end [2025-04-08 12:56:21] Production.INFO: ProcessCDR(1,14862344,1,1,2) [2025-04-08 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862344', 'tblTempUsageDetail_20' ) start [2025-04-08 12:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862344', 'tblTempUsageDetail_20' ) end [2025-04-08 12:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:56:27] Production.INFO: ==13746== Releasing lock... [2025-04-08 12:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:56:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:57:06 [end_date_ymd] => 2025-04-08 12:57:06 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:57:06' and `end` < '2025-04-08 12: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-04-08 12:57:20] Production.INFO: count ==4739 [2025-04-08 12:57:22] Production.ERROR: pbx CDR StartTime 2025-04-08 09:57:06 - End Time 2025-04-08 12:57:06 [2025-04-08 12:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862349', 'tblTempUsageDetail_20' ) start [2025-04-08 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862349', 'tblTempUsageDetail_20' ) end [2025-04-08 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862349', 'tblTempVendorCDR_20' ) start [2025-04-08 12:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862349', 'tblTempVendorCDR_20' ) end [2025-04-08 12:57:22] Production.INFO: ProcessCDR(1,14862349,1,1,2) [2025-04-08 12:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:57:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:57:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862349', 'tblTempUsageDetail_20' ) start [2025-04-08 12:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862349', 'tblTempUsageDetail_20' ) end [2025-04-08 12:57:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:57:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:57:27] Production.INFO: ==13821== Releasing lock... [2025-04-08 12:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:57:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:58:05 [end_date_ymd] => 2025-04-08 12:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 09:58:05' and `end` < '2025-04-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-04-08 12:58:19] Production.INFO: count ==4754 [2025-04-08 12:58:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:58:05 - End Time 2025-04-08 12:58:05 [2025-04-08 12:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862354', 'tblTempUsageDetail_20' ) start [2025-04-08 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862354', 'tblTempUsageDetail_20' ) end [2025-04-08 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862354', 'tblTempVendorCDR_20' ) start [2025-04-08 12:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862354', 'tblTempVendorCDR_20' ) end [2025-04-08 12:58:21] Production.INFO: ProcessCDR(1,14862354,1,1,2) [2025-04-08 12:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862354', 'tblTempUsageDetail_20' ) start [2025-04-08 12:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862354', 'tblTempUsageDetail_20' ) end [2025-04-08 12:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:58:27] Production.INFO: ==13894== Releasing lock... [2025-04-08 12:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:58:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 09:59:05 [end_date_ymd] => 2025-04-08 12:59:05 [RateCDR] => 1 ) [2025-04-08 12: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-04-08 09:59:05' and `end` < '2025-04-08 12: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-04-08 12:59:19] Production.INFO: count ==4756 [2025-04-08 12:59:21] Production.ERROR: pbx CDR StartTime 2025-04-08 09:59:05 - End Time 2025-04-08 12:59:05 [2025-04-08 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862359', 'tblTempUsageDetail_20' ) start [2025-04-08 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862359', 'tblTempUsageDetail_20' ) end [2025-04-08 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862359', 'tblTempVendorCDR_20' ) start [2025-04-08 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862359', 'tblTempVendorCDR_20' ) end [2025-04-08 12:59:21] Production.INFO: ProcessCDR(1,14862359,1,1,2) [2025-04-08 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 12:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862359', 'tblTempUsageDetail_20' ) start [2025-04-08 12:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862359', 'tblTempUsageDetail_20' ) end [2025-04-08 12:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 12:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 12:59:27] Production.INFO: ==13966== Releasing lock... [2025-04-08 12:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 12:59:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:00:06 [end_date_ymd] => 2025-04-08 13:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 10:00:06' and `end` < '2025-04-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-04-08 13:00:20] Production.INFO: count ==4761 [2025-04-08 13:00:22] Production.ERROR: pbx CDR StartTime 2025-04-08 10:00:06 - End Time 2025-04-08 13:00:06 [2025-04-08 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862365', 'tblTempUsageDetail_20' ) start [2025-04-08 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862365', 'tblTempUsageDetail_20' ) end [2025-04-08 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862365', 'tblTempVendorCDR_20' ) start [2025-04-08 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862365', 'tblTempVendorCDR_20' ) end [2025-04-08 13:00:22] Production.INFO: ProcessCDR(1,14862365,1,1,2) [2025-04-08 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862365', 'tblTempUsageDetail_20' ) start [2025-04-08 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862365', 'tblTempUsageDetail_20' ) end [2025-04-08 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:00:27] Production.INFO: ==14070== Releasing lock... [2025-04-08 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:00:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:01:06 [end_date_ymd] => 2025-04-08 13:01:06 [RateCDR] => 1 ) [2025-04-08 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 10:01:06' and `end` < '2025-04-08 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 13:01:19] Production.INFO: count ==4779 [2025-04-08 13:01:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:01:06 - End Time 2025-04-08 13:01:06 [2025-04-08 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862370', 'tblTempUsageDetail_20' ) start [2025-04-08 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862370', 'tblTempUsageDetail_20' ) end [2025-04-08 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862370', 'tblTempVendorCDR_20' ) start [2025-04-08 13:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862370', 'tblTempVendorCDR_20' ) end [2025-04-08 13:01:22] Production.INFO: ProcessCDR(1,14862370,1,1,2) [2025-04-08 13:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:01:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:01:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862370', 'tblTempUsageDetail_20' ) start [2025-04-08 13:01:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862370', 'tblTempUsageDetail_20' ) end [2025-04-08 13:01:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:01:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:01:28] Production.INFO: ==14172== Releasing lock... [2025-04-08 13:01:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:01:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:02:05 [end_date_ymd] => 2025-04-08 13:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:02:05' and `end` < '2025-04-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-04-08 13:02:19] Production.INFO: count ==4778 [2025-04-08 13:02:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:02:05 - End Time 2025-04-08 13:02:05 [2025-04-08 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862375', 'tblTempUsageDetail_20' ) start [2025-04-08 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862375', 'tblTempUsageDetail_20' ) end [2025-04-08 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862375', 'tblTempVendorCDR_20' ) start [2025-04-08 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862375', 'tblTempVendorCDR_20' ) end [2025-04-08 13:02:21] Production.INFO: ProcessCDR(1,14862375,1,1,2) [2025-04-08 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862375', 'tblTempUsageDetail_20' ) start [2025-04-08 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862375', 'tblTempUsageDetail_20' ) end [2025-04-08 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:02:27] Production.INFO: ==14244== Releasing lock... [2025-04-08 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:02:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:03:05 [end_date_ymd] => 2025-04-08 13:03:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:03:05' and `end` < '2025-04-08 13: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-04-08 13:03:19] Production.INFO: count ==4777 [2025-04-08 13:03:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:03:05 - End Time 2025-04-08 13:03:05 [2025-04-08 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862380', 'tblTempUsageDetail_20' ) start [2025-04-08 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862380', 'tblTempUsageDetail_20' ) end [2025-04-08 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862380', 'tblTempVendorCDR_20' ) start [2025-04-08 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862380', 'tblTempVendorCDR_20' ) end [2025-04-08 13:03:21] Production.INFO: ProcessCDR(1,14862380,1,1,2) [2025-04-08 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862380', 'tblTempUsageDetail_20' ) start [2025-04-08 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862380', 'tblTempUsageDetail_20' ) end [2025-04-08 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:03:27] Production.INFO: ==14320== Releasing lock... [2025-04-08 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:03:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:04:05 [end_date_ymd] => 2025-04-08 13:04:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:04:05' and `end` < '2025-04-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-04-08 13:04:19] Production.INFO: count ==4780 [2025-04-08 13:04:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:04:05 - End Time 2025-04-08 13:04:05 [2025-04-08 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862385', 'tblTempUsageDetail_20' ) start [2025-04-08 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862385', 'tblTempUsageDetail_20' ) end [2025-04-08 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862385', 'tblTempVendorCDR_20' ) start [2025-04-08 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862385', 'tblTempVendorCDR_20' ) end [2025-04-08 13:04:21] Production.INFO: ProcessCDR(1,14862385,1,1,2) [2025-04-08 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862385', 'tblTempUsageDetail_20' ) start [2025-04-08 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862385', 'tblTempUsageDetail_20' ) end [2025-04-08 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:04:26] Production.INFO: ==14390== Releasing lock... [2025-04-08 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:04:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:05:05 [end_date_ymd] => 2025-04-08 13:05:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:05:05' and `end` < '2025-04-08 13: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-04-08 13:05:19] Production.INFO: count ==4770 [2025-04-08 13:05:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:05:05 - End Time 2025-04-08 13:05:05 [2025-04-08 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862390', 'tblTempUsageDetail_20' ) start [2025-04-08 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862390', 'tblTempUsageDetail_20' ) end [2025-04-08 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862390', 'tblTempVendorCDR_20' ) start [2025-04-08 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862390', 'tblTempVendorCDR_20' ) end [2025-04-08 13:05:21] Production.INFO: ProcessCDR(1,14862390,1,1,2) [2025-04-08 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862390', 'tblTempUsageDetail_20' ) start [2025-04-08 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862390', 'tblTempUsageDetail_20' ) end [2025-04-08 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:05:27] Production.INFO: ==14464== Releasing lock... [2025-04-08 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:05:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:06:05 [end_date_ymd] => 2025-04-08 13:06:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:06:05' and `end` < '2025-04-08 13: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-04-08 13:06:19] Production.INFO: count ==4774 [2025-04-08 13:06:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:06:05 - End Time 2025-04-08 13:06:05 [2025-04-08 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862395', 'tblTempUsageDetail_20' ) start [2025-04-08 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862395', 'tblTempUsageDetail_20' ) end [2025-04-08 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862395', 'tblTempVendorCDR_20' ) start [2025-04-08 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862395', 'tblTempVendorCDR_20' ) end [2025-04-08 13:06:21] Production.INFO: ProcessCDR(1,14862395,1,1,2) [2025-04-08 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862395', 'tblTempUsageDetail_20' ) start [2025-04-08 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862395', 'tblTempUsageDetail_20' ) end [2025-04-08 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:06:26] Production.INFO: ==14542== Releasing lock... [2025-04-08 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:06:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:07:05 [end_date_ymd] => 2025-04-08 13:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:07:05' and `end` < '2025-04-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-04-08 13:07:19] Production.INFO: count ==4776 [2025-04-08 13:07:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:07:05 - End Time 2025-04-08 13:07:05 [2025-04-08 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862400', 'tblTempUsageDetail_20' ) start [2025-04-08 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862400', 'tblTempUsageDetail_20' ) end [2025-04-08 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862400', 'tblTempVendorCDR_20' ) start [2025-04-08 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862400', 'tblTempVendorCDR_20' ) end [2025-04-08 13:07:21] Production.INFO: ProcessCDR(1,14862400,1,1,2) [2025-04-08 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862400', 'tblTempUsageDetail_20' ) start [2025-04-08 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862400', 'tblTempUsageDetail_20' ) end [2025-04-08 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:07:26] Production.INFO: ==14613== Releasing lock... [2025-04-08 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:07:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:08:05 [end_date_ymd] => 2025-04-08 13:08:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:08:05' and `end` < '2025-04-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-04-08 13:08:19] Production.INFO: count ==4758 [2025-04-08 13:08:20] Production.ERROR: pbx CDR StartTime 2025-04-08 10:08:05 - End Time 2025-04-08 13:08:05 [2025-04-08 13:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862405', 'tblTempUsageDetail_20' ) start [2025-04-08 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862405', 'tblTempUsageDetail_20' ) end [2025-04-08 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862405', 'tblTempVendorCDR_20' ) start [2025-04-08 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862405', 'tblTempVendorCDR_20' ) end [2025-04-08 13:08:21] Production.INFO: ProcessCDR(1,14862405,1,1,2) [2025-04-08 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862405', 'tblTempUsageDetail_20' ) start [2025-04-08 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862405', 'tblTempUsageDetail_20' ) end [2025-04-08 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:08:26] Production.INFO: ==14686== Releasing lock... [2025-04-08 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:08:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:09:06 [end_date_ymd] => 2025-04-08 13:09:06 [RateCDR] => 1 ) [2025-04-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-04-08 10:09:06' and `end` < '2025-04-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-04-08 13:09:19] Production.INFO: count ==4761 [2025-04-08 13:09:22] Production.ERROR: pbx CDR StartTime 2025-04-08 10:09:06 - End Time 2025-04-08 13:09:06 [2025-04-08 13:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862410', 'tblTempUsageDetail_20' ) start [2025-04-08 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862410', 'tblTempUsageDetail_20' ) end [2025-04-08 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862410', 'tblTempVendorCDR_20' ) start [2025-04-08 13:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862410', 'tblTempVendorCDR_20' ) end [2025-04-08 13:09:22] Production.INFO: ProcessCDR(1,14862410,1,1,2) [2025-04-08 13:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862410', 'tblTempUsageDetail_20' ) start [2025-04-08 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862410', 'tblTempUsageDetail_20' ) end [2025-04-08 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:09:28] Production.INFO: ==14759== Releasing lock... [2025-04-08 13:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:09:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:10:05 [end_date_ymd] => 2025-04-08 13:10:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:10:05' and `end` < '2025-04-08 13: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-04-08 13:10:19] Production.INFO: count ==4771 [2025-04-08 13:10:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:10:05 - End Time 2025-04-08 13:10:05 [2025-04-08 13:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862416', 'tblTempUsageDetail_20' ) start [2025-04-08 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862416', 'tblTempUsageDetail_20' ) end [2025-04-08 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862416', 'tblTempVendorCDR_20' ) start [2025-04-08 13:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862416', 'tblTempVendorCDR_20' ) end [2025-04-08 13:10:21] Production.INFO: ProcessCDR(1,14862416,1,1,2) [2025-04-08 13:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862416', 'tblTempUsageDetail_20' ) start [2025-04-08 13:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862416', 'tblTempUsageDetail_20' ) end [2025-04-08 13:10:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:10:27] Production.INFO: ==14839== Releasing lock... [2025-04-08 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:10:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:11:06 [end_date_ymd] => 2025-04-08 13:11:06 [RateCDR] => 1 ) [2025-04-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-04-08 10:11:06' and `end` < '2025-04-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-04-08 13:11:19] Production.INFO: count ==4757 [2025-04-08 13:11:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:11:06 - End Time 2025-04-08 13:11:06 [2025-04-08 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862421', 'tblTempUsageDetail_20' ) start [2025-04-08 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862421', 'tblTempUsageDetail_20' ) end [2025-04-08 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862421', 'tblTempVendorCDR_20' ) start [2025-04-08 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862421', 'tblTempVendorCDR_20' ) end [2025-04-08 13:11:21] Production.INFO: ProcessCDR(1,14862421,1,1,2) [2025-04-08 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862421', 'tblTempUsageDetail_20' ) start [2025-04-08 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862421', 'tblTempUsageDetail_20' ) end [2025-04-08 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:11:27] Production.INFO: ==14916== Releasing lock... [2025-04-08 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:11:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:12:05 [end_date_ymd] => 2025-04-08 13:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:12:05' and `end` < '2025-04-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-04-08 13:12:19] Production.INFO: count ==4761 [2025-04-08 13:12:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:12:05 - End Time 2025-04-08 13:12:05 [2025-04-08 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862426', 'tblTempUsageDetail_20' ) start [2025-04-08 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862426', 'tblTempUsageDetail_20' ) end [2025-04-08 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862426', 'tblTempVendorCDR_20' ) start [2025-04-08 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862426', 'tblTempVendorCDR_20' ) end [2025-04-08 13:12:21] Production.INFO: ProcessCDR(1,14862426,1,1,2) [2025-04-08 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862426', 'tblTempUsageDetail_20' ) start [2025-04-08 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862426', 'tblTempUsageDetail_20' ) end [2025-04-08 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:12:27] Production.INFO: ==14992== Releasing lock... [2025-04-08 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:12:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:13:05 [end_date_ymd] => 2025-04-08 13:13:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:13:05' and `end` < '2025-04-08 13: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-04-08 13:13:19] Production.INFO: count ==4768 [2025-04-08 13:13:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:13:05 - End Time 2025-04-08 13:13:05 [2025-04-08 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862431', 'tblTempUsageDetail_20' ) start [2025-04-08 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862431', 'tblTempUsageDetail_20' ) end [2025-04-08 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862431', 'tblTempVendorCDR_20' ) start [2025-04-08 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862431', 'tblTempVendorCDR_20' ) end [2025-04-08 13:13:21] Production.INFO: ProcessCDR(1,14862431,1,1,2) [2025-04-08 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862431', 'tblTempUsageDetail_20' ) start [2025-04-08 13:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862431', 'tblTempUsageDetail_20' ) end [2025-04-08 13:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:13:27] Production.INFO: ==15064== Releasing lock... [2025-04-08 13:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:13:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:14:05 [end_date_ymd] => 2025-04-08 13:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:14:05' and `end` < '2025-04-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-04-08 13:14:19] Production.INFO: count ==4765 [2025-04-08 13:14:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:14:05 - End Time 2025-04-08 13:14:05 [2025-04-08 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862436', 'tblTempUsageDetail_20' ) start [2025-04-08 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862436', 'tblTempUsageDetail_20' ) end [2025-04-08 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862436', 'tblTempVendorCDR_20' ) start [2025-04-08 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862436', 'tblTempVendorCDR_20' ) end [2025-04-08 13:14:21] Production.INFO: ProcessCDR(1,14862436,1,1,2) [2025-04-08 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862436', 'tblTempUsageDetail_20' ) start [2025-04-08 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862436', 'tblTempUsageDetail_20' ) end [2025-04-08 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:14:26] Production.INFO: ==15135== Releasing lock... [2025-04-08 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:14:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:15:05 [end_date_ymd] => 2025-04-08 13:15:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:15:05' and `end` < '2025-04-08 13: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-04-08 13:15:19] Production.INFO: count ==4783 [2025-04-08 13:15:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:15:05 - End Time 2025-04-08 13:15:05 [2025-04-08 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862441', 'tblTempUsageDetail_20' ) start [2025-04-08 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862441', 'tblTempUsageDetail_20' ) end [2025-04-08 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862441', 'tblTempVendorCDR_20' ) start [2025-04-08 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862441', 'tblTempVendorCDR_20' ) end [2025-04-08 13:15:21] Production.INFO: ProcessCDR(1,14862441,1,1,2) [2025-04-08 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862441', 'tblTempUsageDetail_20' ) start [2025-04-08 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862441', 'tblTempUsageDetail_20' ) end [2025-04-08 13:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:15:26] Production.INFO: ==15209== Releasing lock... [2025-04-08 13:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:15:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:16:06 [end_date_ymd] => 2025-04-08 13:16:06 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:16:06' and `end` < '2025-04-08 13: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-04-08 13:16:20] Production.INFO: count ==4761 [2025-04-08 13:16:22] Production.ERROR: pbx CDR StartTime 2025-04-08 10:16:06 - End Time 2025-04-08 13:16:06 [2025-04-08 13:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862446', 'tblTempUsageDetail_20' ) start [2025-04-08 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862446', 'tblTempUsageDetail_20' ) end [2025-04-08 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862446', 'tblTempVendorCDR_20' ) start [2025-04-08 13:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862446', 'tblTempVendorCDR_20' ) end [2025-04-08 13:16:22] Production.INFO: ProcessCDR(1,14862446,1,1,2) [2025-04-08 13:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862446', 'tblTempUsageDetail_20' ) start [2025-04-08 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862446', 'tblTempUsageDetail_20' ) end [2025-04-08 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:16:27] Production.INFO: ==15320== Releasing lock... [2025-04-08 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:16:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:17:05 [end_date_ymd] => 2025-04-08 13:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:17:05' and `end` < '2025-04-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-04-08 13:17:19] Production.INFO: count ==4755 [2025-04-08 13:17:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:17:05 - End Time 2025-04-08 13:17:05 [2025-04-08 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862451', 'tblTempUsageDetail_20' ) start [2025-04-08 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862451', 'tblTempUsageDetail_20' ) end [2025-04-08 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862451', 'tblTempVendorCDR_20' ) start [2025-04-08 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862451', 'tblTempVendorCDR_20' ) end [2025-04-08 13:17:21] Production.INFO: ProcessCDR(1,14862451,1,1,2) [2025-04-08 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862451', 'tblTempUsageDetail_20' ) start [2025-04-08 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862451', 'tblTempUsageDetail_20' ) end [2025-04-08 13:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:17:26] Production.INFO: ==15393== Releasing lock... [2025-04-08 13:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:17:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:18:05 [end_date_ymd] => 2025-04-08 13:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:18:05' and `end` < '2025-04-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-04-08 13:18:19] Production.INFO: count ==4756 [2025-04-08 13:18:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:18:05 - End Time 2025-04-08 13:18:05 [2025-04-08 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862456', 'tblTempUsageDetail_20' ) start [2025-04-08 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862456', 'tblTempUsageDetail_20' ) end [2025-04-08 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862456', 'tblTempVendorCDR_20' ) start [2025-04-08 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862456', 'tblTempVendorCDR_20' ) end [2025-04-08 13:18:21] Production.INFO: ProcessCDR(1,14862456,1,1,2) [2025-04-08 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862456', 'tblTempUsageDetail_20' ) start [2025-04-08 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862456', 'tblTempUsageDetail_20' ) end [2025-04-08 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:18:27] Production.INFO: ==15478== Releasing lock... [2025-04-08 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:18:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:19:05 [end_date_ymd] => 2025-04-08 13:19:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:19:05' and `end` < '2025-04-08 13: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-04-08 13:19:19] Production.INFO: count ==4748 [2025-04-08 13:19:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:19:05 - End Time 2025-04-08 13:19:05 [2025-04-08 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862461', 'tblTempUsageDetail_20' ) start [2025-04-08 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862461', 'tblTempUsageDetail_20' ) end [2025-04-08 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862461', 'tblTempVendorCDR_20' ) start [2025-04-08 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862461', 'tblTempVendorCDR_20' ) end [2025-04-08 13:19:21] Production.INFO: ProcessCDR(1,14862461,1,1,2) [2025-04-08 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862461', 'tblTempUsageDetail_20' ) start [2025-04-08 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862461', 'tblTempUsageDetail_20' ) end [2025-04-08 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:19:26] Production.INFO: ==15549== Releasing lock... [2025-04-08 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:19:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:20:06 [end_date_ymd] => 2025-04-08 13:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 10:20:06' and `end` < '2025-04-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-04-08 13:20:20] Production.INFO: count ==4728 [2025-04-08 13:20:22] Production.ERROR: pbx CDR StartTime 2025-04-08 10:20:06 - End Time 2025-04-08 13:20:06 [2025-04-08 13:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862466', 'tblTempUsageDetail_20' ) start [2025-04-08 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862466', 'tblTempUsageDetail_20' ) end [2025-04-08 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862466', 'tblTempVendorCDR_20' ) start [2025-04-08 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862466', 'tblTempVendorCDR_20' ) end [2025-04-08 13:20:22] Production.INFO: ProcessCDR(1,14862466,1,1,2) [2025-04-08 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862466', 'tblTempUsageDetail_20' ) start [2025-04-08 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862466', 'tblTempUsageDetail_20' ) end [2025-04-08 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:20:27] Production.INFO: ==15627== Releasing lock... [2025-04-08 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:20:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:21:05 [end_date_ymd] => 2025-04-08 13:21:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:21:05' and `end` < '2025-04-08 13: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-04-08 13:21:19] Production.INFO: count ==4731 [2025-04-08 13:21:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:21:05 - End Time 2025-04-08 13:21:05 [2025-04-08 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862472', 'tblTempUsageDetail_20' ) start [2025-04-08 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862472', 'tblTempUsageDetail_20' ) end [2025-04-08 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862472', 'tblTempVendorCDR_20' ) start [2025-04-08 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862472', 'tblTempVendorCDR_20' ) end [2025-04-08 13:21:21] Production.INFO: ProcessCDR(1,14862472,1,1,2) [2025-04-08 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862472', 'tblTempUsageDetail_20' ) start [2025-04-08 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862472', 'tblTempUsageDetail_20' ) end [2025-04-08 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:21:26] Production.INFO: ==15701== Releasing lock... [2025-04-08 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:21:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:22:05 [end_date_ymd] => 2025-04-08 13:22:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:22:05' and `end` < '2025-04-08 13: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-04-08 13:22:19] Production.INFO: count ==4703 [2025-04-08 13:22:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:22:05 - End Time 2025-04-08 13:22:05 [2025-04-08 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862477', 'tblTempUsageDetail_20' ) start [2025-04-08 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862477', 'tblTempUsageDetail_20' ) end [2025-04-08 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862477', 'tblTempVendorCDR_20' ) start [2025-04-08 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862477', 'tblTempVendorCDR_20' ) end [2025-04-08 13:22:21] Production.INFO: ProcessCDR(1,14862477,1,1,2) [2025-04-08 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862477', 'tblTempUsageDetail_20' ) start [2025-04-08 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862477', 'tblTempUsageDetail_20' ) end [2025-04-08 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:22:26] Production.INFO: ==15773== Releasing lock... [2025-04-08 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:22:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 13:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:23:04 [end_date_ymd] => 2025-04-08 13:23:04 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:23:04' and `end` < '2025-04-08 13: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-04-08 13:23:18] Production.INFO: count ==4703 [2025-04-08 13:23:20] Production.ERROR: pbx CDR StartTime 2025-04-08 10:23:04 - End Time 2025-04-08 13:23:04 [2025-04-08 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862482', 'tblTempUsageDetail_20' ) start [2025-04-08 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862482', 'tblTempUsageDetail_20' ) end [2025-04-08 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862482', 'tblTempVendorCDR_20' ) start [2025-04-08 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862482', 'tblTempVendorCDR_20' ) end [2025-04-08 13:23:20] Production.INFO: ProcessCDR(1,14862482,1,1,2) [2025-04-08 13:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862482', 'tblTempUsageDetail_20' ) start [2025-04-08 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862482', 'tblTempUsageDetail_20' ) end [2025-04-08 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:23:26] Production.INFO: ==15846== Releasing lock... [2025-04-08 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:23:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:24:05 [end_date_ymd] => 2025-04-08 13:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:24:05' and `end` < '2025-04-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-04-08 13:24:19] Production.INFO: count ==4675 [2025-04-08 13:24:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:24:05 - End Time 2025-04-08 13:24:05 [2025-04-08 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862487', 'tblTempUsageDetail_20' ) start [2025-04-08 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862487', 'tblTempUsageDetail_20' ) end [2025-04-08 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862487', 'tblTempVendorCDR_20' ) start [2025-04-08 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862487', 'tblTempVendorCDR_20' ) end [2025-04-08 13:24:21] Production.INFO: ProcessCDR(1,14862487,1,1,2) [2025-04-08 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862487', 'tblTempUsageDetail_20' ) start [2025-04-08 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862487', 'tblTempUsageDetail_20' ) end [2025-04-08 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:24:26] Production.INFO: ==15925== Releasing lock... [2025-04-08 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:24:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:25:05 [end_date_ymd] => 2025-04-08 13:25:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:25:05' and `end` < '2025-04-08 13: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-04-08 13:25:18] Production.INFO: count ==4664 [2025-04-08 13:25:20] Production.ERROR: pbx CDR StartTime 2025-04-08 10:25:05 - End Time 2025-04-08 13:25:05 [2025-04-08 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862492', 'tblTempUsageDetail_20' ) start [2025-04-08 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862492', 'tblTempUsageDetail_20' ) end [2025-04-08 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862492', 'tblTempVendorCDR_20' ) start [2025-04-08 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862492', 'tblTempVendorCDR_20' ) end [2025-04-08 13:25:20] Production.INFO: ProcessCDR(1,14862492,1,1,2) [2025-04-08 13:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862492', 'tblTempUsageDetail_20' ) start [2025-04-08 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862492', 'tblTempUsageDetail_20' ) end [2025-04-08 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:25:26] Production.INFO: ==16000== Releasing lock... [2025-04-08 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:25:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:26:05 [end_date_ymd] => 2025-04-08 13:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:26:05' and `end` < '2025-04-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-04-08 13:26:19] Production.INFO: count ==4667 [2025-04-08 13:26:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:26:05 - End Time 2025-04-08 13:26:05 [2025-04-08 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862497', 'tblTempUsageDetail_20' ) start [2025-04-08 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862497', 'tblTempUsageDetail_20' ) end [2025-04-08 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862497', 'tblTempVendorCDR_20' ) start [2025-04-08 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862497', 'tblTempVendorCDR_20' ) end [2025-04-08 13:26:21] Production.INFO: ProcessCDR(1,14862497,1,1,2) [2025-04-08 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862497', 'tblTempUsageDetail_20' ) start [2025-04-08 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862497', 'tblTempUsageDetail_20' ) end [2025-04-08 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:26:26] Production.INFO: ==16078== Releasing lock... [2025-04-08 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:26:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:27:06 [end_date_ymd] => 2025-04-08 13:27:06 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:27:06' and `end` < '2025-04-08 13: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-04-08 13:27:19] Production.INFO: count ==4669 [2025-04-08 13:27:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:27:06 - End Time 2025-04-08 13:27:06 [2025-04-08 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862502', 'tblTempUsageDetail_20' ) start [2025-04-08 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862502', 'tblTempUsageDetail_20' ) end [2025-04-08 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862502', 'tblTempVendorCDR_20' ) start [2025-04-08 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862502', 'tblTempVendorCDR_20' ) end [2025-04-08 13:27:21] Production.INFO: ProcessCDR(1,14862502,1,1,2) [2025-04-08 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862502', 'tblTempUsageDetail_20' ) start [2025-04-08 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862502', 'tblTempUsageDetail_20' ) end [2025-04-08 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:27:27] Production.INFO: ==16148== Releasing lock... [2025-04-08 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:27:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:28:05 [end_date_ymd] => 2025-04-08 13:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:28:05' and `end` < '2025-04-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-04-08 13:28:19] Production.INFO: count ==4665 [2025-04-08 13:28:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:28:05 - End Time 2025-04-08 13:28:05 [2025-04-08 13:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862507', 'tblTempUsageDetail_20' ) start [2025-04-08 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862507', 'tblTempUsageDetail_20' ) end [2025-04-08 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862507', 'tblTempVendorCDR_20' ) start [2025-04-08 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862507', 'tblTempVendorCDR_20' ) end [2025-04-08 13:28:21] Production.INFO: ProcessCDR(1,14862507,1,1,2) [2025-04-08 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862507', 'tblTempUsageDetail_20' ) start [2025-04-08 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862507', 'tblTempUsageDetail_20' ) end [2025-04-08 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:28:26] Production.INFO: ==16222== Releasing lock... [2025-04-08 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:28:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:29:06 [end_date_ymd] => 2025-04-08 13:29:06 [RateCDR] => 1 ) [2025-04-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-04-08 10:29:06' and `end` < '2025-04-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-04-08 13:29:19] Production.INFO: count ==4656 [2025-04-08 13:29:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:29:06 - End Time 2025-04-08 13:29:06 [2025-04-08 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862512', 'tblTempUsageDetail_20' ) start [2025-04-08 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862512', 'tblTempUsageDetail_20' ) end [2025-04-08 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862512', 'tblTempVendorCDR_20' ) start [2025-04-08 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862512', 'tblTempVendorCDR_20' ) end [2025-04-08 13:29:21] Production.INFO: ProcessCDR(1,14862512,1,1,2) [2025-04-08 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862512', 'tblTempUsageDetail_20' ) start [2025-04-08 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862512', 'tblTempUsageDetail_20' ) end [2025-04-08 13:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:29:26] Production.INFO: ==16299== Releasing lock... [2025-04-08 13:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:29:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:30:06 [end_date_ymd] => 2025-04-08 13:30:06 [RateCDR] => 1 ) [2025-04-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-04-08 10:30:06' and `end` < '2025-04-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-04-08 13:30:20] Production.INFO: count ==4645 [2025-04-08 13:30:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:30:06 - End Time 2025-04-08 13:30:06 [2025-04-08 13:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862518', 'tblTempUsageDetail_20' ) start [2025-04-08 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862518', 'tblTempUsageDetail_20' ) end [2025-04-08 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862518', 'tblTempVendorCDR_20' ) start [2025-04-08 13:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862518', 'tblTempVendorCDR_20' ) end [2025-04-08 13:30:21] Production.INFO: ProcessCDR(1,14862518,1,1,2) [2025-04-08 13:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862518', 'tblTempUsageDetail_20' ) start [2025-04-08 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862518', 'tblTempUsageDetail_20' ) end [2025-04-08 13:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:30:27] Production.INFO: ==16371== Releasing lock... [2025-04-08 13:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:30:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:31:05 [end_date_ymd] => 2025-04-08 13:31:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:31:05' and `end` < '2025-04-08 13: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-04-08 13:31:19] Production.INFO: count ==4598 [2025-04-08 13:31:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:31:05 - End Time 2025-04-08 13:31:05 [2025-04-08 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862523', 'tblTempUsageDetail_20' ) start [2025-04-08 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862523', 'tblTempUsageDetail_20' ) end [2025-04-08 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862523', 'tblTempVendorCDR_20' ) start [2025-04-08 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862523', 'tblTempVendorCDR_20' ) end [2025-04-08 13:31:21] Production.INFO: ProcessCDR(1,14862523,1,1,2) [2025-04-08 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862523', 'tblTempUsageDetail_20' ) start [2025-04-08 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862523', 'tblTempUsageDetail_20' ) end [2025-04-08 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:31:26] Production.INFO: ==16489== Releasing lock... [2025-04-08 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:31:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:32:05 [end_date_ymd] => 2025-04-08 13:32:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:32:05' and `end` < '2025-04-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-04-08 13:32:19] Production.INFO: count ==4578 [2025-04-08 13:32:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:32:05 - End Time 2025-04-08 13:32:05 [2025-04-08 13:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862528', 'tblTempUsageDetail_20' ) start [2025-04-08 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862528', 'tblTempUsageDetail_20' ) end [2025-04-08 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862528', 'tblTempVendorCDR_20' ) start [2025-04-08 13:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862528', 'tblTempVendorCDR_20' ) end [2025-04-08 13:32:21] Production.INFO: ProcessCDR(1,14862528,1,1,2) [2025-04-08 13:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862528', 'tblTempUsageDetail_20' ) start [2025-04-08 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862528', 'tblTempUsageDetail_20' ) end [2025-04-08 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:32:26] Production.INFO: ==16561== Releasing lock... [2025-04-08 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:32:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 13:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:33:06 [end_date_ymd] => 2025-04-08 13:33:06 [RateCDR] => 1 ) [2025-04-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-04-08 10:33:06' and `end` < '2025-04-08 13: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-04-08 13:33:20] Production.INFO: count ==4586 [2025-04-08 13:33:22] Production.ERROR: pbx CDR StartTime 2025-04-08 10:33:06 - End Time 2025-04-08 13:33:06 [2025-04-08 13:33:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862533', 'tblTempUsageDetail_20' ) start [2025-04-08 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862533', 'tblTempUsageDetail_20' ) end [2025-04-08 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862533', 'tblTempVendorCDR_20' ) start [2025-04-08 13:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862533', 'tblTempVendorCDR_20' ) end [2025-04-08 13:33:22] Production.INFO: ProcessCDR(1,14862533,1,1,2) [2025-04-08 13:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:33:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:33:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862533', 'tblTempUsageDetail_20' ) start [2025-04-08 13:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862533', 'tblTempUsageDetail_20' ) end [2025-04-08 13:33:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:33:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:33:28] Production.INFO: ==16634== Releasing lock... [2025-04-08 13:33:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:33:28] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:34:05 [end_date_ymd] => 2025-04-08 13:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:34:05' and `end` < '2025-04-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-04-08 13:34:19] Production.INFO: count ==4573 [2025-04-08 13:34:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:34:05 - End Time 2025-04-08 13:34:05 [2025-04-08 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862538', 'tblTempUsageDetail_20' ) start [2025-04-08 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862538', 'tblTempUsageDetail_20' ) end [2025-04-08 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862538', 'tblTempVendorCDR_20' ) start [2025-04-08 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862538', 'tblTempVendorCDR_20' ) end [2025-04-08 13:34:21] Production.INFO: ProcessCDR(1,14862538,1,1,2) [2025-04-08 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862538', 'tblTempUsageDetail_20' ) start [2025-04-08 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862538', 'tblTempUsageDetail_20' ) end [2025-04-08 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:34:26] Production.INFO: ==16709== Releasing lock... [2025-04-08 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:34:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:35:05 [end_date_ymd] => 2025-04-08 13:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:35:05' and `end` < '2025-04-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-04-08 13:35:19] Production.INFO: count ==4583 [2025-04-08 13:35:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:35:05 - End Time 2025-04-08 13:35:05 [2025-04-08 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862543', 'tblTempUsageDetail_20' ) start [2025-04-08 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862543', 'tblTempUsageDetail_20' ) end [2025-04-08 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862543', 'tblTempVendorCDR_20' ) start [2025-04-08 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862543', 'tblTempVendorCDR_20' ) end [2025-04-08 13:35:21] Production.INFO: ProcessCDR(1,14862543,1,1,2) [2025-04-08 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862543', 'tblTempUsageDetail_20' ) start [2025-04-08 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862543', 'tblTempUsageDetail_20' ) end [2025-04-08 13:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:35:26] Production.INFO: ==16784== Releasing lock... [2025-04-08 13:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:35:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:36:05 [end_date_ymd] => 2025-04-08 13:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:36:05' and `end` < '2025-04-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-04-08 13:36:19] Production.INFO: count ==4583 [2025-04-08 13:36:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:36:05 - End Time 2025-04-08 13:36:05 [2025-04-08 13:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862548', 'tblTempUsageDetail_20' ) start [2025-04-08 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862548', 'tblTempUsageDetail_20' ) end [2025-04-08 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862548', 'tblTempVendorCDR_20' ) start [2025-04-08 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862548', 'tblTempVendorCDR_20' ) end [2025-04-08 13:36:21] Production.INFO: ProcessCDR(1,14862548,1,1,2) [2025-04-08 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862548', 'tblTempUsageDetail_20' ) start [2025-04-08 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862548', 'tblTempUsageDetail_20' ) end [2025-04-08 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:36:26] Production.INFO: ==16855== Releasing lock... [2025-04-08 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:36:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:37:05 [end_date_ymd] => 2025-04-08 13:37:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:37:05' and `end` < '2025-04-08 13: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-04-08 13:37:19] Production.INFO: count ==4584 [2025-04-08 13:37:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:37:05 - End Time 2025-04-08 13:37:05 [2025-04-08 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862553', 'tblTempUsageDetail_20' ) start [2025-04-08 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862553', 'tblTempUsageDetail_20' ) end [2025-04-08 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862553', 'tblTempVendorCDR_20' ) start [2025-04-08 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862553', 'tblTempVendorCDR_20' ) end [2025-04-08 13:37:21] Production.INFO: ProcessCDR(1,14862553,1,1,2) [2025-04-08 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862553', 'tblTempUsageDetail_20' ) start [2025-04-08 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862553', 'tblTempUsageDetail_20' ) end [2025-04-08 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:37:26] Production.INFO: ==16929== Releasing lock... [2025-04-08 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:37:26] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:38:06 [end_date_ymd] => 2025-04-08 13:38:06 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:38:06' and `end` < '2025-04-08 13: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-04-08 13:38:19] Production.INFO: count ==4590 [2025-04-08 13:38:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:38:06 - End Time 2025-04-08 13:38:06 [2025-04-08 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862555', 'tblTempUsageDetail_20' ) start [2025-04-08 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862555', 'tblTempUsageDetail_20' ) end [2025-04-08 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862555', 'tblTempVendorCDR_20' ) start [2025-04-08 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862555', 'tblTempVendorCDR_20' ) end [2025-04-08 13:38:21] Production.INFO: ProcessCDR(1,14862555,1,1,2) [2025-04-08 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862555', 'tblTempUsageDetail_20' ) start [2025-04-08 13:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862555', 'tblTempUsageDetail_20' ) end [2025-04-08 13:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:38:27] Production.INFO: ==17002== Releasing lock... [2025-04-08 13:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:38:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:39:05 [end_date_ymd] => 2025-04-08 13:39:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:39:05' and `end` < '2025-04-08 13: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-04-08 13:39:19] Production.INFO: count ==4596 [2025-04-08 13:39:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:39:05 - End Time 2025-04-08 13:39:05 [2025-04-08 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862563', 'tblTempUsageDetail_20' ) start [2025-04-08 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862563', 'tblTempUsageDetail_20' ) end [2025-04-08 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862563', 'tblTempVendorCDR_20' ) start [2025-04-08 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862563', 'tblTempVendorCDR_20' ) end [2025-04-08 13:39:21] Production.INFO: ProcessCDR(1,14862563,1,1,2) [2025-04-08 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862563', 'tblTempUsageDetail_20' ) start [2025-04-08 13:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862563', 'tblTempUsageDetail_20' ) end [2025-04-08 13:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:39:27] Production.INFO: ==17079== Releasing lock... [2025-04-08 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:39:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:40:06 [end_date_ymd] => 2025-04-08 13:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 10:40:06' and `end` < '2025-04-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-04-08 13:40:20] Production.INFO: count ==4616 [2025-04-08 13:40:22] Production.ERROR: pbx CDR StartTime 2025-04-08 10:40:06 - End Time 2025-04-08 13:40:06 [2025-04-08 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862569', 'tblTempUsageDetail_20' ) start [2025-04-08 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862569', 'tblTempUsageDetail_20' ) end [2025-04-08 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862569', 'tblTempVendorCDR_20' ) start [2025-04-08 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862569', 'tblTempVendorCDR_20' ) end [2025-04-08 13:40:22] Production.INFO: ProcessCDR(1,14862569,1,1,2) [2025-04-08 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862569', 'tblTempUsageDetail_20' ) start [2025-04-08 13:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862569', 'tblTempUsageDetail_20' ) end [2025-04-08 13:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:40:27] Production.INFO: ==17155== Releasing lock... [2025-04-08 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:40:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:41:06 [end_date_ymd] => 2025-04-08 13:41:06 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:41:06' and `end` < '2025-04-08 13: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-04-08 13:41:20] Production.INFO: count ==4672 [2025-04-08 13:41:22] Production.ERROR: pbx CDR StartTime 2025-04-08 10:41:06 - End Time 2025-04-08 13:41:06 [2025-04-08 13:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862574', 'tblTempUsageDetail_20' ) start [2025-04-08 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862574', 'tblTempUsageDetail_20' ) end [2025-04-08 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862574', 'tblTempVendorCDR_20' ) start [2025-04-08 13:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862574', 'tblTempVendorCDR_20' ) end [2025-04-08 13:41:22] Production.INFO: ProcessCDR(1,14862574,1,1,2) [2025-04-08 13:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862574', 'tblTempUsageDetail_20' ) start [2025-04-08 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862574', 'tblTempUsageDetail_20' ) end [2025-04-08 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:41:27] Production.INFO: ==17235== Releasing lock... [2025-04-08 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:41:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:42:05 [end_date_ymd] => 2025-04-08 13:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:42:05' and `end` < '2025-04-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-04-08 13:42:19] Production.INFO: count ==4675 [2025-04-08 13:42:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:42:05 - End Time 2025-04-08 13:42:05 [2025-04-08 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862579', 'tblTempUsageDetail_20' ) start [2025-04-08 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862579', 'tblTempUsageDetail_20' ) end [2025-04-08 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862579', 'tblTempVendorCDR_20' ) start [2025-04-08 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862579', 'tblTempVendorCDR_20' ) end [2025-04-08 13:42:21] Production.INFO: ProcessCDR(1,14862579,1,1,2) [2025-04-08 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862579', 'tblTempUsageDetail_20' ) start [2025-04-08 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862579', 'tblTempUsageDetail_20' ) end [2025-04-08 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:42:27] Production.INFO: ==17308== Releasing lock... [2025-04-08 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:42:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:43:06 [end_date_ymd] => 2025-04-08 13:43:06 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:43:06' and `end` < '2025-04-08 13: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-04-08 13:43:20] Production.INFO: count ==4656 [2025-04-08 13:43:22] Production.ERROR: pbx CDR StartTime 2025-04-08 10:43:06 - End Time 2025-04-08 13:43:06 [2025-04-08 13:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862584', 'tblTempUsageDetail_20' ) start [2025-04-08 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862584', 'tblTempUsageDetail_20' ) end [2025-04-08 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862584', 'tblTempVendorCDR_20' ) start [2025-04-08 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862584', 'tblTempVendorCDR_20' ) end [2025-04-08 13:43:22] Production.INFO: ProcessCDR(1,14862584,1,1,2) [2025-04-08 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862584', 'tblTempUsageDetail_20' ) start [2025-04-08 13:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862584', 'tblTempUsageDetail_20' ) end [2025-04-08 13:43:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:43:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:43:28] Production.INFO: ==17382== Releasing lock... [2025-04-08 13:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:43:28] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:44:06 [end_date_ymd] => 2025-04-08 13:44:06 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:44:06' and `end` < '2025-04-08 13: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-04-08 13:44:19] Production.INFO: count ==4673 [2025-04-08 13:44:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:44:06 - End Time 2025-04-08 13:44:06 [2025-04-08 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862589', 'tblTempUsageDetail_20' ) start [2025-04-08 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862589', 'tblTempUsageDetail_20' ) end [2025-04-08 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862589', 'tblTempVendorCDR_20' ) start [2025-04-08 13:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862589', 'tblTempVendorCDR_20' ) end [2025-04-08 13:44:22] Production.INFO: ProcessCDR(1,14862589,1,1,2) [2025-04-08 13:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862589', 'tblTempUsageDetail_20' ) start [2025-04-08 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862589', 'tblTempUsageDetail_20' ) end [2025-04-08 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:44:28] Production.INFO: ==17459== Releasing lock... [2025-04-08 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:44:28] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:45:05 [end_date_ymd] => 2025-04-08 13:45:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:45:05' and `end` < '2025-04-08 13: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-04-08 13:45:19] Production.INFO: count ==4674 [2025-04-08 13:45:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:45:05 - End Time 2025-04-08 13:45:05 [2025-04-08 13:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862594', 'tblTempUsageDetail_20' ) start [2025-04-08 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862594', 'tblTempUsageDetail_20' ) end [2025-04-08 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862594', 'tblTempVendorCDR_20' ) start [2025-04-08 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862594', 'tblTempVendorCDR_20' ) end [2025-04-08 13:45:21] Production.INFO: ProcessCDR(1,14862594,1,1,2) [2025-04-08 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862594', 'tblTempUsageDetail_20' ) start [2025-04-08 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862594', 'tblTempUsageDetail_20' ) end [2025-04-08 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:45:27] Production.INFO: ==17534== Releasing lock... [2025-04-08 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:45:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:46:06 [end_date_ymd] => 2025-04-08 13:46:06 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:46:06' and `end` < '2025-04-08 13: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-04-08 13:46:19] Production.INFO: count ==4665 [2025-04-08 13:46:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:46:06 - End Time 2025-04-08 13:46:06 [2025-04-08 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862599', 'tblTempUsageDetail_20' ) start [2025-04-08 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862599', 'tblTempUsageDetail_20' ) end [2025-04-08 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862599', 'tblTempVendorCDR_20' ) start [2025-04-08 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862599', 'tblTempVendorCDR_20' ) end [2025-04-08 13:46:21] Production.INFO: ProcessCDR(1,14862599,1,1,2) [2025-04-08 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862599', 'tblTempUsageDetail_20' ) start [2025-04-08 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862599', 'tblTempUsageDetail_20' ) end [2025-04-08 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:46:26] Production.INFO: ==17607== Releasing lock... [2025-04-08 13:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:46:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:47:05 [end_date_ymd] => 2025-04-08 13:47:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:47:05' and `end` < '2025-04-08 13: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-04-08 13:47:19] Production.INFO: count ==4715 [2025-04-08 13:47:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:47:05 - End Time 2025-04-08 13:47:05 [2025-04-08 13:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862604', 'tblTempUsageDetail_20' ) start [2025-04-08 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862604', 'tblTempUsageDetail_20' ) end [2025-04-08 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862604', 'tblTempVendorCDR_20' ) start [2025-04-08 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862604', 'tblTempVendorCDR_20' ) end [2025-04-08 13:47:21] Production.INFO: ProcessCDR(1,14862604,1,1,2) [2025-04-08 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862604', 'tblTempUsageDetail_20' ) start [2025-04-08 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862604', 'tblTempUsageDetail_20' ) end [2025-04-08 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:47:27] Production.INFO: ==17719== Releasing lock... [2025-04-08 13:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:47:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:48:06 [end_date_ymd] => 2025-04-08 13:48:06 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:48:06' and `end` < '2025-04-08 13: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-04-08 13:48:20] Production.INFO: count ==4699 [2025-04-08 13:48:22] Production.ERROR: pbx CDR StartTime 2025-04-08 10:48:06 - End Time 2025-04-08 13:48:06 [2025-04-08 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862609', 'tblTempUsageDetail_20' ) start [2025-04-08 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862609', 'tblTempUsageDetail_20' ) end [2025-04-08 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862609', 'tblTempVendorCDR_20' ) start [2025-04-08 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862609', 'tblTempVendorCDR_20' ) end [2025-04-08 13:48:22] Production.INFO: ProcessCDR(1,14862609,1,1,2) [2025-04-08 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862609', 'tblTempUsageDetail_20' ) start [2025-04-08 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862609', 'tblTempUsageDetail_20' ) end [2025-04-08 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:48:27] Production.INFO: ==17797== Releasing lock... [2025-04-08 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:48:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:49:05 [end_date_ymd] => 2025-04-08 13:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:49:05' and `end` < '2025-04-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-04-08 13:49:19] Production.INFO: count ==4705 [2025-04-08 13:49:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:49:05 - End Time 2025-04-08 13:49:05 [2025-04-08 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862614', 'tblTempUsageDetail_20' ) start [2025-04-08 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862614', 'tblTempUsageDetail_20' ) end [2025-04-08 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862614', 'tblTempVendorCDR_20' ) start [2025-04-08 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862614', 'tblTempVendorCDR_20' ) end [2025-04-08 13:49:21] Production.INFO: ProcessCDR(1,14862614,1,1,2) [2025-04-08 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862614', 'tblTempUsageDetail_20' ) start [2025-04-08 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862614', 'tblTempUsageDetail_20' ) end [2025-04-08 13:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:49:26] Production.INFO: ==17868== Releasing lock... [2025-04-08 13:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:49:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:50:06 [end_date_ymd] => 2025-04-08 13:50:06 [RateCDR] => 1 ) [2025-04-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-04-08 10:50:06' and `end` < '2025-04-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-04-08 13:50:20] Production.INFO: count ==4679 [2025-04-08 13:50:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:50:06 - End Time 2025-04-08 13:50:06 [2025-04-08 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862620', 'tblTempUsageDetail_20' ) start [2025-04-08 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862620', 'tblTempUsageDetail_20' ) end [2025-04-08 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862620', 'tblTempVendorCDR_20' ) start [2025-04-08 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862620', 'tblTempVendorCDR_20' ) end [2025-04-08 13:50:21] Production.INFO: ProcessCDR(1,14862620,1,1,2) [2025-04-08 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862620', 'tblTempUsageDetail_20' ) start [2025-04-08 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862620', 'tblTempUsageDetail_20' ) end [2025-04-08 13:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:50:27] Production.INFO: ==17945== Releasing lock... [2025-04-08 13:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:50:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:51:05 [end_date_ymd] => 2025-04-08 13:51:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:51:05' and `end` < '2025-04-08 13: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-04-08 13:51:19] Production.INFO: count ==4682 [2025-04-08 13:51:20] Production.ERROR: pbx CDR StartTime 2025-04-08 10:51:05 - End Time 2025-04-08 13:51:05 [2025-04-08 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862624', 'tblTempUsageDetail_20' ) start [2025-04-08 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862624', 'tblTempUsageDetail_20' ) end [2025-04-08 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862624', 'tblTempVendorCDR_20' ) start [2025-04-08 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862624', 'tblTempVendorCDR_20' ) end [2025-04-08 13:51:21] Production.INFO: ProcessCDR(1,14862624,1,1,2) [2025-04-08 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862624', 'tblTempUsageDetail_20' ) start [2025-04-08 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862624', 'tblTempUsageDetail_20' ) end [2025-04-08 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:51:25] Production.INFO: ==18018== Releasing lock... [2025-04-08 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:51:25] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:52:05 [end_date_ymd] => 2025-04-08 13:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:52:05' and `end` < '2025-04-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-04-08 13:52:19] Production.INFO: count ==4683 [2025-04-08 13:52:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:52:05 - End Time 2025-04-08 13:52:05 [2025-04-08 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862630', 'tblTempUsageDetail_20' ) start [2025-04-08 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862630', 'tblTempUsageDetail_20' ) end [2025-04-08 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862630', 'tblTempVendorCDR_20' ) start [2025-04-08 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862630', 'tblTempVendorCDR_20' ) end [2025-04-08 13:52:21] Production.INFO: ProcessCDR(1,14862630,1,1,2) [2025-04-08 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862630', 'tblTempUsageDetail_20' ) start [2025-04-08 13:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862630', 'tblTempUsageDetail_20' ) end [2025-04-08 13:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:52:27] Production.INFO: ==18093== Releasing lock... [2025-04-08 13:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:52:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:53:05 [end_date_ymd] => 2025-04-08 13:53:05 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:53:05' and `end` < '2025-04-08 13: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-04-08 13:53:18] Production.INFO: count ==4677 [2025-04-08 13:53:20] Production.ERROR: pbx CDR StartTime 2025-04-08 10:53:05 - End Time 2025-04-08 13:53:05 [2025-04-08 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862635', 'tblTempUsageDetail_20' ) start [2025-04-08 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862635', 'tblTempUsageDetail_20' ) end [2025-04-08 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862635', 'tblTempVendorCDR_20' ) start [2025-04-08 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862635', 'tblTempVendorCDR_20' ) end [2025-04-08 13:53:20] Production.INFO: ProcessCDR(1,14862635,1,1,2) [2025-04-08 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862635', 'tblTempUsageDetail_20' ) start [2025-04-08 13:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862635', 'tblTempUsageDetail_20' ) end [2025-04-08 13:53:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:53:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:53:26] Production.INFO: ==18170== Releasing lock... [2025-04-08 13:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:53:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:54:06 [end_date_ymd] => 2025-04-08 13:54:06 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:54:06' and `end` < '2025-04-08 13: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-04-08 13:54:19] Production.INFO: count ==4681 [2025-04-08 13:54:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:54:06 - End Time 2025-04-08 13:54:06 [2025-04-08 13:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862640', 'tblTempUsageDetail_20' ) start [2025-04-08 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862640', 'tblTempUsageDetail_20' ) end [2025-04-08 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862640', 'tblTempVendorCDR_20' ) start [2025-04-08 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862640', 'tblTempVendorCDR_20' ) end [2025-04-08 13:54:21] Production.INFO: ProcessCDR(1,14862640,1,1,2) [2025-04-08 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862640', 'tblTempUsageDetail_20' ) start [2025-04-08 13:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862640', 'tblTempUsageDetail_20' ) end [2025-04-08 13:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:54:27] Production.INFO: ==18248== Releasing lock... [2025-04-08 13:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:54:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:55:04 [end_date_ymd] => 2025-04-08 13:55:04 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:55:04' and `end` < '2025-04-08 13: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-04-08 13:55:18] Production.INFO: count ==4696 [2025-04-08 13:55:20] Production.ERROR: pbx CDR StartTime 2025-04-08 10:55:04 - End Time 2025-04-08 13:55:04 [2025-04-08 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862645', 'tblTempUsageDetail_20' ) start [2025-04-08 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862645', 'tblTempUsageDetail_20' ) end [2025-04-08 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862645', 'tblTempVendorCDR_20' ) start [2025-04-08 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862645', 'tblTempVendorCDR_20' ) end [2025-04-08 13:55:20] Production.INFO: ProcessCDR(1,14862645,1,1,2) [2025-04-08 13:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862645', 'tblTempUsageDetail_20' ) start [2025-04-08 13:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862645', 'tblTempUsageDetail_20' ) end [2025-04-08 13:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:55:26] Production.INFO: ==18362== Releasing lock... [2025-04-08 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:55:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:56:06 [end_date_ymd] => 2025-04-08 13:56:06 [RateCDR] => 1 ) [2025-04-08 13: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-04-08 10:56:06' and `end` < '2025-04-08 13: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-04-08 13:56:19] Production.INFO: count ==4676 [2025-04-08 13:56:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:56:06 - End Time 2025-04-08 13:56:06 [2025-04-08 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862650', 'tblTempUsageDetail_20' ) start [2025-04-08 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862650', 'tblTempUsageDetail_20' ) end [2025-04-08 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862650', 'tblTempVendorCDR_20' ) start [2025-04-08 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862650', 'tblTempVendorCDR_20' ) end [2025-04-08 13:56:21] Production.INFO: ProcessCDR(1,14862650,1,1,2) [2025-04-08 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862650', 'tblTempUsageDetail_20' ) start [2025-04-08 13:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862650', 'tblTempUsageDetail_20' ) end [2025-04-08 13:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:56:27] Production.INFO: ==18486== Releasing lock... [2025-04-08 13:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:56:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:57:05 [end_date_ymd] => 2025-04-08 13:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:57:05' and `end` < '2025-04-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-04-08 13:57:19] Production.INFO: count ==4671 [2025-04-08 13:57:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:57:05 - End Time 2025-04-08 13:57:05 [2025-04-08 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862655', 'tblTempUsageDetail_20' ) start [2025-04-08 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862655', 'tblTempUsageDetail_20' ) end [2025-04-08 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862655', 'tblTempVendorCDR_20' ) start [2025-04-08 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862655', 'tblTempVendorCDR_20' ) end [2025-04-08 13:57:21] Production.INFO: ProcessCDR(1,14862655,1,1,2) [2025-04-08 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862655', 'tblTempUsageDetail_20' ) start [2025-04-08 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862655', 'tblTempUsageDetail_20' ) end [2025-04-08 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:57:26] Production.INFO: ==18558== Releasing lock... [2025-04-08 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:57:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:58:05 [end_date_ymd] => 2025-04-08 13:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 10:58:05' and `end` < '2025-04-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-04-08 13:58:19] Production.INFO: count ==4682 [2025-04-08 13:58:21] Production.ERROR: pbx CDR StartTime 2025-04-08 10:58:05 - End Time 2025-04-08 13:58:05 [2025-04-08 13:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862660', 'tblTempUsageDetail_20' ) start [2025-04-08 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862660', 'tblTempUsageDetail_20' ) end [2025-04-08 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862660', 'tblTempVendorCDR_20' ) start [2025-04-08 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862660', 'tblTempVendorCDR_20' ) end [2025-04-08 13:58:21] Production.INFO: ProcessCDR(1,14862660,1,1,2) [2025-04-08 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862660', 'tblTempUsageDetail_20' ) start [2025-04-08 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862660', 'tblTempUsageDetail_20' ) end [2025-04-08 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:58:26] Production.INFO: ==18635== Releasing lock... [2025-04-08 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:58:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 13:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 10:59:06 [end_date_ymd] => 2025-04-08 13:59:06 [RateCDR] => 1 ) [2025-04-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-04-08 10:59:06' and `end` < '2025-04-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-04-08 13:59:20] Production.INFO: count ==4721 [2025-04-08 13:59:22] Production.ERROR: pbx CDR StartTime 2025-04-08 10:59:06 - End Time 2025-04-08 13:59:06 [2025-04-08 13:59:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862665', 'tblTempUsageDetail_20' ) start [2025-04-08 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862665', 'tblTempUsageDetail_20' ) end [2025-04-08 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862665', 'tblTempVendorCDR_20' ) start [2025-04-08 13:59:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862665', 'tblTempVendorCDR_20' ) end [2025-04-08 13:59:22] Production.INFO: ProcessCDR(1,14862665,1,1,2) [2025-04-08 13:59:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 13:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862665', 'tblTempUsageDetail_20' ) start [2025-04-08 13:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862665', 'tblTempUsageDetail_20' ) end [2025-04-08 13:59:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 13:59:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 13:59:27] Production.INFO: ==18708== Releasing lock... [2025-04-08 13:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 13:59:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:00:06 [end_date_ymd] => 2025-04-08 14:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 11:00:06' and `end` < '2025-04-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-04-08 14:00:20] Production.INFO: count ==4735 [2025-04-08 14:00:22] Production.ERROR: pbx CDR StartTime 2025-04-08 11:00:06 - End Time 2025-04-08 14:00:06 [2025-04-08 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862670', 'tblTempUsageDetail_20' ) start [2025-04-08 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862670', 'tblTempUsageDetail_20' ) end [2025-04-08 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862670', 'tblTempVendorCDR_20' ) start [2025-04-08 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862670', 'tblTempVendorCDR_20' ) end [2025-04-08 14:00:22] Production.INFO: ProcessCDR(1,14862670,1,1,2) [2025-04-08 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862670', 'tblTempUsageDetail_20' ) start [2025-04-08 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862670', 'tblTempUsageDetail_20' ) end [2025-04-08 14:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:00:28] Production.INFO: ==18789== Releasing lock... [2025-04-08 14:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:00:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:01:06 [end_date_ymd] => 2025-04-08 14:01:06 [RateCDR] => 1 ) [2025-04-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-04-08 11:01:06' and `end` < '2025-04-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-04-08 14:01:20] Production.INFO: count ==4704 [2025-04-08 14:01:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:01:06 - End Time 2025-04-08 14:01:06 [2025-04-08 14:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862676', 'tblTempUsageDetail_20' ) start [2025-04-08 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862676', 'tblTempUsageDetail_20' ) end [2025-04-08 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862676', 'tblTempVendorCDR_20' ) start [2025-04-08 14:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862676', 'tblTempVendorCDR_20' ) end [2025-04-08 14:01:22] Production.INFO: ProcessCDR(1,14862676,1,1,2) [2025-04-08 14:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862676', 'tblTempUsageDetail_20' ) start [2025-04-08 14:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862676', 'tblTempUsageDetail_20' ) end [2025-04-08 14:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:01:27] Production.INFO: ==18882== Releasing lock... [2025-04-08 14:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:01:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:02:05 [end_date_ymd] => 2025-04-08 14:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:02:05' and `end` < '2025-04-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-04-08 14:02:19] Production.INFO: count ==4675 [2025-04-08 14:02:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:02:05 - End Time 2025-04-08 14:02:05 [2025-04-08 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862681', 'tblTempUsageDetail_20' ) start [2025-04-08 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862681', 'tblTempUsageDetail_20' ) end [2025-04-08 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862681', 'tblTempVendorCDR_20' ) start [2025-04-08 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862681', 'tblTempVendorCDR_20' ) end [2025-04-08 14:02:21] Production.INFO: ProcessCDR(1,14862681,1,1,2) [2025-04-08 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862681', 'tblTempUsageDetail_20' ) start [2025-04-08 14:02:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862681', 'tblTempUsageDetail_20' ) end [2025-04-08 14:02:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:02:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:02:28] Production.INFO: ==18994== Releasing lock... [2025-04-08 14:02:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:02:28] Production.INFO: 63 MB #Memory Used# [2025-04-08 14:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:03:06 [end_date_ymd] => 2025-04-08 14:03:06 [RateCDR] => 1 ) [2025-04-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-04-08 11:03:06' and `end` < '2025-04-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-04-08 14:03:20] Production.INFO: count ==4678 [2025-04-08 14:03:22] Production.ERROR: pbx CDR StartTime 2025-04-08 11:03:06 - End Time 2025-04-08 14:03:06 [2025-04-08 14:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862686', 'tblTempUsageDetail_20' ) start [2025-04-08 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862686', 'tblTempUsageDetail_20' ) end [2025-04-08 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862686', 'tblTempVendorCDR_20' ) start [2025-04-08 14:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862686', 'tblTempVendorCDR_20' ) end [2025-04-08 14:03:22] Production.INFO: ProcessCDR(1,14862686,1,1,2) [2025-04-08 14:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:03:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862686', 'tblTempUsageDetail_20' ) start [2025-04-08 14:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862686', 'tblTempUsageDetail_20' ) end [2025-04-08 14:03:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:03:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:03:28] Production.INFO: ==19069== Releasing lock... [2025-04-08 14:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:03:28] Production.INFO: 63 MB #Memory Used# [2025-04-08 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:04:05 [end_date_ymd] => 2025-04-08 14:04:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:04:05' and `end` < '2025-04-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-04-08 14:04:19] Production.INFO: count ==4674 [2025-04-08 14:04:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:04:05 - End Time 2025-04-08 14:04:05 [2025-04-08 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862691', 'tblTempUsageDetail_20' ) start [2025-04-08 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862691', 'tblTempUsageDetail_20' ) end [2025-04-08 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862691', 'tblTempVendorCDR_20' ) start [2025-04-08 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862691', 'tblTempVendorCDR_20' ) end [2025-04-08 14:04:21] Production.INFO: ProcessCDR(1,14862691,1,1,2) [2025-04-08 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862691', 'tblTempUsageDetail_20' ) start [2025-04-08 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862691', 'tblTempUsageDetail_20' ) end [2025-04-08 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:04:27] Production.INFO: ==19154== Releasing lock... [2025-04-08 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:04:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 14:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:05:06 [end_date_ymd] => 2025-04-08 14:05:06 [RateCDR] => 1 ) [2025-04-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-04-08 11:05:06' and `end` < '2025-04-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-04-08 14:05:20] Production.INFO: count ==4660 [2025-04-08 14:05:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:05:06 - End Time 2025-04-08 14:05:06 [2025-04-08 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862696', 'tblTempUsageDetail_20' ) start [2025-04-08 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862696', 'tblTempUsageDetail_20' ) end [2025-04-08 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862696', 'tblTempVendorCDR_20' ) start [2025-04-08 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862696', 'tblTempVendorCDR_20' ) end [2025-04-08 14:05:21] Production.INFO: ProcessCDR(1,14862696,1,1,2) [2025-04-08 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862696', 'tblTempUsageDetail_20' ) start [2025-04-08 14:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862696', 'tblTempUsageDetail_20' ) end [2025-04-08 14:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:05:26] Production.INFO: ==19233== Releasing lock... [2025-04-08 14:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:05:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:06:05 [end_date_ymd] => 2025-04-08 14:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:06:05' and `end` < '2025-04-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-04-08 14:06:19] Production.INFO: count ==4656 [2025-04-08 14:06:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:06:05 - End Time 2025-04-08 14:06:05 [2025-04-08 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862701', 'tblTempUsageDetail_20' ) start [2025-04-08 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862701', 'tblTempUsageDetail_20' ) end [2025-04-08 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862701', 'tblTempVendorCDR_20' ) start [2025-04-08 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862701', 'tblTempVendorCDR_20' ) end [2025-04-08 14:06:21] Production.INFO: ProcessCDR(1,14862701,1,1,2) [2025-04-08 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862701', 'tblTempUsageDetail_20' ) start [2025-04-08 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862701', 'tblTempUsageDetail_20' ) end [2025-04-08 14:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:06:26] Production.INFO: ==19305== Releasing lock... [2025-04-08 14:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:06:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:07:05 [end_date_ymd] => 2025-04-08 14:07:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:07:05' and `end` < '2025-04-08 14: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-04-08 14:07:19] Production.INFO: count ==4641 [2025-04-08 14:07:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:07:05 - End Time 2025-04-08 14:07:05 [2025-04-08 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862706', 'tblTempUsageDetail_20' ) start [2025-04-08 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862706', 'tblTempUsageDetail_20' ) end [2025-04-08 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862706', 'tblTempVendorCDR_20' ) start [2025-04-08 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862706', 'tblTempVendorCDR_20' ) end [2025-04-08 14:07:21] Production.INFO: ProcessCDR(1,14862706,1,1,2) [2025-04-08 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862706', 'tblTempUsageDetail_20' ) start [2025-04-08 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862706', 'tblTempUsageDetail_20' ) end [2025-04-08 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:07:26] Production.INFO: ==19387== Releasing lock... [2025-04-08 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:07:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:08:05 [end_date_ymd] => 2025-04-08 14:08:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:08:05' and `end` < '2025-04-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-04-08 14:08:19] Production.INFO: count ==4628 [2025-04-08 14:08:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:08:05 - End Time 2025-04-08 14:08:05 [2025-04-08 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862711', 'tblTempUsageDetail_20' ) start [2025-04-08 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862711', 'tblTempUsageDetail_20' ) end [2025-04-08 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862711', 'tblTempVendorCDR_20' ) start [2025-04-08 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862711', 'tblTempVendorCDR_20' ) end [2025-04-08 14:08:21] Production.INFO: ProcessCDR(1,14862711,1,1,2) [2025-04-08 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862711', 'tblTempUsageDetail_20' ) start [2025-04-08 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862711', 'tblTempUsageDetail_20' ) end [2025-04-08 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:08:26] Production.INFO: ==19461== Releasing lock... [2025-04-08 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:08:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:09:05 [end_date_ymd] => 2025-04-08 14:09:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:09:05' and `end` < '2025-04-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-04-08 14:09:19] Production.INFO: count ==4634 [2025-04-08 14:09:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:09:05 - End Time 2025-04-08 14:09:05 [2025-04-08 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862716', 'tblTempUsageDetail_20' ) start [2025-04-08 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862716', 'tblTempUsageDetail_20' ) end [2025-04-08 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862716', 'tblTempVendorCDR_20' ) start [2025-04-08 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862716', 'tblTempVendorCDR_20' ) end [2025-04-08 14:09:21] Production.INFO: ProcessCDR(1,14862716,1,1,2) [2025-04-08 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862716', 'tblTempUsageDetail_20' ) start [2025-04-08 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862716', 'tblTempUsageDetail_20' ) end [2025-04-08 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:09:26] Production.INFO: ==19537== Releasing lock... [2025-04-08 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:09:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:10:06 [end_date_ymd] => 2025-04-08 14:10:06 [RateCDR] => 1 ) [2025-04-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-04-08 11:10:06' and `end` < '2025-04-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-04-08 14:10:20] Production.INFO: count ==4639 [2025-04-08 14:10:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:10:06 - End Time 2025-04-08 14:10:06 [2025-04-08 14:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862722', 'tblTempUsageDetail_20' ) start [2025-04-08 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862722', 'tblTempUsageDetail_20' ) end [2025-04-08 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862722', 'tblTempVendorCDR_20' ) start [2025-04-08 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862722', 'tblTempVendorCDR_20' ) end [2025-04-08 14:10:22] Production.INFO: ProcessCDR(1,14862722,1,1,2) [2025-04-08 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862722', 'tblTempUsageDetail_20' ) start [2025-04-08 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862722', 'tblTempUsageDetail_20' ) end [2025-04-08 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:10:27] Production.INFO: ==19614== Releasing lock... [2025-04-08 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:10:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:11:05 [end_date_ymd] => 2025-04-08 14:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:11:05' and `end` < '2025-04-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-04-08 14:11:19] Production.INFO: count ==4634 [2025-04-08 14:11:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:11:05 - End Time 2025-04-08 14:11:05 [2025-04-08 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862727', 'tblTempUsageDetail_20' ) start [2025-04-08 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862727', 'tblTempUsageDetail_20' ) end [2025-04-08 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862727', 'tblTempVendorCDR_20' ) start [2025-04-08 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862727', 'tblTempVendorCDR_20' ) end [2025-04-08 14:11:21] Production.INFO: ProcessCDR(1,14862727,1,1,2) [2025-04-08 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862727', 'tblTempUsageDetail_20' ) start [2025-04-08 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862727', 'tblTempUsageDetail_20' ) end [2025-04-08 14:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:11:26] Production.INFO: ==19694== Releasing lock... [2025-04-08 14:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:11:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:12:05 [end_date_ymd] => 2025-04-08 14:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:12:05' and `end` < '2025-04-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-04-08 14:12:19] Production.INFO: count ==4627 [2025-04-08 14:12:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:12:05 - End Time 2025-04-08 14:12:05 [2025-04-08 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862732', 'tblTempUsageDetail_20' ) start [2025-04-08 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862732', 'tblTempUsageDetail_20' ) end [2025-04-08 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862732', 'tblTempVendorCDR_20' ) start [2025-04-08 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862732', 'tblTempVendorCDR_20' ) end [2025-04-08 14:12:21] Production.INFO: ProcessCDR(1,14862732,1,1,2) [2025-04-08 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862732', 'tblTempUsageDetail_20' ) start [2025-04-08 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862732', 'tblTempUsageDetail_20' ) end [2025-04-08 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:12:26] Production.INFO: ==19770== Releasing lock... [2025-04-08 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:12:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:13:05 [end_date_ymd] => 2025-04-08 14:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:13:05' and `end` < '2025-04-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-04-08 14:13:19] Production.INFO: count ==4621 [2025-04-08 14:13:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:13:05 - End Time 2025-04-08 14:13:05 [2025-04-08 14:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862737', 'tblTempUsageDetail_20' ) start [2025-04-08 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862737', 'tblTempUsageDetail_20' ) end [2025-04-08 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862737', 'tblTempVendorCDR_20' ) start [2025-04-08 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862737', 'tblTempVendorCDR_20' ) end [2025-04-08 14:13:21] Production.INFO: ProcessCDR(1,14862737,1,1,2) [2025-04-08 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862737', 'tblTempUsageDetail_20' ) start [2025-04-08 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862737', 'tblTempUsageDetail_20' ) end [2025-04-08 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:13:26] Production.INFO: ==19845== Releasing lock... [2025-04-08 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:13:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:14:05 [end_date_ymd] => 2025-04-08 14:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:14:05' and `end` < '2025-04-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-04-08 14:14:19] Production.INFO: count ==4611 [2025-04-08 14:14:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:14:05 - End Time 2025-04-08 14:14:05 [2025-04-08 14:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862742', 'tblTempUsageDetail_20' ) start [2025-04-08 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862742', 'tblTempUsageDetail_20' ) end [2025-04-08 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862742', 'tblTempVendorCDR_20' ) start [2025-04-08 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862742', 'tblTempVendorCDR_20' ) end [2025-04-08 14:14:21] Production.INFO: ProcessCDR(1,14862742,1,1,2) [2025-04-08 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862742', 'tblTempUsageDetail_20' ) start [2025-04-08 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862742', 'tblTempUsageDetail_20' ) end [2025-04-08 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:14:26] Production.INFO: ==19917== Releasing lock... [2025-04-08 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:14:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:15:05 [end_date_ymd] => 2025-04-08 14:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:15:05' and `end` < '2025-04-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-04-08 14:15:19] Production.INFO: count ==4612 [2025-04-08 14:15:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:15:05 - End Time 2025-04-08 14:15:05 [2025-04-08 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862747', 'tblTempUsageDetail_20' ) start [2025-04-08 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862747', 'tblTempUsageDetail_20' ) end [2025-04-08 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862747', 'tblTempVendorCDR_20' ) start [2025-04-08 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862747', 'tblTempVendorCDR_20' ) end [2025-04-08 14:15:21] Production.INFO: ProcessCDR(1,14862747,1,1,2) [2025-04-08 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862747', 'tblTempUsageDetail_20' ) start [2025-04-08 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862747', 'tblTempUsageDetail_20' ) end [2025-04-08 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:15:26] Production.INFO: ==19996== Releasing lock... [2025-04-08 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:15:26] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:16:06 [end_date_ymd] => 2025-04-08 14:16:06 [RateCDR] => 1 ) [2025-04-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-04-08 11:16:06' and `end` < '2025-04-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-04-08 14:16:19] Production.INFO: count ==4619 [2025-04-08 14:16:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:16:06 - End Time 2025-04-08 14:16:06 [2025-04-08 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862752', 'tblTempUsageDetail_20' ) start [2025-04-08 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862752', 'tblTempUsageDetail_20' ) end [2025-04-08 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862752', 'tblTempVendorCDR_20' ) start [2025-04-08 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862752', 'tblTempVendorCDR_20' ) end [2025-04-08 14:16:21] Production.INFO: ProcessCDR(1,14862752,1,1,2) [2025-04-08 14:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862752', 'tblTempUsageDetail_20' ) start [2025-04-08 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862752', 'tblTempUsageDetail_20' ) end [2025-04-08 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:16:27] Production.INFO: ==20072== Releasing lock... [2025-04-08 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:16:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:17:05 [end_date_ymd] => 2025-04-08 14:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:17:05' and `end` < '2025-04-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-04-08 14:17:19] Production.INFO: count ==4648 [2025-04-08 14:17:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:17:05 - End Time 2025-04-08 14:17:05 [2025-04-08 14:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862757', 'tblTempUsageDetail_20' ) start [2025-04-08 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862757', 'tblTempUsageDetail_20' ) end [2025-04-08 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862757', 'tblTempVendorCDR_20' ) start [2025-04-08 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862757', 'tblTempVendorCDR_20' ) end [2025-04-08 14:17:21] Production.INFO: ProcessCDR(1,14862757,1,1,2) [2025-04-08 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862757', 'tblTempUsageDetail_20' ) start [2025-04-08 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862757', 'tblTempUsageDetail_20' ) end [2025-04-08 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:17:26] Production.INFO: ==20151== Releasing lock... [2025-04-08 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:17:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:18:05 [end_date_ymd] => 2025-04-08 14:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:18:05' and `end` < '2025-04-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-04-08 14:18:19] Production.INFO: count ==4647 [2025-04-08 14:18:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:18:05 - End Time 2025-04-08 14:18:05 [2025-04-08 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862762', 'tblTempUsageDetail_20' ) start [2025-04-08 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862762', 'tblTempUsageDetail_20' ) end [2025-04-08 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862762', 'tblTempVendorCDR_20' ) start [2025-04-08 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862762', 'tblTempVendorCDR_20' ) end [2025-04-08 14:18:21] Production.INFO: ProcessCDR(1,14862762,1,1,2) [2025-04-08 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862762', 'tblTempUsageDetail_20' ) start [2025-04-08 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862762', 'tblTempUsageDetail_20' ) end [2025-04-08 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:18:26] Production.INFO: ==20270== Releasing lock... [2025-04-08 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:18:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:19:05 [end_date_ymd] => 2025-04-08 14:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:19:05' and `end` < '2025-04-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-04-08 14:19:19] Production.INFO: count ==4635 [2025-04-08 14:19:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:19:05 - End Time 2025-04-08 14:19:05 [2025-04-08 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862767', 'tblTempUsageDetail_20' ) start [2025-04-08 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862767', 'tblTempUsageDetail_20' ) end [2025-04-08 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862767', 'tblTempVendorCDR_20' ) start [2025-04-08 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862767', 'tblTempVendorCDR_20' ) end [2025-04-08 14:19:21] Production.INFO: ProcessCDR(1,14862767,1,1,2) [2025-04-08 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862767', 'tblTempUsageDetail_20' ) start [2025-04-08 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862767', 'tblTempUsageDetail_20' ) end [2025-04-08 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:19:27] Production.INFO: ==20340== Releasing lock... [2025-04-08 14:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:19:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:20:06 [end_date_ymd] => 2025-04-08 14:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 11:20:06' and `end` < '2025-04-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-04-08 14:20:20] Production.INFO: count ==4631 [2025-04-08 14:20:22] Production.ERROR: pbx CDR StartTime 2025-04-08 11:20:06 - End Time 2025-04-08 14:20:06 [2025-04-08 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862773', 'tblTempUsageDetail_20' ) start [2025-04-08 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862773', 'tblTempUsageDetail_20' ) end [2025-04-08 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862773', 'tblTempVendorCDR_20' ) start [2025-04-08 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862773', 'tblTempVendorCDR_20' ) end [2025-04-08 14:20:22] Production.INFO: ProcessCDR(1,14862773,1,1,2) [2025-04-08 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862773', 'tblTempUsageDetail_20' ) start [2025-04-08 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862773', 'tblTempUsageDetail_20' ) end [2025-04-08 14:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:20:27] Production.INFO: ==20419== Releasing lock... [2025-04-08 14:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:20:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:21:05 [end_date_ymd] => 2025-04-08 14:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:21:05' and `end` < '2025-04-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-04-08 14:21:19] Production.INFO: count ==4642 [2025-04-08 14:21:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:21:05 - End Time 2025-04-08 14:21:05 [2025-04-08 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862778', 'tblTempUsageDetail_20' ) start [2025-04-08 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862778', 'tblTempUsageDetail_20' ) end [2025-04-08 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862778', 'tblTempVendorCDR_20' ) start [2025-04-08 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862778', 'tblTempVendorCDR_20' ) end [2025-04-08 14:21:20] Production.INFO: ProcessCDR(1,14862778,1,1,2) [2025-04-08 14:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862778', 'tblTempUsageDetail_20' ) start [2025-04-08 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862778', 'tblTempUsageDetail_20' ) end [2025-04-08 14:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:21:25] Production.INFO: ==20495== Releasing lock... [2025-04-08 14:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:21:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:22:05 [end_date_ymd] => 2025-04-08 14:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:22:05' and `end` < '2025-04-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-04-08 14:22:19] Production.INFO: count ==4629 [2025-04-08 14:22:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:22:05 - End Time 2025-04-08 14:22:05 [2025-04-08 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862783', 'tblTempUsageDetail_20' ) start [2025-04-08 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862783', 'tblTempUsageDetail_20' ) end [2025-04-08 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862783', 'tblTempVendorCDR_20' ) start [2025-04-08 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862783', 'tblTempVendorCDR_20' ) end [2025-04-08 14:22:21] Production.INFO: ProcessCDR(1,14862783,1,1,2) [2025-04-08 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862783', 'tblTempUsageDetail_20' ) start [2025-04-08 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862783', 'tblTempUsageDetail_20' ) end [2025-04-08 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:22:26] Production.INFO: ==20571== Releasing lock... [2025-04-08 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:22:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:23:05 [end_date_ymd] => 2025-04-08 14:23:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:23:05' and `end` < '2025-04-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-04-08 14:23:19] Production.INFO: count ==4641 [2025-04-08 14:23:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:23:05 - End Time 2025-04-08 14:23:05 [2025-04-08 14:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862788', 'tblTempUsageDetail_20' ) start [2025-04-08 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862788', 'tblTempUsageDetail_20' ) end [2025-04-08 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862788', 'tblTempVendorCDR_20' ) start [2025-04-08 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862788', 'tblTempVendorCDR_20' ) end [2025-04-08 14:23:21] Production.INFO: ProcessCDR(1,14862788,1,1,2) [2025-04-08 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862788', 'tblTempUsageDetail_20' ) start [2025-04-08 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862788', 'tblTempUsageDetail_20' ) end [2025-04-08 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:23:26] Production.INFO: ==20651== Releasing lock... [2025-04-08 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:23:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:24:05 [end_date_ymd] => 2025-04-08 14:24:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:24:05' and `end` < '2025-04-08 14: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-04-08 14:24:19] Production.INFO: count ==4643 [2025-04-08 14:24:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:24:05 - End Time 2025-04-08 14:24:05 [2025-04-08 14:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862793', 'tblTempUsageDetail_20' ) start [2025-04-08 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862793', 'tblTempUsageDetail_20' ) end [2025-04-08 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862793', 'tblTempVendorCDR_20' ) start [2025-04-08 14:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862793', 'tblTempVendorCDR_20' ) end [2025-04-08 14:24:21] Production.INFO: ProcessCDR(1,14862793,1,1,2) [2025-04-08 14:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862793', 'tblTempUsageDetail_20' ) start [2025-04-08 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862793', 'tblTempUsageDetail_20' ) end [2025-04-08 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:24:26] Production.INFO: ==20730== Releasing lock... [2025-04-08 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:24:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:25:05 [end_date_ymd] => 2025-04-08 14:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:25:05' and `end` < '2025-04-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-04-08 14:25:18] Production.INFO: count ==4647 [2025-04-08 14:25:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:25:05 - End Time 2025-04-08 14:25:05 [2025-04-08 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862798', 'tblTempUsageDetail_20' ) start [2025-04-08 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862798', 'tblTempUsageDetail_20' ) end [2025-04-08 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862798', 'tblTempVendorCDR_20' ) start [2025-04-08 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862798', 'tblTempVendorCDR_20' ) end [2025-04-08 14:25:20] Production.INFO: ProcessCDR(1,14862798,1,1,2) [2025-04-08 14:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862798', 'tblTempUsageDetail_20' ) start [2025-04-08 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862798', 'tblTempUsageDetail_20' ) end [2025-04-08 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:25:25] Production.INFO: ==20802== Releasing lock... [2025-04-08 14:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:25:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:26:05 [end_date_ymd] => 2025-04-08 14:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:26:05' and `end` < '2025-04-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-04-08 14:26:19] Production.INFO: count ==4640 [2025-04-08 14:26:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:26:05 - End Time 2025-04-08 14:26:05 [2025-04-08 14:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862803', 'tblTempUsageDetail_20' ) start [2025-04-08 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862803', 'tblTempUsageDetail_20' ) end [2025-04-08 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862803', 'tblTempVendorCDR_20' ) start [2025-04-08 14:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862803', 'tblTempVendorCDR_20' ) end [2025-04-08 14:26:21] Production.INFO: ProcessCDR(1,14862803,1,1,2) [2025-04-08 14:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862803', 'tblTempUsageDetail_20' ) start [2025-04-08 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862803', 'tblTempUsageDetail_20' ) end [2025-04-08 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:26:26] Production.INFO: ==20885== Releasing lock... [2025-04-08 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:26:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:27:04 [end_date_ymd] => 2025-04-08 14:27:04 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:27:04' and `end` < '2025-04-08 14: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-04-08 14:27:18] Production.INFO: count ==4647 [2025-04-08 14:27:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:27:04 - End Time 2025-04-08 14:27:04 [2025-04-08 14:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862808', 'tblTempUsageDetail_20' ) start [2025-04-08 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862808', 'tblTempUsageDetail_20' ) end [2025-04-08 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862808', 'tblTempVendorCDR_20' ) start [2025-04-08 14:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862808', 'tblTempVendorCDR_20' ) end [2025-04-08 14:27:20] Production.INFO: ProcessCDR(1,14862808,1,1,2) [2025-04-08 14:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862808', 'tblTempUsageDetail_20' ) start [2025-04-08 14:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862808', 'tblTempUsageDetail_20' ) end [2025-04-08 14:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:27:25] Production.INFO: ==20957== Releasing lock... [2025-04-08 14:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:27:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:28:05 [end_date_ymd] => 2025-04-08 14:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:28:05' and `end` < '2025-04-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-04-08 14:28:19] Production.INFO: count ==4715 [2025-04-08 14:28:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:28:05 - End Time 2025-04-08 14:28:05 [2025-04-08 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862813', 'tblTempUsageDetail_20' ) start [2025-04-08 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862813', 'tblTempUsageDetail_20' ) end [2025-04-08 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862813', 'tblTempVendorCDR_20' ) start [2025-04-08 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862813', 'tblTempVendorCDR_20' ) end [2025-04-08 14:28:21] Production.INFO: ProcessCDR(1,14862813,1,1,2) [2025-04-08 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862813', 'tblTempUsageDetail_20' ) start [2025-04-08 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862813', 'tblTempUsageDetail_20' ) end [2025-04-08 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:28:26] Production.INFO: ==21034== Releasing lock... [2025-04-08 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:28:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:29:05 [end_date_ymd] => 2025-04-08 14:29:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:29:05' and `end` < '2025-04-08 14: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-04-08 14:29:18] Production.INFO: count ==4725 [2025-04-08 14:29:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:29:05 - End Time 2025-04-08 14:29:05 [2025-04-08 14:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862818', 'tblTempUsageDetail_20' ) start [2025-04-08 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862818', 'tblTempUsageDetail_20' ) end [2025-04-08 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862818', 'tblTempVendorCDR_20' ) start [2025-04-08 14:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862818', 'tblTempVendorCDR_20' ) end [2025-04-08 14:29:20] Production.INFO: ProcessCDR(1,14862818,1,1,2) [2025-04-08 14:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862818', 'tblTempUsageDetail_20' ) start [2025-04-08 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862818', 'tblTempUsageDetail_20' ) end [2025-04-08 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:29:26] Production.INFO: ==21109== Releasing lock... [2025-04-08 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:29:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:30:06 [end_date_ymd] => 2025-04-08 14:30:06 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:30:06' and `end` < '2025-04-08 14: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-04-08 14:30:20] Production.INFO: count ==4732 [2025-04-08 14:30:22] Production.ERROR: pbx CDR StartTime 2025-04-08 11:30:06 - End Time 2025-04-08 14:30:06 [2025-04-08 14:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862823', 'tblTempUsageDetail_20' ) start [2025-04-08 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862823', 'tblTempUsageDetail_20' ) end [2025-04-08 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862823', 'tblTempVendorCDR_20' ) start [2025-04-08 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862823', 'tblTempVendorCDR_20' ) end [2025-04-08 14:30:22] Production.INFO: ProcessCDR(1,14862823,1,1,2) [2025-04-08 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862823', 'tblTempUsageDetail_20' ) start [2025-04-08 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862823', 'tblTempUsageDetail_20' ) end [2025-04-08 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:30:27] Production.INFO: ==21195== Releasing lock... [2025-04-08 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:30:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:31:05 [end_date_ymd] => 2025-04-08 14:31:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:31:05' and `end` < '2025-04-08 14: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-04-08 14:31:19] Production.INFO: count ==4763 [2025-04-08 14:31:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:31:05 - End Time 2025-04-08 14:31:05 [2025-04-08 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862829', 'tblTempUsageDetail_20' ) start [2025-04-08 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862829', 'tblTempUsageDetail_20' ) end [2025-04-08 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862829', 'tblTempVendorCDR_20' ) start [2025-04-08 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862829', 'tblTempVendorCDR_20' ) end [2025-04-08 14:31:21] Production.INFO: ProcessCDR(1,14862829,1,1,2) [2025-04-08 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862829', 'tblTempUsageDetail_20' ) start [2025-04-08 14:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862829', 'tblTempUsageDetail_20' ) end [2025-04-08 14:31:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:31:27] Production.INFO: ==21276== Releasing lock... [2025-04-08 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:31:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:32:05 [end_date_ymd] => 2025-04-08 14:32:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:32:05' and `end` < '2025-04-08 14: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-04-08 14:32:19] Production.INFO: count ==4772 [2025-04-08 14:32:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:32:05 - End Time 2025-04-08 14:32:05 [2025-04-08 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862834', 'tblTempUsageDetail_20' ) start [2025-04-08 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862834', 'tblTempUsageDetail_20' ) end [2025-04-08 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862834', 'tblTempVendorCDR_20' ) start [2025-04-08 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862834', 'tblTempVendorCDR_20' ) end [2025-04-08 14:32:21] Production.INFO: ProcessCDR(1,14862834,1,1,2) [2025-04-08 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862834', 'tblTempUsageDetail_20' ) start [2025-04-08 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862834', 'tblTempUsageDetail_20' ) end [2025-04-08 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:32:26] Production.INFO: ==21357== Releasing lock... [2025-04-08 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:32:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:33:05 [end_date_ymd] => 2025-04-08 14:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:33:05' and `end` < '2025-04-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-04-08 14:33:19] Production.INFO: count ==4754 [2025-04-08 14:33:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:33:05 - End Time 2025-04-08 14:33:05 [2025-04-08 14:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862839', 'tblTempUsageDetail_20' ) start [2025-04-08 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862839', 'tblTempUsageDetail_20' ) end [2025-04-08 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862839', 'tblTempVendorCDR_20' ) start [2025-04-08 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862839', 'tblTempVendorCDR_20' ) end [2025-04-08 14:33:21] Production.INFO: ProcessCDR(1,14862839,1,1,2) [2025-04-08 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862839', 'tblTempUsageDetail_20' ) start [2025-04-08 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862839', 'tblTempUsageDetail_20' ) end [2025-04-08 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:33:26] Production.INFO: ==21469== Releasing lock... [2025-04-08 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:33:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:34:05 [end_date_ymd] => 2025-04-08 14:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:34:05' and `end` < '2025-04-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-04-08 14:34:19] Production.INFO: count ==4730 [2025-04-08 14:34:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:34:05 - End Time 2025-04-08 14:34:05 [2025-04-08 14:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862844', 'tblTempUsageDetail_20' ) start [2025-04-08 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862844', 'tblTempUsageDetail_20' ) end [2025-04-08 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862844', 'tblTempVendorCDR_20' ) start [2025-04-08 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862844', 'tblTempVendorCDR_20' ) end [2025-04-08 14:34:21] Production.INFO: ProcessCDR(1,14862844,1,1,2) [2025-04-08 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862844', 'tblTempUsageDetail_20' ) start [2025-04-08 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862844', 'tblTempUsageDetail_20' ) end [2025-04-08 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:34:26] Production.INFO: ==21549== Releasing lock... [2025-04-08 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:34:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:35:05 [end_date_ymd] => 2025-04-08 14:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:35:05' and `end` < '2025-04-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-04-08 14:35:19] Production.INFO: count ==4727 [2025-04-08 14:35:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:35:05 - End Time 2025-04-08 14:35:05 [2025-04-08 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862849', 'tblTempUsageDetail_20' ) start [2025-04-08 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862849', 'tblTempUsageDetail_20' ) end [2025-04-08 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862849', 'tblTempVendorCDR_20' ) start [2025-04-08 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862849', 'tblTempVendorCDR_20' ) end [2025-04-08 14:35:21] Production.INFO: ProcessCDR(1,14862849,1,1,2) [2025-04-08 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862849', 'tblTempUsageDetail_20' ) start [2025-04-08 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862849', 'tblTempUsageDetail_20' ) end [2025-04-08 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:35:27] Production.INFO: ==21624== Releasing lock... [2025-04-08 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:35:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:36:05 [end_date_ymd] => 2025-04-08 14:36:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:36:05' and `end` < '2025-04-08 14: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-04-08 14:36:19] Production.INFO: count ==4705 [2025-04-08 14:36:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:36:05 - End Time 2025-04-08 14:36:05 [2025-04-08 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862854', 'tblTempUsageDetail_20' ) start [2025-04-08 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862854', 'tblTempUsageDetail_20' ) end [2025-04-08 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862854', 'tblTempVendorCDR_20' ) start [2025-04-08 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862854', 'tblTempVendorCDR_20' ) end [2025-04-08 14:36:21] Production.INFO: ProcessCDR(1,14862854,1,1,2) [2025-04-08 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862854', 'tblTempUsageDetail_20' ) start [2025-04-08 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862854', 'tblTempUsageDetail_20' ) end [2025-04-08 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:36:26] Production.INFO: ==21700== Releasing lock... [2025-04-08 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:36:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:37:05 [end_date_ymd] => 2025-04-08 14:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:37:05' and `end` < '2025-04-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-04-08 14:37:19] Production.INFO: count ==4708 [2025-04-08 14:37:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:37:05 - End Time 2025-04-08 14:37:05 [2025-04-08 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862859', 'tblTempUsageDetail_20' ) start [2025-04-08 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862859', 'tblTempUsageDetail_20' ) end [2025-04-08 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862859', 'tblTempVendorCDR_20' ) start [2025-04-08 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862859', 'tblTempVendorCDR_20' ) end [2025-04-08 14:37:21] Production.INFO: ProcessCDR(1,14862859,1,1,2) [2025-04-08 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862859', 'tblTempUsageDetail_20' ) start [2025-04-08 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862859', 'tblTempUsageDetail_20' ) end [2025-04-08 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:37:26] Production.INFO: ==21777== Releasing lock... [2025-04-08 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:37:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:38:05 [end_date_ymd] => 2025-04-08 14:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:38:05' and `end` < '2025-04-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-04-08 14:38:20] Production.INFO: count ==4710 [2025-04-08 14:38:22] Production.ERROR: pbx CDR StartTime 2025-04-08 11:38:05 - End Time 2025-04-08 14:38:05 [2025-04-08 14:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862864', 'tblTempUsageDetail_20' ) start [2025-04-08 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862864', 'tblTempUsageDetail_20' ) end [2025-04-08 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862864', 'tblTempVendorCDR_20' ) start [2025-04-08 14:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862864', 'tblTempVendorCDR_20' ) end [2025-04-08 14:38:22] Production.INFO: ProcessCDR(1,14862864,1,1,2) [2025-04-08 14:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862864', 'tblTempUsageDetail_20' ) start [2025-04-08 14:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862864', 'tblTempUsageDetail_20' ) end [2025-04-08 14:38:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:38:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:38:28] Production.INFO: ==21853== Releasing lock... [2025-04-08 14:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:38:28] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:39:05 [end_date_ymd] => 2025-04-08 14:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:39:05' and `end` < '2025-04-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-04-08 14:39:19] Production.INFO: count ==4715 [2025-04-08 14:39:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:39:05 - End Time 2025-04-08 14:39:05 [2025-04-08 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862869', 'tblTempUsageDetail_20' ) start [2025-04-08 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862869', 'tblTempUsageDetail_20' ) end [2025-04-08 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862869', 'tblTempVendorCDR_20' ) start [2025-04-08 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862869', 'tblTempVendorCDR_20' ) end [2025-04-08 14:39:21] Production.INFO: ProcessCDR(1,14862869,1,1,2) [2025-04-08 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862869', 'tblTempUsageDetail_20' ) start [2025-04-08 14:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862869', 'tblTempUsageDetail_20' ) end [2025-04-08 14:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:39:27] Production.INFO: ==21934== Releasing lock... [2025-04-08 14:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:39:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:40:05 [end_date_ymd] => 2025-04-08 14:40:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:40:05' and `end` < '2025-04-08 14: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-04-08 14:40:20] Production.INFO: count ==4727 [2025-04-08 14:40:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:40:05 - End Time 2025-04-08 14:40:05 [2025-04-08 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862874', 'tblTempUsageDetail_20' ) start [2025-04-08 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862874', 'tblTempUsageDetail_20' ) end [2025-04-08 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862874', 'tblTempVendorCDR_20' ) start [2025-04-08 14:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862874', 'tblTempVendorCDR_20' ) end [2025-04-08 14:40:22] Production.INFO: ProcessCDR(1,14862874,1,1,2) [2025-04-08 14:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862874', 'tblTempUsageDetail_20' ) start [2025-04-08 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862874', 'tblTempUsageDetail_20' ) end [2025-04-08 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:40:27] Production.INFO: ==22016== Releasing lock... [2025-04-08 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:40:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:41:05 [end_date_ymd] => 2025-04-08 14:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:41:05' and `end` < '2025-04-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-04-08 14:41:20] Production.INFO: count ==4721 [2025-04-08 14:41:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:41:05 - End Time 2025-04-08 14:41:05 [2025-04-08 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862880', 'tblTempUsageDetail_20' ) start [2025-04-08 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862880', 'tblTempUsageDetail_20' ) end [2025-04-08 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862880', 'tblTempVendorCDR_20' ) start [2025-04-08 14:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862880', 'tblTempVendorCDR_20' ) end [2025-04-08 14:41:22] Production.INFO: ProcessCDR(1,14862880,1,1,2) [2025-04-08 14:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862880', 'tblTempUsageDetail_20' ) start [2025-04-08 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862880', 'tblTempUsageDetail_20' ) end [2025-04-08 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:41:27] Production.INFO: ==22096== Releasing lock... [2025-04-08 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:41:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:42:05 [end_date_ymd] => 2025-04-08 14:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:42:05' and `end` < '2025-04-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-04-08 14:42:21] Production.INFO: count ==4731 [2025-04-08 14:42:22] Production.ERROR: pbx CDR StartTime 2025-04-08 11:42:05 - End Time 2025-04-08 14:42:05 [2025-04-08 14:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862885', 'tblTempUsageDetail_20' ) start [2025-04-08 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862885', 'tblTempUsageDetail_20' ) end [2025-04-08 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862885', 'tblTempVendorCDR_20' ) start [2025-04-08 14:42:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862885', 'tblTempVendorCDR_20' ) end [2025-04-08 14:42:23] Production.INFO: ProcessCDR(1,14862885,1,1,2) [2025-04-08 14:42:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:42:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862885', 'tblTempUsageDetail_20' ) start [2025-04-08 14:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862885', 'tblTempUsageDetail_20' ) end [2025-04-08 14:42:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:42:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:42:28] Production.INFO: ==22172== Releasing lock... [2025-04-08 14:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:42:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:43:05 [end_date_ymd] => 2025-04-08 14:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:43:05' and `end` < '2025-04-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-04-08 14:43:19] Production.INFO: count ==4709 [2025-04-08 14:43:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:43:05 - End Time 2025-04-08 14:43:05 [2025-04-08 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862890', 'tblTempUsageDetail_20' ) start [2025-04-08 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862890', 'tblTempUsageDetail_20' ) end [2025-04-08 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862890', 'tblTempVendorCDR_20' ) start [2025-04-08 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862890', 'tblTempVendorCDR_20' ) end [2025-04-08 14:43:21] Production.INFO: ProcessCDR(1,14862890,1,1,2) [2025-04-08 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862890', 'tblTempUsageDetail_20' ) start [2025-04-08 14:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862890', 'tblTempUsageDetail_20' ) end [2025-04-08 14:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:43:26] Production.INFO: ==22256== Releasing lock... [2025-04-08 14:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:43:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:44:06 [end_date_ymd] => 2025-04-08 14:44:06 [RateCDR] => 1 ) [2025-04-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-04-08 11:44:06' and `end` < '2025-04-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-04-08 14:44:20] Production.INFO: count ==4698 [2025-04-08 14:44:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:44:06 - End Time 2025-04-08 14:44:06 [2025-04-08 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862895', 'tblTempUsageDetail_20' ) start [2025-04-08 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862895', 'tblTempUsageDetail_20' ) end [2025-04-08 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862895', 'tblTempVendorCDR_20' ) start [2025-04-08 14:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862895', 'tblTempVendorCDR_20' ) end [2025-04-08 14:44:22] Production.INFO: ProcessCDR(1,14862895,1,1,2) [2025-04-08 14:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862895', 'tblTempUsageDetail_20' ) start [2025-04-08 14:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862895', 'tblTempUsageDetail_20' ) end [2025-04-08 14:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:44:27] Production.INFO: ==22330== Releasing lock... [2025-04-08 14:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:44:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:45:05 [end_date_ymd] => 2025-04-08 14:45:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:45:05' and `end` < '2025-04-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-04-08 14:45:19] Production.INFO: count ==4698 [2025-04-08 14:45:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:45:05 - End Time 2025-04-08 14:45:05 [2025-04-08 14:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862900', 'tblTempUsageDetail_20' ) start [2025-04-08 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862900', 'tblTempUsageDetail_20' ) end [2025-04-08 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862900', 'tblTempVendorCDR_20' ) start [2025-04-08 14:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862900', 'tblTempVendorCDR_20' ) end [2025-04-08 14:45:21] Production.INFO: ProcessCDR(1,14862900,1,1,2) [2025-04-08 14:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862900', 'tblTempUsageDetail_20' ) start [2025-04-08 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862900', 'tblTempUsageDetail_20' ) end [2025-04-08 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:45:27] Production.INFO: ==22408== Releasing lock... [2025-04-08 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:45:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:46:05 [end_date_ymd] => 2025-04-08 14:46:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:46:05' and `end` < '2025-04-08 14: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-04-08 14:46:19] Production.INFO: count ==4751 [2025-04-08 14:46:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:46:05 - End Time 2025-04-08 14:46:05 [2025-04-08 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862905', 'tblTempUsageDetail_20' ) start [2025-04-08 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862905', 'tblTempUsageDetail_20' ) end [2025-04-08 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862905', 'tblTempVendorCDR_20' ) start [2025-04-08 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862905', 'tblTempVendorCDR_20' ) end [2025-04-08 14:46:21] Production.INFO: ProcessCDR(1,14862905,1,1,2) [2025-04-08 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862905', 'tblTempUsageDetail_20' ) start [2025-04-08 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862905', 'tblTempUsageDetail_20' ) end [2025-04-08 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:46:26] Production.INFO: ==22484== Releasing lock... [2025-04-08 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:46:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:47:05 [end_date_ymd] => 2025-04-08 14:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:47:05' and `end` < '2025-04-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-04-08 14:47:18] Production.INFO: count ==4733 [2025-04-08 14:47:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:47:05 - End Time 2025-04-08 14:47:05 [2025-04-08 14:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862910', 'tblTempUsageDetail_20' ) start [2025-04-08 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862910', 'tblTempUsageDetail_20' ) end [2025-04-08 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862910', 'tblTempVendorCDR_20' ) start [2025-04-08 14:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862910', 'tblTempVendorCDR_20' ) end [2025-04-08 14:47:20] Production.INFO: ProcessCDR(1,14862910,1,1,2) [2025-04-08 14:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862910', 'tblTempUsageDetail_20' ) start [2025-04-08 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862910', 'tblTempUsageDetail_20' ) end [2025-04-08 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:47:26] Production.INFO: ==22557== Releasing lock... [2025-04-08 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:47:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:48:05 [end_date_ymd] => 2025-04-08 14:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:48:05' and `end` < '2025-04-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-04-08 14:48:19] Production.INFO: count ==4724 [2025-04-08 14:48:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:48:05 - End Time 2025-04-08 14:48:05 [2025-04-08 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862915', 'tblTempUsageDetail_20' ) start [2025-04-08 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862915', 'tblTempUsageDetail_20' ) end [2025-04-08 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862915', 'tblTempVendorCDR_20' ) start [2025-04-08 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862915', 'tblTempVendorCDR_20' ) end [2025-04-08 14:48:21] Production.INFO: ProcessCDR(1,14862915,1,1,2) [2025-04-08 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862915', 'tblTempUsageDetail_20' ) start [2025-04-08 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862915', 'tblTempUsageDetail_20' ) end [2025-04-08 14:48:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:48:27] Production.INFO: ==22637== Releasing lock... [2025-04-08 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:48:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:49:05 [end_date_ymd] => 2025-04-08 14:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:49:05' and `end` < '2025-04-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-04-08 14:49:19] Production.INFO: count ==4739 [2025-04-08 14:49:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:49:05 - End Time 2025-04-08 14:49:05 [2025-04-08 14:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862920', 'tblTempUsageDetail_20' ) start [2025-04-08 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862920', 'tblTempUsageDetail_20' ) end [2025-04-08 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862920', 'tblTempVendorCDR_20' ) start [2025-04-08 14:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862920', 'tblTempVendorCDR_20' ) end [2025-04-08 14:49:21] Production.INFO: ProcessCDR(1,14862920,1,1,2) [2025-04-08 14:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862920', 'tblTempUsageDetail_20' ) start [2025-04-08 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862920', 'tblTempUsageDetail_20' ) end [2025-04-08 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:49:26] Production.INFO: ==22751== Releasing lock... [2025-04-08 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:49:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:50:06 [end_date_ymd] => 2025-04-08 14:50:06 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:50:06' and `end` < '2025-04-08 14: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-04-08 14:50:20] Production.INFO: count ==4744 [2025-04-08 14:50:22] Production.ERROR: pbx CDR StartTime 2025-04-08 11:50:06 - End Time 2025-04-08 14:50:06 [2025-04-08 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862925', 'tblTempUsageDetail_20' ) start [2025-04-08 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862925', 'tblTempUsageDetail_20' ) end [2025-04-08 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862925', 'tblTempVendorCDR_20' ) start [2025-04-08 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862925', 'tblTempVendorCDR_20' ) end [2025-04-08 14:50:22] Production.INFO: ProcessCDR(1,14862925,1,1,2) [2025-04-08 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862925', 'tblTempUsageDetail_20' ) start [2025-04-08 14:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862925', 'tblTempUsageDetail_20' ) end [2025-04-08 14:50:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:50:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:50:28] Production.INFO: ==22828== Releasing lock... [2025-04-08 14:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:50:28] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:51:05 [end_date_ymd] => 2025-04-08 14:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:51:05' and `end` < '2025-04-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-04-08 14:51:19] Production.INFO: count ==4726 [2025-04-08 14:51:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:51:05 - End Time 2025-04-08 14:51:05 [2025-04-08 14:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862931', 'tblTempUsageDetail_20' ) start [2025-04-08 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862931', 'tblTempUsageDetail_20' ) end [2025-04-08 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862931', 'tblTempVendorCDR_20' ) start [2025-04-08 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862931', 'tblTempVendorCDR_20' ) end [2025-04-08 14:51:21] Production.INFO: ProcessCDR(1,14862931,1,1,2) [2025-04-08 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862931', 'tblTempUsageDetail_20' ) start [2025-04-08 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862931', 'tblTempUsageDetail_20' ) end [2025-04-08 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:51:26] Production.INFO: ==22907== Releasing lock... [2025-04-08 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:51:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 14:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:52:06 [end_date_ymd] => 2025-04-08 14:52:06 [RateCDR] => 1 ) [2025-04-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-04-08 11:52:06' and `end` < '2025-04-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-04-08 14:52:20] Production.INFO: count ==4719 [2025-04-08 14:52:22] Production.ERROR: pbx CDR StartTime 2025-04-08 11:52:06 - End Time 2025-04-08 14:52:06 [2025-04-08 14:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862936', 'tblTempUsageDetail_20' ) start [2025-04-08 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862936', 'tblTempUsageDetail_20' ) end [2025-04-08 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862936', 'tblTempVendorCDR_20' ) start [2025-04-08 14:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862936', 'tblTempVendorCDR_20' ) end [2025-04-08 14:52:22] Production.INFO: ProcessCDR(1,14862936,1,1,2) [2025-04-08 14:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862936', 'tblTempUsageDetail_20' ) start [2025-04-08 14:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862936', 'tblTempUsageDetail_20' ) end [2025-04-08 14:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:52:27] Production.INFO: ==22981== Releasing lock... [2025-04-08 14:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:52:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:53:05 [end_date_ymd] => 2025-04-08 14:53:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:53:05' and `end` < '2025-04-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-04-08 14:53:19] Production.INFO: count ==4720 [2025-04-08 14:53:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:53:05 - End Time 2025-04-08 14:53:05 [2025-04-08 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862941', 'tblTempUsageDetail_20' ) start [2025-04-08 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862941', 'tblTempUsageDetail_20' ) end [2025-04-08 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862941', 'tblTempVendorCDR_20' ) start [2025-04-08 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862941', 'tblTempVendorCDR_20' ) end [2025-04-08 14:53:21] Production.INFO: ProcessCDR(1,14862941,1,1,2) [2025-04-08 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862941', 'tblTempUsageDetail_20' ) start [2025-04-08 14:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862941', 'tblTempUsageDetail_20' ) end [2025-04-08 14:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:53:27] Production.INFO: ==23059== Releasing lock... [2025-04-08 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:53:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:54:05 [end_date_ymd] => 2025-04-08 14:54:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:54:05' and `end` < '2025-04-08 14: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-04-08 14:54:19] Production.INFO: count ==4696 [2025-04-08 14:54:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:54:05 - End Time 2025-04-08 14:54:05 [2025-04-08 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862946', 'tblTempUsageDetail_20' ) start [2025-04-08 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862946', 'tblTempUsageDetail_20' ) end [2025-04-08 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862946', 'tblTempVendorCDR_20' ) start [2025-04-08 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862946', 'tblTempVendorCDR_20' ) end [2025-04-08 14:54:21] Production.INFO: ProcessCDR(1,14862946,1,1,2) [2025-04-08 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862946', 'tblTempUsageDetail_20' ) start [2025-04-08 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862946', 'tblTempUsageDetail_20' ) end [2025-04-08 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:54:26] Production.INFO: ==23133== Releasing lock... [2025-04-08 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:54:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:55:05 [end_date_ymd] => 2025-04-08 14:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:55:05' and `end` < '2025-04-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-04-08 14:55:19] Production.INFO: count ==4774 [2025-04-08 14:55:20] Production.ERROR: pbx CDR StartTime 2025-04-08 11:55:05 - End Time 2025-04-08 14:55:05 [2025-04-08 14:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862951', 'tblTempUsageDetail_20' ) start [2025-04-08 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862951', 'tblTempUsageDetail_20' ) end [2025-04-08 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862951', 'tblTempVendorCDR_20' ) start [2025-04-08 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862951', 'tblTempVendorCDR_20' ) end [2025-04-08 14:55:21] Production.INFO: ProcessCDR(1,14862951,1,1,2) [2025-04-08 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862951', 'tblTempUsageDetail_20' ) start [2025-04-08 14:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862951', 'tblTempUsageDetail_20' ) end [2025-04-08 14:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:55:26] Production.INFO: ==23207== Releasing lock... [2025-04-08 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:55:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:56:05 [end_date_ymd] => 2025-04-08 14:56:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:56:05' and `end` < '2025-04-08 14: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-04-08 14:56:19] Production.INFO: count ==4795 [2025-04-08 14:56:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:56:05 - End Time 2025-04-08 14:56:05 [2025-04-08 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862956', 'tblTempUsageDetail_20' ) start [2025-04-08 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862956', 'tblTempUsageDetail_20' ) end [2025-04-08 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862956', 'tblTempVendorCDR_20' ) start [2025-04-08 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862956', 'tblTempVendorCDR_20' ) end [2025-04-08 14:56:21] Production.INFO: ProcessCDR(1,14862956,1,1,2) [2025-04-08 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862956', 'tblTempUsageDetail_20' ) start [2025-04-08 14:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862956', 'tblTempUsageDetail_20' ) end [2025-04-08 14:56:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:56:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:56:27] Production.INFO: ==23290== Releasing lock... [2025-04-08 14:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:56:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:57:05 [end_date_ymd] => 2025-04-08 14:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:57:05' and `end` < '2025-04-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-04-08 14:57:19] Production.INFO: count ==4804 [2025-04-08 14:57:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:57:05 - End Time 2025-04-08 14:57:05 [2025-04-08 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862961', 'tblTempUsageDetail_20' ) start [2025-04-08 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862961', 'tblTempUsageDetail_20' ) end [2025-04-08 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862961', 'tblTempVendorCDR_20' ) start [2025-04-08 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862961', 'tblTempVendorCDR_20' ) end [2025-04-08 14:57:21] Production.INFO: ProcessCDR(1,14862961,1,1,2) [2025-04-08 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862961', 'tblTempUsageDetail_20' ) start [2025-04-08 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862961', 'tblTempUsageDetail_20' ) end [2025-04-08 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:57:26] Production.INFO: ==23363== Releasing lock... [2025-04-08 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:57:26] Production.INFO: 64 MB #Memory Used# [2025-04-08 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:58:05 [end_date_ymd] => 2025-04-08 14:58:05 [RateCDR] => 1 ) [2025-04-08 14: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-04-08 11:58:05' and `end` < '2025-04-08 14: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-04-08 14:58:19] Production.INFO: count ==4806 [2025-04-08 14:58:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:58:05 - End Time 2025-04-08 14:58:05 [2025-04-08 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862966', 'tblTempUsageDetail_20' ) start [2025-04-08 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862966', 'tblTempUsageDetail_20' ) end [2025-04-08 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862966', 'tblTempVendorCDR_20' ) start [2025-04-08 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862966', 'tblTempVendorCDR_20' ) end [2025-04-08 14:58:21] Production.INFO: ProcessCDR(1,14862966,1,1,2) [2025-04-08 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862966', 'tblTempUsageDetail_20' ) start [2025-04-08 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862966', 'tblTempUsageDetail_20' ) end [2025-04-08 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:58:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:58:26] Production.INFO: ==23440== Releasing lock... [2025-04-08 14:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:58:26] Production.INFO: 64 MB #Memory Used# [2025-04-08 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 11:59:05 [end_date_ymd] => 2025-04-08 14:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 11:59:05' and `end` < '2025-04-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-04-08 14:59:19] Production.INFO: count ==4795 [2025-04-08 14:59:21] Production.ERROR: pbx CDR StartTime 2025-04-08 11:59:05 - End Time 2025-04-08 14:59:05 [2025-04-08 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862971', 'tblTempUsageDetail_20' ) start [2025-04-08 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862971', 'tblTempUsageDetail_20' ) end [2025-04-08 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862971', 'tblTempVendorCDR_20' ) start [2025-04-08 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862971', 'tblTempVendorCDR_20' ) end [2025-04-08 14:59:21] Production.INFO: ProcessCDR(1,14862971,1,1,2) [2025-04-08 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862971', 'tblTempUsageDetail_20' ) start [2025-04-08 14:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862971', 'tblTempUsageDetail_20' ) end [2025-04-08 14:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 14:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 14:59:26] Production.INFO: ==23514== Releasing lock... [2025-04-08 14:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 14:59:26] Production.INFO: 64 MB #Memory Used# [2025-04-08 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:00:07 [end_date_ymd] => 2025-04-08 15:00:07 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:00:07' and `end` < '2025-04-08 15: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-04-08 15:00:21] Production.INFO: count ==4786 [2025-04-08 15:00:23] Production.ERROR: pbx CDR StartTime 2025-04-08 12:00:07 - End Time 2025-04-08 15:00:07 [2025-04-08 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862977', 'tblTempUsageDetail_20' ) start [2025-04-08 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862977', 'tblTempUsageDetail_20' ) end [2025-04-08 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862977', 'tblTempVendorCDR_20' ) start [2025-04-08 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862977', 'tblTempVendorCDR_20' ) end [2025-04-08 15:00:23] Production.INFO: ProcessCDR(1,14862977,1,1,2) [2025-04-08 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862977', 'tblTempUsageDetail_20' ) start [2025-04-08 15:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862977', 'tblTempUsageDetail_20' ) end [2025-04-08 15:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:00:28] Production.INFO: ==23592== Releasing lock... [2025-04-08 15:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:00:28] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:01:05 [end_date_ymd] => 2025-04-08 15:01:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:01:05' and `end` < '2025-04-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-04-08 15:01:19] Production.INFO: count ==4742 [2025-04-08 15:01:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:01:05 - End Time 2025-04-08 15:01:05 [2025-04-08 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862982', 'tblTempUsageDetail_20' ) start [2025-04-08 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862982', 'tblTempUsageDetail_20' ) end [2025-04-08 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862982', 'tblTempVendorCDR_20' ) start [2025-04-08 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862982', 'tblTempVendorCDR_20' ) end [2025-04-08 15:01:21] Production.INFO: ProcessCDR(1,14862982,1,1,2) [2025-04-08 15:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862982', 'tblTempUsageDetail_20' ) start [2025-04-08 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862982', 'tblTempUsageDetail_20' ) end [2025-04-08 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:01:27] Production.INFO: ==23700== Releasing lock... [2025-04-08 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:01:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:02:06 [end_date_ymd] => 2025-04-08 15:02:06 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:02:06' and `end` < '2025-04-08 15: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-04-08 15:02:20] Production.INFO: count ==4716 [2025-04-08 15:02:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:02:06 - End Time 2025-04-08 15:02:06 [2025-04-08 15:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862987', 'tblTempUsageDetail_20' ) start [2025-04-08 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862987', 'tblTempUsageDetail_20' ) end [2025-04-08 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862987', 'tblTempVendorCDR_20' ) start [2025-04-08 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862987', 'tblTempVendorCDR_20' ) end [2025-04-08 15:02:22] Production.INFO: ProcessCDR(1,14862987,1,1,2) [2025-04-08 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862987', 'tblTempUsageDetail_20' ) start [2025-04-08 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862987', 'tblTempUsageDetail_20' ) end [2025-04-08 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:02:27] Production.INFO: ==23844== Releasing lock... [2025-04-08 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:02:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:03:05 [end_date_ymd] => 2025-04-08 15:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:03:05' and `end` < '2025-04-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-04-08 15:03:18] Production.INFO: count ==4708 [2025-04-08 15:03:20] Production.ERROR: pbx CDR StartTime 2025-04-08 12:03:05 - End Time 2025-04-08 15:03:05 [2025-04-08 15:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862992', 'tblTempUsageDetail_20' ) start [2025-04-08 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862992', 'tblTempUsageDetail_20' ) end [2025-04-08 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862992', 'tblTempVendorCDR_20' ) start [2025-04-08 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862992', 'tblTempVendorCDR_20' ) end [2025-04-08 15:03:21] Production.INFO: ProcessCDR(1,14862992,1,1,2) [2025-04-08 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862992', 'tblTempUsageDetail_20' ) start [2025-04-08 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862992', 'tblTempUsageDetail_20' ) end [2025-04-08 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:03:26] Production.INFO: ==23920== Releasing lock... [2025-04-08 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:03:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:04:05 [end_date_ymd] => 2025-04-08 15:04:05 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:04:05' and `end` < '2025-04-08 15: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-04-08 15:04:19] Production.INFO: count ==4687 [2025-04-08 15:04:20] Production.ERROR: pbx CDR StartTime 2025-04-08 12:04:05 - End Time 2025-04-08 15:04:05 [2025-04-08 15:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862997', 'tblTempUsageDetail_20' ) start [2025-04-08 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14862997', 'tblTempUsageDetail_20' ) end [2025-04-08 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862997', 'tblTempVendorCDR_20' ) start [2025-04-08 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14862997', 'tblTempVendorCDR_20' ) end [2025-04-08 15:04:21] Production.INFO: ProcessCDR(1,14862997,1,1,2) [2025-04-08 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14862997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14862997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14862997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14862997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862997', 'tblTempUsageDetail_20' ) start [2025-04-08 15:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14862997', 'tblTempUsageDetail_20' ) end [2025-04-08 15:04:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:04:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:04:24] Production.INFO: ==24033== Releasing lock... [2025-04-08 15:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:04:24] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:05:05 [end_date_ymd] => 2025-04-08 15:05:05 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:05:05' and `end` < '2025-04-08 15: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-04-08 15:05:19] Production.INFO: count ==4690 [2025-04-08 15:05:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:05:05 - End Time 2025-04-08 15:05:05 [2025-04-08 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863002', 'tblTempUsageDetail_20' ) start [2025-04-08 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863002', 'tblTempUsageDetail_20' ) end [2025-04-08 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863002', 'tblTempVendorCDR_20' ) start [2025-04-08 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863002', 'tblTempVendorCDR_20' ) end [2025-04-08 15:05:21] Production.INFO: ProcessCDR(1,14863002,1,1,2) [2025-04-08 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863002', 'tblTempUsageDetail_20' ) start [2025-04-08 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863002', 'tblTempUsageDetail_20' ) end [2025-04-08 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:05:27] Production.INFO: ==24188== Releasing lock... [2025-04-08 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:05:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:06:05 [end_date_ymd] => 2025-04-08 15:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:06:05' and `end` < '2025-04-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-04-08 15:06:19] Production.INFO: count ==4702 [2025-04-08 15:06:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:06:05 - End Time 2025-04-08 15:06:05 [2025-04-08 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863007', 'tblTempUsageDetail_20' ) start [2025-04-08 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863007', 'tblTempUsageDetail_20' ) end [2025-04-08 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863007', 'tblTempVendorCDR_20' ) start [2025-04-08 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863007', 'tblTempVendorCDR_20' ) end [2025-04-08 15:06:21] Production.INFO: ProcessCDR(1,14863007,1,1,2) [2025-04-08 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863007', 'tblTempUsageDetail_20' ) start [2025-04-08 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863007', 'tblTempUsageDetail_20' ) end [2025-04-08 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:06:27] Production.INFO: ==24266== Releasing lock... [2025-04-08 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:06:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:07:05 [end_date_ymd] => 2025-04-08 15:07:05 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:07:05' and `end` < '2025-04-08 15: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-04-08 15:07:18] Production.INFO: count ==4707 [2025-04-08 15:07:20] Production.ERROR: pbx CDR StartTime 2025-04-08 12:07:05 - End Time 2025-04-08 15:07:05 [2025-04-08 15:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863012', 'tblTempUsageDetail_20' ) start [2025-04-08 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863012', 'tblTempUsageDetail_20' ) end [2025-04-08 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863012', 'tblTempVendorCDR_20' ) start [2025-04-08 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863012', 'tblTempVendorCDR_20' ) end [2025-04-08 15:07:21] Production.INFO: ProcessCDR(1,14863012,1,1,2) [2025-04-08 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863012', 'tblTempUsageDetail_20' ) start [2025-04-08 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863012', 'tblTempUsageDetail_20' ) end [2025-04-08 15:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:07:26] Production.INFO: ==24338== Releasing lock... [2025-04-08 15:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:07:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:08:05 [end_date_ymd] => 2025-04-08 15:08:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:08:05' and `end` < '2025-04-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-04-08 15:08:19] Production.INFO: count ==4689 [2025-04-08 15:08:20] Production.ERROR: pbx CDR StartTime 2025-04-08 12:08:05 - End Time 2025-04-08 15:08:05 [2025-04-08 15:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863017', 'tblTempUsageDetail_20' ) start [2025-04-08 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863017', 'tblTempUsageDetail_20' ) end [2025-04-08 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863017', 'tblTempVendorCDR_20' ) start [2025-04-08 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863017', 'tblTempVendorCDR_20' ) end [2025-04-08 15:08:21] Production.INFO: ProcessCDR(1,14863017,1,1,2) [2025-04-08 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863017', 'tblTempUsageDetail_20' ) start [2025-04-08 15:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863017', 'tblTempUsageDetail_20' ) end [2025-04-08 15:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:08:26] Production.INFO: ==24492== Releasing lock... [2025-04-08 15:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:08:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:09:05 [end_date_ymd] => 2025-04-08 15:09:05 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:09:05' and `end` < '2025-04-08 15: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-04-08 15:09:19] Production.INFO: count ==4686 [2025-04-08 15:09:20] Production.ERROR: pbx CDR StartTime 2025-04-08 12:09:05 - End Time 2025-04-08 15:09:05 [2025-04-08 15:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863022', 'tblTempUsageDetail_20' ) start [2025-04-08 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863022', 'tblTempUsageDetail_20' ) end [2025-04-08 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863022', 'tblTempVendorCDR_20' ) start [2025-04-08 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863022', 'tblTempVendorCDR_20' ) end [2025-04-08 15:09:21] Production.INFO: ProcessCDR(1,14863022,1,1,2) [2025-04-08 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863022', 'tblTempUsageDetail_20' ) start [2025-04-08 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863022', 'tblTempUsageDetail_20' ) end [2025-04-08 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:09:26] Production.INFO: ==24569== Releasing lock... [2025-04-08 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:09:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:10:06 [end_date_ymd] => 2025-04-08 15:10:06 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:10:06' and `end` < '2025-04-08 15: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-04-08 15:10:20] Production.INFO: count ==4667 [2025-04-08 15:10:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:10:06 - End Time 2025-04-08 15:10:06 [2025-04-08 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863028', 'tblTempUsageDetail_20' ) start [2025-04-08 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863028', 'tblTempUsageDetail_20' ) end [2025-04-08 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863028', 'tblTempVendorCDR_20' ) start [2025-04-08 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863028', 'tblTempVendorCDR_20' ) end [2025-04-08 15:10:22] Production.INFO: ProcessCDR(1,14863028,1,1,2) [2025-04-08 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863028', 'tblTempUsageDetail_20' ) start [2025-04-08 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863028', 'tblTempUsageDetail_20' ) end [2025-04-08 15:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:10:27] Production.INFO: ==24641== Releasing lock... [2025-04-08 15:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:10:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:11:06 [end_date_ymd] => 2025-04-08 15:11:06 [RateCDR] => 1 ) [2025-04-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-04-08 12:11:06' and `end` < '2025-04-08 15: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-04-08 15:11:19] Production.INFO: count ==4644 [2025-04-08 15:11:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:11:06 - End Time 2025-04-08 15:11:06 [2025-04-08 15:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863033', 'tblTempUsageDetail_20' ) start [2025-04-08 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863033', 'tblTempUsageDetail_20' ) end [2025-04-08 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863033', 'tblTempVendorCDR_20' ) start [2025-04-08 15:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863033', 'tblTempVendorCDR_20' ) end [2025-04-08 15:11:21] Production.INFO: ProcessCDR(1,14863033,1,1,2) [2025-04-08 15:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863033', 'tblTempUsageDetail_20' ) start [2025-04-08 15:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863033', 'tblTempUsageDetail_20' ) end [2025-04-08 15:11:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:11:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:11:25] Production.INFO: ==24720== Releasing lock... [2025-04-08 15:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:11:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:12:06 [end_date_ymd] => 2025-04-08 15:12:06 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:12:06' and `end` < '2025-04-08 15: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-04-08 15:12:19] Production.INFO: count ==4639 [2025-04-08 15:12:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:12:06 - End Time 2025-04-08 15:12:06 [2025-04-08 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863038', 'tblTempUsageDetail_20' ) start [2025-04-08 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863038', 'tblTempUsageDetail_20' ) end [2025-04-08 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863038', 'tblTempVendorCDR_20' ) start [2025-04-08 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863038', 'tblTempVendorCDR_20' ) end [2025-04-08 15:12:21] Production.INFO: ProcessCDR(1,14863038,1,1,2) [2025-04-08 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863038', 'tblTempUsageDetail_20' ) start [2025-04-08 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863038', 'tblTempUsageDetail_20' ) end [2025-04-08 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:12:27] Production.INFO: ==24872== Releasing lock... [2025-04-08 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:12:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:13:05 [end_date_ymd] => 2025-04-08 15:13:05 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:13:05' and `end` < '2025-04-08 15: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-04-08 15:13:19] Production.INFO: count ==4648 [2025-04-08 15:13:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:13:05 - End Time 2025-04-08 15:13:05 [2025-04-08 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863043', 'tblTempUsageDetail_20' ) start [2025-04-08 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863043', 'tblTempUsageDetail_20' ) end [2025-04-08 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863043', 'tblTempVendorCDR_20' ) start [2025-04-08 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863043', 'tblTempVendorCDR_20' ) end [2025-04-08 15:13:21] Production.INFO: ProcessCDR(1,14863043,1,1,2) [2025-04-08 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863043', 'tblTempUsageDetail_20' ) start [2025-04-08 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863043', 'tblTempUsageDetail_20' ) end [2025-04-08 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:13:27] Production.INFO: ==24952== Releasing lock... [2025-04-08 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:13:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:14:05 [end_date_ymd] => 2025-04-08 15:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:14:05' and `end` < '2025-04-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-04-08 15:14:19] Production.INFO: count ==4642 [2025-04-08 15:14:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:14:05 - End Time 2025-04-08 15:14:05 [2025-04-08 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863048', 'tblTempUsageDetail_20' ) start [2025-04-08 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863048', 'tblTempUsageDetail_20' ) end [2025-04-08 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863048', 'tblTempVendorCDR_20' ) start [2025-04-08 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863048', 'tblTempVendorCDR_20' ) end [2025-04-08 15:14:21] Production.INFO: ProcessCDR(1,14863048,1,1,2) [2025-04-08 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863048', 'tblTempUsageDetail_20' ) start [2025-04-08 15:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863048', 'tblTempUsageDetail_20' ) end [2025-04-08 15:14:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:14:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:14:25] Production.INFO: ==25030== Releasing lock... [2025-04-08 15:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:14:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:15:05 [end_date_ymd] => 2025-04-08 15:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:15:05' and `end` < '2025-04-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-04-08 15:15:19] Production.INFO: count ==4629 [2025-04-08 15:15:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:15:05 - End Time 2025-04-08 15:15:05 [2025-04-08 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863053', 'tblTempUsageDetail_20' ) start [2025-04-08 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863053', 'tblTempUsageDetail_20' ) end [2025-04-08 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863053', 'tblTempVendorCDR_20' ) start [2025-04-08 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863053', 'tblTempVendorCDR_20' ) end [2025-04-08 15:15:21] Production.INFO: ProcessCDR(1,14863053,1,1,2) [2025-04-08 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863053', 'tblTempUsageDetail_20' ) start [2025-04-08 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863053', 'tblTempUsageDetail_20' ) end [2025-04-08 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:15:26] Production.INFO: ==25185== Releasing lock... [2025-04-08 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:15:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:16:05 [end_date_ymd] => 2025-04-08 15:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:16:05' and `end` < '2025-04-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-04-08 15:16:19] Production.INFO: count ==4625 [2025-04-08 15:16:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:16:05 - End Time 2025-04-08 15:16:05 [2025-04-08 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863058', 'tblTempUsageDetail_20' ) start [2025-04-08 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863058', 'tblTempUsageDetail_20' ) end [2025-04-08 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863058', 'tblTempVendorCDR_20' ) start [2025-04-08 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863058', 'tblTempVendorCDR_20' ) end [2025-04-08 15:16:21] Production.INFO: ProcessCDR(1,14863058,1,1,2) [2025-04-08 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863058', 'tblTempUsageDetail_20' ) start [2025-04-08 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863058', 'tblTempUsageDetail_20' ) end [2025-04-08 15:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:16:27] Production.INFO: ==25259== Releasing lock... [2025-04-08 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:16:27] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:17:06 [end_date_ymd] => 2025-04-08 15:17:06 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:17:06' and `end` < '2025-04-08 15: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-04-08 15:17:19] Production.INFO: count ==4646 [2025-04-08 15:17:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:17:06 - End Time 2025-04-08 15:17:06 [2025-04-08 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863063', 'tblTempUsageDetail_20' ) start [2025-04-08 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863063', 'tblTempUsageDetail_20' ) end [2025-04-08 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863063', 'tblTempVendorCDR_20' ) start [2025-04-08 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863063', 'tblTempVendorCDR_20' ) end [2025-04-08 15:17:21] Production.INFO: ProcessCDR(1,14863063,1,1,2) [2025-04-08 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863063', 'tblTempUsageDetail_20' ) start [2025-04-08 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863063', 'tblTempUsageDetail_20' ) end [2025-04-08 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:17:27] Production.INFO: ==25362== Releasing lock... [2025-04-08 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:17:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:18:05 [end_date_ymd] => 2025-04-08 15:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:18:05' and `end` < '2025-04-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-04-08 15:18:20] Production.INFO: count ==4649 [2025-04-08 15:18:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:18:05 - End Time 2025-04-08 15:18:05 [2025-04-08 15:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863068', 'tblTempUsageDetail_20' ) start [2025-04-08 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863068', 'tblTempUsageDetail_20' ) end [2025-04-08 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863068', 'tblTempVendorCDR_20' ) start [2025-04-08 15:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863068', 'tblTempVendorCDR_20' ) end [2025-04-08 15:18:22] Production.INFO: ProcessCDR(1,14863068,1,1,2) [2025-04-08 15:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863068', 'tblTempUsageDetail_20' ) start [2025-04-08 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863068', 'tblTempUsageDetail_20' ) end [2025-04-08 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:18:27] Production.INFO: ==25474== Releasing lock... [2025-04-08 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:18:27] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:19:06 [end_date_ymd] => 2025-04-08 15:19:06 [RateCDR] => 1 ) [2025-04-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-04-08 12:19:06' and `end` < '2025-04-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-04-08 15:19:20] Production.INFO: count ==4661 [2025-04-08 15:19:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:19:06 - End Time 2025-04-08 15:19:06 [2025-04-08 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863073', 'tblTempUsageDetail_20' ) start [2025-04-08 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863073', 'tblTempUsageDetail_20' ) end [2025-04-08 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863073', 'tblTempVendorCDR_20' ) start [2025-04-08 15:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863073', 'tblTempVendorCDR_20' ) end [2025-04-08 15:19:22] Production.INFO: ProcessCDR(1,14863073,1,1,2) [2025-04-08 15:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863073', 'tblTempUsageDetail_20' ) start [2025-04-08 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863073', 'tblTempUsageDetail_20' ) end [2025-04-08 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:19:27] Production.INFO: ==25613== Releasing lock... [2025-04-08 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:19:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:20:06 [end_date_ymd] => 2025-04-08 15:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 12:20:06' and `end` < '2025-04-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-04-08 15:20:20] Production.INFO: count ==4651 [2025-04-08 15:20:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:20:06 - End Time 2025-04-08 15:20:06 [2025-04-08 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863079', 'tblTempUsageDetail_20' ) start [2025-04-08 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863079', 'tblTempUsageDetail_20' ) end [2025-04-08 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863079', 'tblTempVendorCDR_20' ) start [2025-04-08 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863079', 'tblTempVendorCDR_20' ) end [2025-04-08 15:20:22] Production.INFO: ProcessCDR(1,14863079,1,1,2) [2025-04-08 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863079', 'tblTempUsageDetail_20' ) start [2025-04-08 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863079', 'tblTempUsageDetail_20' ) end [2025-04-08 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:20:28] Production.INFO: ==25696== Releasing lock... [2025-04-08 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:20:28] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:21:05 [end_date_ymd] => 2025-04-08 15:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:21:05' and `end` < '2025-04-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-04-08 15:21:19] Production.INFO: count ==4647 [2025-04-08 15:21:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:21:05 - End Time 2025-04-08 15:21:05 [2025-04-08 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863084', 'tblTempUsageDetail_20' ) start [2025-04-08 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863084', 'tblTempUsageDetail_20' ) end [2025-04-08 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863084', 'tblTempVendorCDR_20' ) start [2025-04-08 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863084', 'tblTempVendorCDR_20' ) end [2025-04-08 15:21:21] Production.INFO: ProcessCDR(1,14863084,1,1,2) [2025-04-08 15:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863084', 'tblTempUsageDetail_20' ) start [2025-04-08 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863084', 'tblTempUsageDetail_20' ) end [2025-04-08 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:21:26] Production.INFO: ==25774== Releasing lock... [2025-04-08 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:21:26] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:22:05 [end_date_ymd] => 2025-04-08 15:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:22:05' and `end` < '2025-04-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-04-08 15:22:19] Production.INFO: count ==4660 [2025-04-08 15:22:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:22:05 - End Time 2025-04-08 15:22:05 [2025-04-08 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863089', 'tblTempUsageDetail_20' ) start [2025-04-08 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863089', 'tblTempUsageDetail_20' ) end [2025-04-08 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863089', 'tblTempVendorCDR_20' ) start [2025-04-08 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863089', 'tblTempVendorCDR_20' ) end [2025-04-08 15:22:21] Production.INFO: ProcessCDR(1,14863089,1,1,2) [2025-04-08 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863089', 'tblTempUsageDetail_20' ) start [2025-04-08 15:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863089', 'tblTempUsageDetail_20' ) end [2025-04-08 15:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:22:26] Production.INFO: ==25853== Releasing lock... [2025-04-08 15:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:22:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:23:05 [end_date_ymd] => 2025-04-08 15:23:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:23:05' and `end` < '2025-04-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-04-08 15:23:19] Production.INFO: count ==4661 [2025-04-08 15:23:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:23:05 - End Time 2025-04-08 15:23:05 [2025-04-08 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863094', 'tblTempUsageDetail_20' ) start [2025-04-08 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863094', 'tblTempUsageDetail_20' ) end [2025-04-08 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863094', 'tblTempVendorCDR_20' ) start [2025-04-08 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863094', 'tblTempVendorCDR_20' ) end [2025-04-08 15:23:21] Production.INFO: ProcessCDR(1,14863094,1,1,2) [2025-04-08 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863094', 'tblTempUsageDetail_20' ) start [2025-04-08 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863094', 'tblTempUsageDetail_20' ) end [2025-04-08 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:23:26] Production.INFO: ==25931== Releasing lock... [2025-04-08 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:23:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:24:05 [end_date_ymd] => 2025-04-08 15:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:24:05' and `end` < '2025-04-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-04-08 15:24:19] Production.INFO: count ==4663 [2025-04-08 15:24:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:24:05 - End Time 2025-04-08 15:24:05 [2025-04-08 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863099', 'tblTempUsageDetail_20' ) start [2025-04-08 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863099', 'tblTempUsageDetail_20' ) end [2025-04-08 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863099', 'tblTempVendorCDR_20' ) start [2025-04-08 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863099', 'tblTempVendorCDR_20' ) end [2025-04-08 15:24:21] Production.INFO: ProcessCDR(1,14863099,1,1,2) [2025-04-08 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863099', 'tblTempUsageDetail_20' ) start [2025-04-08 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863099', 'tblTempUsageDetail_20' ) end [2025-04-08 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:24:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:24:26] Production.INFO: ==26005== Releasing lock... [2025-04-08 15:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:24:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:25:06 [end_date_ymd] => 2025-04-08 15:25:06 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:25:06' and `end` < '2025-04-08 15: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-04-08 15:25:20] Production.INFO: count ==4664 [2025-04-08 15:25:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:25:06 - End Time 2025-04-08 15:25:06 [2025-04-08 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863104', 'tblTempUsageDetail_20' ) start [2025-04-08 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863104', 'tblTempUsageDetail_20' ) end [2025-04-08 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863104', 'tblTempVendorCDR_20' ) start [2025-04-08 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863104', 'tblTempVendorCDR_20' ) end [2025-04-08 15:25:22] Production.INFO: ProcessCDR(1,14863104,1,1,2) [2025-04-08 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863104', 'tblTempUsageDetail_20' ) start [2025-04-08 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863104', 'tblTempUsageDetail_20' ) end [2025-04-08 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:25:27] Production.INFO: ==26082== Releasing lock... [2025-04-08 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:25:27] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:26:05 [end_date_ymd] => 2025-04-08 15:26:05 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:26:05' and `end` < '2025-04-08 15: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-04-08 15:26:19] Production.INFO: count ==4680 [2025-04-08 15:26:20] Production.ERROR: pbx CDR StartTime 2025-04-08 12:26:05 - End Time 2025-04-08 15:26:05 [2025-04-08 15:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863109', 'tblTempUsageDetail_20' ) start [2025-04-08 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863109', 'tblTempUsageDetail_20' ) end [2025-04-08 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863109', 'tblTempVendorCDR_20' ) start [2025-04-08 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863109', 'tblTempVendorCDR_20' ) end [2025-04-08 15:26:21] Production.INFO: ProcessCDR(1,14863109,1,1,2) [2025-04-08 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863109', 'tblTempUsageDetail_20' ) start [2025-04-08 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863109', 'tblTempUsageDetail_20' ) end [2025-04-08 15:26:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:26:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:26:26] Production.INFO: ==26166== Releasing lock... [2025-04-08 15:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:26:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:27:06 [end_date_ymd] => 2025-04-08 15:27:06 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:27:06' and `end` < '2025-04-08 15: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-04-08 15:27:19] Production.INFO: count ==4681 [2025-04-08 15:27:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:27:06 - End Time 2025-04-08 15:27:06 [2025-04-08 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863114', 'tblTempUsageDetail_20' ) start [2025-04-08 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863114', 'tblTempUsageDetail_20' ) end [2025-04-08 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863114', 'tblTempVendorCDR_20' ) start [2025-04-08 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863114', 'tblTempVendorCDR_20' ) end [2025-04-08 15:27:21] Production.INFO: ProcessCDR(1,14863114,1,1,2) [2025-04-08 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863114', 'tblTempUsageDetail_20' ) start [2025-04-08 15:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863114', 'tblTempUsageDetail_20' ) end [2025-04-08 15:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:27:25] Production.INFO: ==26244== Releasing lock... [2025-04-08 15:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:27:25] Production.INFO: 63 MB #Memory Used# [2025-04-08 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:28:05 [end_date_ymd] => 2025-04-08 15:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:28:05' and `end` < '2025-04-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-04-08 15:28:19] Production.INFO: count ==4702 [2025-04-08 15:28:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:28:05 - End Time 2025-04-08 15:28:05 [2025-04-08 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863119', 'tblTempUsageDetail_20' ) start [2025-04-08 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863119', 'tblTempUsageDetail_20' ) end [2025-04-08 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863119', 'tblTempVendorCDR_20' ) start [2025-04-08 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863119', 'tblTempVendorCDR_20' ) end [2025-04-08 15:28:21] Production.INFO: ProcessCDR(1,14863119,1,1,2) [2025-04-08 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863119', 'tblTempUsageDetail_20' ) start [2025-04-08 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863119', 'tblTempUsageDetail_20' ) end [2025-04-08 15:28:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:28:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:28:26] Production.INFO: ==26323== Releasing lock... [2025-04-08 15:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:28:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:29:05 [end_date_ymd] => 2025-04-08 15:29:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:29:05' and `end` < '2025-04-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-04-08 15:29:19] Production.INFO: count ==4710 [2025-04-08 15:29:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:29:05 - End Time 2025-04-08 15:29:05 [2025-04-08 15:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863124', 'tblTempUsageDetail_20' ) start [2025-04-08 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863124', 'tblTempUsageDetail_20' ) end [2025-04-08 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863124', 'tblTempVendorCDR_20' ) start [2025-04-08 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863124', 'tblTempVendorCDR_20' ) end [2025-04-08 15:29:21] Production.INFO: ProcessCDR(1,14863124,1,1,2) [2025-04-08 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863124', 'tblTempUsageDetail_20' ) start [2025-04-08 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863124', 'tblTempUsageDetail_20' ) end [2025-04-08 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:29:26] Production.INFO: ==26397== Releasing lock... [2025-04-08 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:29:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:30:05 [end_date_ymd] => 2025-04-08 15:30:05 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:30:05' and `end` < '2025-04-08 15: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-04-08 15:30:19] Production.INFO: count ==4703 [2025-04-08 15:30:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:30:05 - End Time 2025-04-08 15:30:05 [2025-04-08 15:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863130', 'tblTempUsageDetail_20' ) start [2025-04-08 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863130', 'tblTempUsageDetail_20' ) end [2025-04-08 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863130', 'tblTempVendorCDR_20' ) start [2025-04-08 15:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863130', 'tblTempVendorCDR_20' ) end [2025-04-08 15:30:21] Production.INFO: ProcessCDR(1,14863130,1,1,2) [2025-04-08 15:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863130', 'tblTempUsageDetail_20' ) start [2025-04-08 15:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863130', 'tblTempUsageDetail_20' ) end [2025-04-08 15:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:30:24] Production.INFO: ==26486== Releasing lock... [2025-04-08 15:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:30:24] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:31:05 [end_date_ymd] => 2025-04-08 15:31:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:31:05' and `end` < '2025-04-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-04-08 15:31:19] Production.INFO: count ==4702 [2025-04-08 15:31:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:31:05 - End Time 2025-04-08 15:31:05 [2025-04-08 15:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863135', 'tblTempUsageDetail_20' ) start [2025-04-08 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863135', 'tblTempUsageDetail_20' ) end [2025-04-08 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863135', 'tblTempVendorCDR_20' ) start [2025-04-08 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863135', 'tblTempVendorCDR_20' ) end [2025-04-08 15:31:21] Production.INFO: ProcessCDR(1,14863135,1,1,2) [2025-04-08 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863135', 'tblTempUsageDetail_20' ) start [2025-04-08 15:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863135', 'tblTempUsageDetail_20' ) end [2025-04-08 15:31:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:31:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:31:25] Production.INFO: ==26568== Releasing lock... [2025-04-08 15:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:31:25] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:32:05 [end_date_ymd] => 2025-04-08 15:32:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:32:05' and `end` < '2025-04-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-04-08 15:32:19] Production.INFO: count ==4704 [2025-04-08 15:32:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:32:05 - End Time 2025-04-08 15:32:05 [2025-04-08 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863140', 'tblTempUsageDetail_20' ) start [2025-04-08 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863140', 'tblTempUsageDetail_20' ) end [2025-04-08 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863140', 'tblTempVendorCDR_20' ) start [2025-04-08 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863140', 'tblTempVendorCDR_20' ) end [2025-04-08 15:32:21] Production.INFO: ProcessCDR(1,14863140,1,1,2) [2025-04-08 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863140', 'tblTempUsageDetail_20' ) start [2025-04-08 15:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863140', 'tblTempUsageDetail_20' ) end [2025-04-08 15:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:32:26] Production.INFO: ==26647== Releasing lock... [2025-04-08 15:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:32:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:33:05 [end_date_ymd] => 2025-04-08 15:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:33:05' and `end` < '2025-04-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-04-08 15:33:19] Production.INFO: count ==4702 [2025-04-08 15:33:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:33:05 - End Time 2025-04-08 15:33:05 [2025-04-08 15:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863145', 'tblTempUsageDetail_20' ) start [2025-04-08 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863145', 'tblTempUsageDetail_20' ) end [2025-04-08 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863145', 'tblTempVendorCDR_20' ) start [2025-04-08 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863145', 'tblTempVendorCDR_20' ) end [2025-04-08 15:33:21] Production.INFO: ProcessCDR(1,14863145,1,1,2) [2025-04-08 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863145', 'tblTempUsageDetail_20' ) start [2025-04-08 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863145', 'tblTempUsageDetail_20' ) end [2025-04-08 15:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:33:26] Production.INFO: ==26728== Releasing lock... [2025-04-08 15:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:33:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:34:05 [end_date_ymd] => 2025-04-08 15:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:34:05' and `end` < '2025-04-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-04-08 15:34:19] Production.INFO: count ==4700 [2025-04-08 15:34:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:34:05 - End Time 2025-04-08 15:34:05 [2025-04-08 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863150', 'tblTempUsageDetail_20' ) start [2025-04-08 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863150', 'tblTempUsageDetail_20' ) end [2025-04-08 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863150', 'tblTempVendorCDR_20' ) start [2025-04-08 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863150', 'tblTempVendorCDR_20' ) end [2025-04-08 15:34:21] Production.INFO: ProcessCDR(1,14863150,1,1,2) [2025-04-08 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863150', 'tblTempUsageDetail_20' ) start [2025-04-08 15:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863150', 'tblTempUsageDetail_20' ) end [2025-04-08 15:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:34:26] Production.INFO: ==26808== Releasing lock... [2025-04-08 15:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:34:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:35:05 [end_date_ymd] => 2025-04-08 15:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:35:05' and `end` < '2025-04-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-04-08 15:35:19] Production.INFO: count ==4703 [2025-04-08 15:35:20] Production.ERROR: pbx CDR StartTime 2025-04-08 12:35:05 - End Time 2025-04-08 15:35:05 [2025-04-08 15:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863155', 'tblTempUsageDetail_20' ) start [2025-04-08 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863155', 'tblTempUsageDetail_20' ) end [2025-04-08 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863155', 'tblTempVendorCDR_20' ) start [2025-04-08 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863155', 'tblTempVendorCDR_20' ) end [2025-04-08 15:35:21] Production.INFO: ProcessCDR(1,14863155,1,1,2) [2025-04-08 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863155', 'tblTempUsageDetail_20' ) start [2025-04-08 15:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863155', 'tblTempUsageDetail_20' ) end [2025-04-08 15:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:35:26] Production.INFO: ==26933== Releasing lock... [2025-04-08 15:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:35:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:36:05 [end_date_ymd] => 2025-04-08 15:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:36:05' and `end` < '2025-04-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-04-08 15:36:19] Production.INFO: count ==4708 [2025-04-08 15:36:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:36:05 - End Time 2025-04-08 15:36:05 [2025-04-08 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863160', 'tblTempUsageDetail_20' ) start [2025-04-08 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863160', 'tblTempUsageDetail_20' ) end [2025-04-08 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863160', 'tblTempVendorCDR_20' ) start [2025-04-08 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863160', 'tblTempVendorCDR_20' ) end [2025-04-08 15:36:21] Production.INFO: ProcessCDR(1,14863160,1,1,2) [2025-04-08 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863160', 'tblTempUsageDetail_20' ) start [2025-04-08 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863160', 'tblTempUsageDetail_20' ) end [2025-04-08 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:36:26] Production.INFO: ==27014== Releasing lock... [2025-04-08 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:36:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:37:05 [end_date_ymd] => 2025-04-08 15:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:37:05' and `end` < '2025-04-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-04-08 15:37:19] Production.INFO: count ==4717 [2025-04-08 15:37:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:37:05 - End Time 2025-04-08 15:37:05 [2025-04-08 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863165', 'tblTempUsageDetail_20' ) start [2025-04-08 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863165', 'tblTempUsageDetail_20' ) end [2025-04-08 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863165', 'tblTempVendorCDR_20' ) start [2025-04-08 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863165', 'tblTempVendorCDR_20' ) end [2025-04-08 15:37:21] Production.INFO: ProcessCDR(1,14863165,1,1,2) [2025-04-08 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863165', 'tblTempUsageDetail_20' ) start [2025-04-08 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863165', 'tblTempUsageDetail_20' ) end [2025-04-08 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:37:26] Production.INFO: ==27090== Releasing lock... [2025-04-08 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:37:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:38:05 [end_date_ymd] => 2025-04-08 15:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:38:05' and `end` < '2025-04-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-04-08 15:38:20] Production.INFO: count ==4730 [2025-04-08 15:38:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:38:05 - End Time 2025-04-08 15:38:05 [2025-04-08 15:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863170', 'tblTempUsageDetail_20' ) start [2025-04-08 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863170', 'tblTempUsageDetail_20' ) end [2025-04-08 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863170', 'tblTempVendorCDR_20' ) start [2025-04-08 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863170', 'tblTempVendorCDR_20' ) end [2025-04-08 15:38:22] Production.INFO: ProcessCDR(1,14863170,1,1,2) [2025-04-08 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863170', 'tblTempUsageDetail_20' ) start [2025-04-08 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863170', 'tblTempUsageDetail_20' ) end [2025-04-08 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:38:27] Production.INFO: ==27176== Releasing lock... [2025-04-08 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:38:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 15:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:39:04 [end_date_ymd] => 2025-04-08 15:39:04 [RateCDR] => 1 ) [2025-04-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-04-08 12:39:04' and `end` < '2025-04-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-04-08 15:39:18] Production.INFO: count ==4761 [2025-04-08 15:39:20] Production.ERROR: pbx CDR StartTime 2025-04-08 12:39:04 - End Time 2025-04-08 15:39:04 [2025-04-08 15:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863175', 'tblTempUsageDetail_20' ) start [2025-04-08 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863175', 'tblTempUsageDetail_20' ) end [2025-04-08 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863175', 'tblTempVendorCDR_20' ) start [2025-04-08 15:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863175', 'tblTempVendorCDR_20' ) end [2025-04-08 15:39:20] Production.INFO: ProcessCDR(1,14863175,1,1,2) [2025-04-08 15:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863175', 'tblTempUsageDetail_20' ) start [2025-04-08 15:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863175', 'tblTempUsageDetail_20' ) end [2025-04-08 15:39:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:39:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:39:25] Production.INFO: ==27260== Releasing lock... [2025-04-08 15:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:39:25] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:40:06 [end_date_ymd] => 2025-04-08 15:40:06 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:40:06' and `end` < '2025-04-08 15: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-04-08 15:40:20] Production.INFO: count ==4764 [2025-04-08 15:40:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:40:06 - End Time 2025-04-08 15:40:06 [2025-04-08 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863181', 'tblTempUsageDetail_20' ) start [2025-04-08 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863181', 'tblTempUsageDetail_20' ) end [2025-04-08 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863181', 'tblTempVendorCDR_20' ) start [2025-04-08 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863181', 'tblTempVendorCDR_20' ) end [2025-04-08 15:40:22] Production.INFO: ProcessCDR(1,14863181,1,1,2) [2025-04-08 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863181', 'tblTempUsageDetail_20' ) start [2025-04-08 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863181', 'tblTempUsageDetail_20' ) end [2025-04-08 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:40:27] Production.INFO: ==27338== Releasing lock... [2025-04-08 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:40:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:41:05 [end_date_ymd] => 2025-04-08 15:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:41:05' and `end` < '2025-04-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-04-08 15:41:19] Production.INFO: count ==4720 [2025-04-08 15:41:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:41:05 - End Time 2025-04-08 15:41:05 [2025-04-08 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863186', 'tblTempUsageDetail_20' ) start [2025-04-08 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863186', 'tblTempUsageDetail_20' ) end [2025-04-08 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863186', 'tblTempVendorCDR_20' ) start [2025-04-08 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863186', 'tblTempVendorCDR_20' ) end [2025-04-08 15:41:21] Production.INFO: ProcessCDR(1,14863186,1,1,2) [2025-04-08 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863186', 'tblTempUsageDetail_20' ) start [2025-04-08 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863186', 'tblTempUsageDetail_20' ) end [2025-04-08 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:41:26] Production.INFO: ==27426== Releasing lock... [2025-04-08 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:41:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:42:05 [end_date_ymd] => 2025-04-08 15:42:05 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:42:05' and `end` < '2025-04-08 15: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-04-08 15:42:19] Production.INFO: count ==4719 [2025-04-08 15:42:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:42:05 - End Time 2025-04-08 15:42:05 [2025-04-08 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863191', 'tblTempUsageDetail_20' ) start [2025-04-08 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863191', 'tblTempUsageDetail_20' ) end [2025-04-08 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863191', 'tblTempVendorCDR_20' ) start [2025-04-08 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863191', 'tblTempVendorCDR_20' ) end [2025-04-08 15:42:21] Production.INFO: ProcessCDR(1,14863191,1,1,2) [2025-04-08 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863191', 'tblTempUsageDetail_20' ) start [2025-04-08 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863191', 'tblTempUsageDetail_20' ) end [2025-04-08 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:42:26] Production.INFO: ==27506== Releasing lock... [2025-04-08 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:42:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:43:06 [end_date_ymd] => 2025-04-08 15:43:06 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:43:06' and `end` < '2025-04-08 15: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-04-08 15:43:19] Production.INFO: count ==4721 [2025-04-08 15:43:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:43:06 - End Time 2025-04-08 15:43:06 [2025-04-08 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863196', 'tblTempUsageDetail_20' ) start [2025-04-08 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863196', 'tblTempUsageDetail_20' ) end [2025-04-08 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863196', 'tblTempVendorCDR_20' ) start [2025-04-08 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863196', 'tblTempVendorCDR_20' ) end [2025-04-08 15:43:21] Production.INFO: ProcessCDR(1,14863196,1,1,2) [2025-04-08 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863196', 'tblTempUsageDetail_20' ) start [2025-04-08 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863196', 'tblTempUsageDetail_20' ) end [2025-04-08 15:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:43:26] Production.INFO: ==27588== Releasing lock... [2025-04-08 15:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:43:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:44:05 [end_date_ymd] => 2025-04-08 15:44:05 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:44:05' and `end` < '2025-04-08 15: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-04-08 15:44:19] Production.INFO: count ==4717 [2025-04-08 15:44:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:44:05 - End Time 2025-04-08 15:44:05 [2025-04-08 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863201', 'tblTempUsageDetail_20' ) start [2025-04-08 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863201', 'tblTempUsageDetail_20' ) end [2025-04-08 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863201', 'tblTempVendorCDR_20' ) start [2025-04-08 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863201', 'tblTempVendorCDR_20' ) end [2025-04-08 15:44:21] Production.INFO: ProcessCDR(1,14863201,1,1,2) [2025-04-08 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863201', 'tblTempUsageDetail_20' ) start [2025-04-08 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863201', 'tblTempUsageDetail_20' ) end [2025-04-08 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:44:27] Production.INFO: ==27666== Releasing lock... [2025-04-08 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:44:27] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:45:06 [end_date_ymd] => 2025-04-08 15:45:06 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:45:06' and `end` < '2025-04-08 15: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-04-08 15:45:20] Production.INFO: count ==4741 [2025-04-08 15:45:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:45:06 - End Time 2025-04-08 15:45:06 [2025-04-08 15:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863206', 'tblTempUsageDetail_20' ) start [2025-04-08 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863206', 'tblTempUsageDetail_20' ) end [2025-04-08 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863206', 'tblTempVendorCDR_20' ) start [2025-04-08 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863206', 'tblTempVendorCDR_20' ) end [2025-04-08 15:45:22] Production.INFO: ProcessCDR(1,14863206,1,1,2) [2025-04-08 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863206', 'tblTempUsageDetail_20' ) start [2025-04-08 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863206', 'tblTempUsageDetail_20' ) end [2025-04-08 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:45:27] Production.INFO: ==27752== Releasing lock... [2025-04-08 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:45:27] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:46:05 [end_date_ymd] => 2025-04-08 15:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:46:05' and `end` < '2025-04-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-04-08 15:46:19] Production.INFO: count ==4738 [2025-04-08 15:46:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:46:05 - End Time 2025-04-08 15:46:05 [2025-04-08 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863211', 'tblTempUsageDetail_20' ) start [2025-04-08 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863211', 'tblTempUsageDetail_20' ) end [2025-04-08 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863211', 'tblTempVendorCDR_20' ) start [2025-04-08 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863211', 'tblTempVendorCDR_20' ) end [2025-04-08 15:46:21] Production.INFO: ProcessCDR(1,14863211,1,1,2) [2025-04-08 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863211', 'tblTempUsageDetail_20' ) start [2025-04-08 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863211', 'tblTempUsageDetail_20' ) end [2025-04-08 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:46:26] Production.INFO: ==27851== Releasing lock... [2025-04-08 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:46:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:47:05 [end_date_ymd] => 2025-04-08 15:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:47:05' and `end` < '2025-04-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-04-08 15:47:19] Production.INFO: count ==4746 [2025-04-08 15:47:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:47:05 - End Time 2025-04-08 15:47:05 [2025-04-08 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863216', 'tblTempUsageDetail_20' ) start [2025-04-08 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863216', 'tblTempUsageDetail_20' ) end [2025-04-08 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863216', 'tblTempVendorCDR_20' ) start [2025-04-08 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863216', 'tblTempVendorCDR_20' ) end [2025-04-08 15:47:21] Production.INFO: ProcessCDR(1,14863216,1,1,2) [2025-04-08 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863216', 'tblTempUsageDetail_20' ) start [2025-04-08 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863216', 'tblTempUsageDetail_20' ) end [2025-04-08 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:47:26] Production.INFO: ==27931== Releasing lock... [2025-04-08 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:47:26] Production.INFO: 63.5 MB #Memory Used# [2025-04-08 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:48:05 [end_date_ymd] => 2025-04-08 15:48:05 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:48:05' and `end` < '2025-04-08 15: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-04-08 15:48:20] Production.INFO: count ==4799 [2025-04-08 15:48:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:48:05 - End Time 2025-04-08 15:48:05 [2025-04-08 15:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863221', 'tblTempUsageDetail_20' ) start [2025-04-08 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863221', 'tblTempUsageDetail_20' ) end [2025-04-08 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863221', 'tblTempVendorCDR_20' ) start [2025-04-08 15:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863221', 'tblTempVendorCDR_20' ) end [2025-04-08 15:48:22] Production.INFO: ProcessCDR(1,14863221,1,1,2) [2025-04-08 15:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863221', 'tblTempUsageDetail_20' ) start [2025-04-08 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863221', 'tblTempUsageDetail_20' ) end [2025-04-08 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:48:27] Production.INFO: ==28011== Releasing lock... [2025-04-08 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:48:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:49:05 [end_date_ymd] => 2025-04-08 15:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:49:05' and `end` < '2025-04-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-04-08 15:49:20] Production.INFO: count ==4800 [2025-04-08 15:49:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:49:05 - End Time 2025-04-08 15:49:05 [2025-04-08 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863226', 'tblTempUsageDetail_20' ) start [2025-04-08 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863226', 'tblTempUsageDetail_20' ) end [2025-04-08 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863226', 'tblTempVendorCDR_20' ) start [2025-04-08 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863226', 'tblTempVendorCDR_20' ) end [2025-04-08 15:49:22] Production.INFO: ProcessCDR(1,14863226,1,1,2) [2025-04-08 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863226', 'tblTempUsageDetail_20' ) start [2025-04-08 15:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863226', 'tblTempUsageDetail_20' ) end [2025-04-08 15:49:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:49:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:49:27] Production.INFO: ==28091== Releasing lock... [2025-04-08 15:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:49:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:50:06 [end_date_ymd] => 2025-04-08 15:50:06 [RateCDR] => 1 ) [2025-04-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-04-08 12:50:06' and `end` < '2025-04-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-04-08 15:50:19] Production.INFO: count ==4796 [2025-04-08 15:50:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:50:06 - End Time 2025-04-08 15:50:06 [2025-04-08 15:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863231', 'tblTempUsageDetail_20' ) start [2025-04-08 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863231', 'tblTempUsageDetail_20' ) end [2025-04-08 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863231', 'tblTempVendorCDR_20' ) start [2025-04-08 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863231', 'tblTempVendorCDR_20' ) end [2025-04-08 15:50:22] Production.INFO: ProcessCDR(1,14863231,1,1,2) [2025-04-08 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863231', 'tblTempUsageDetail_20' ) start [2025-04-08 15:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863231', 'tblTempUsageDetail_20' ) end [2025-04-08 15:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:50:27] Production.INFO: ==28210== Releasing lock... [2025-04-08 15:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:50:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:51:05 [end_date_ymd] => 2025-04-08 15:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:51:05' and `end` < '2025-04-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-04-08 15:51:19] Production.INFO: count ==4835 [2025-04-08 15:51:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:51:05 - End Time 2025-04-08 15:51:05 [2025-04-08 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863237', 'tblTempUsageDetail_20' ) start [2025-04-08 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863237', 'tblTempUsageDetail_20' ) end [2025-04-08 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863237', 'tblTempVendorCDR_20' ) start [2025-04-08 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863237', 'tblTempVendorCDR_20' ) end [2025-04-08 15:51:21] Production.INFO: ProcessCDR(1,14863237,1,1,2) [2025-04-08 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863237', 'tblTempUsageDetail_20' ) start [2025-04-08 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863237', 'tblTempUsageDetail_20' ) end [2025-04-08 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:51:26] Production.INFO: ==28292== Releasing lock... [2025-04-08 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:51:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:52:05 [end_date_ymd] => 2025-04-08 15:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:52:05' and `end` < '2025-04-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-04-08 15:52:19] Production.INFO: count ==4846 [2025-04-08 15:52:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:52:05 - End Time 2025-04-08 15:52:05 [2025-04-08 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863242', 'tblTempUsageDetail_20' ) start [2025-04-08 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863242', 'tblTempUsageDetail_20' ) end [2025-04-08 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863242', 'tblTempVendorCDR_20' ) start [2025-04-08 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863242', 'tblTempVendorCDR_20' ) end [2025-04-08 15:52:21] Production.INFO: ProcessCDR(1,14863242,1,1,2) [2025-04-08 15:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863242', 'tblTempUsageDetail_20' ) start [2025-04-08 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863242', 'tblTempUsageDetail_20' ) end [2025-04-08 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:52:27] Production.INFO: ==28380== Releasing lock... [2025-04-08 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:52:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:53:05 [end_date_ymd] => 2025-04-08 15:53:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:53:05' and `end` < '2025-04-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-04-08 15:53:19] Production.INFO: count ==4861 [2025-04-08 15:53:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:53:05 - End Time 2025-04-08 15:53:05 [2025-04-08 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863247', 'tblTempUsageDetail_20' ) start [2025-04-08 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863247', 'tblTempUsageDetail_20' ) end [2025-04-08 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863247', 'tblTempVendorCDR_20' ) start [2025-04-08 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863247', 'tblTempVendorCDR_20' ) end [2025-04-08 15:53:21] Production.INFO: ProcessCDR(1,14863247,1,1,2) [2025-04-08 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863247', 'tblTempUsageDetail_20' ) start [2025-04-08 15:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863247', 'tblTempUsageDetail_20' ) end [2025-04-08 15:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:53:27] Production.INFO: ==28455== Releasing lock... [2025-04-08 15:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:53:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:54:06 [end_date_ymd] => 2025-04-08 15:54:06 [RateCDR] => 1 ) [2025-04-08 15: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-04-08 12:54:06' and `end` < '2025-04-08 15: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-04-08 15:54:20] Production.INFO: count ==4862 [2025-04-08 15:54:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:54:06 - End Time 2025-04-08 15:54:06 [2025-04-08 15:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863252', 'tblTempUsageDetail_20' ) start [2025-04-08 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863252', 'tblTempUsageDetail_20' ) end [2025-04-08 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863252', 'tblTempVendorCDR_20' ) start [2025-04-08 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863252', 'tblTempVendorCDR_20' ) end [2025-04-08 15:54:22] Production.INFO: ProcessCDR(1,14863252,1,1,2) [2025-04-08 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863252', 'tblTempUsageDetail_20' ) start [2025-04-08 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863252', 'tblTempUsageDetail_20' ) end [2025-04-08 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:54:27] Production.INFO: ==28534== Releasing lock... [2025-04-08 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:54:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:55:05 [end_date_ymd] => 2025-04-08 15:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:55:05' and `end` < '2025-04-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-04-08 15:55:19] Production.INFO: count ==4862 [2025-04-08 15:55:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:55:05 - End Time 2025-04-08 15:55:05 [2025-04-08 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863257', 'tblTempUsageDetail_20' ) start [2025-04-08 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863257', 'tblTempUsageDetail_20' ) end [2025-04-08 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863257', 'tblTempVendorCDR_20' ) start [2025-04-08 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863257', 'tblTempVendorCDR_20' ) end [2025-04-08 15:55:21] Production.INFO: ProcessCDR(1,14863257,1,1,2) [2025-04-08 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863257', 'tblTempUsageDetail_20' ) start [2025-04-08 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863257', 'tblTempUsageDetail_20' ) end [2025-04-08 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:55:26] Production.INFO: ==28617== Releasing lock... [2025-04-08 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:55:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:56:05 [end_date_ymd] => 2025-04-08 15:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:56:05' and `end` < '2025-04-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-04-08 15:56:19] Production.INFO: count ==4860 [2025-04-08 15:56:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:56:05 - End Time 2025-04-08 15:56:05 [2025-04-08 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863262', 'tblTempUsageDetail_20' ) start [2025-04-08 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863262', 'tblTempUsageDetail_20' ) end [2025-04-08 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863262', 'tblTempVendorCDR_20' ) start [2025-04-08 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863262', 'tblTempVendorCDR_20' ) end [2025-04-08 15:56:21] Production.INFO: ProcessCDR(1,14863262,1,1,2) [2025-04-08 15:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863262', 'tblTempUsageDetail_20' ) start [2025-04-08 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863262', 'tblTempUsageDetail_20' ) end [2025-04-08 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:56:26] Production.INFO: ==28699== Releasing lock... [2025-04-08 15:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:56:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:57:05 [end_date_ymd] => 2025-04-08 15:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:57:05' and `end` < '2025-04-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-04-08 15:57:19] Production.INFO: count ==4866 [2025-04-08 15:57:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:57:05 - End Time 2025-04-08 15:57:05 [2025-04-08 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863267', 'tblTempUsageDetail_20' ) start [2025-04-08 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863267', 'tblTempUsageDetail_20' ) end [2025-04-08 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863267', 'tblTempVendorCDR_20' ) start [2025-04-08 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863267', 'tblTempVendorCDR_20' ) end [2025-04-08 15:57:21] Production.INFO: ProcessCDR(1,14863267,1,1,2) [2025-04-08 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863267', 'tblTempUsageDetail_20' ) start [2025-04-08 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863267', 'tblTempUsageDetail_20' ) end [2025-04-08 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:57:26] Production.INFO: ==28779== Releasing lock... [2025-04-08 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:57:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:58:05 [end_date_ymd] => 2025-04-08 15:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:58:05' and `end` < '2025-04-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-04-08 15:58:19] Production.INFO: count ==4876 [2025-04-08 15:58:22] Production.ERROR: pbx CDR StartTime 2025-04-08 12:58:05 - End Time 2025-04-08 15:58:05 [2025-04-08 15:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863272', 'tblTempUsageDetail_20' ) start [2025-04-08 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863272', 'tblTempUsageDetail_20' ) end [2025-04-08 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863272', 'tblTempVendorCDR_20' ) start [2025-04-08 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863272', 'tblTempVendorCDR_20' ) end [2025-04-08 15:58:22] Production.INFO: ProcessCDR(1,14863272,1,1,2) [2025-04-08 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:58:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:58:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863272', 'tblTempUsageDetail_20' ) start [2025-04-08 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863272', 'tblTempUsageDetail_20' ) end [2025-04-08 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:58:27] Production.INFO: ==28861== Releasing lock... [2025-04-08 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:58:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 12:59:05 [end_date_ymd] => 2025-04-08 15:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 12:59:05' and `end` < '2025-04-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-04-08 15:59:19] Production.INFO: count ==4871 [2025-04-08 15:59:21] Production.ERROR: pbx CDR StartTime 2025-04-08 12:59:05 - End Time 2025-04-08 15:59:05 [2025-04-08 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863277', 'tblTempUsageDetail_20' ) start [2025-04-08 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863277', 'tblTempUsageDetail_20' ) end [2025-04-08 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863277', 'tblTempVendorCDR_20' ) start [2025-04-08 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863277', 'tblTempVendorCDR_20' ) end [2025-04-08 15:59:21] Production.INFO: ProcessCDR(1,14863277,1,1,2) [2025-04-08 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863277', 'tblTempUsageDetail_20' ) start [2025-04-08 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863277', 'tblTempUsageDetail_20' ) end [2025-04-08 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 15:59:26] Production.INFO: ==28942== Releasing lock... [2025-04-08 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 15:59:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:00:06 [end_date_ymd] => 2025-04-08 16:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 13:00:06' and `end` < '2025-04-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-04-08 16:00:20] Production.INFO: count ==4866 [2025-04-08 16:00:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:00:06 - End Time 2025-04-08 16:00:06 [2025-04-08 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863282', 'tblTempUsageDetail_20' ) start [2025-04-08 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863282', 'tblTempUsageDetail_20' ) end [2025-04-08 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863282', 'tblTempVendorCDR_20' ) start [2025-04-08 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863282', 'tblTempVendorCDR_20' ) end [2025-04-08 16:00:22] Production.INFO: ProcessCDR(1,14863282,1,1,2) [2025-04-08 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863282', 'tblTempUsageDetail_20' ) start [2025-04-08 16:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863282', 'tblTempUsageDetail_20' ) end [2025-04-08 16:00:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:00:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:00:27] Production.INFO: ==29037== Releasing lock... [2025-04-08 16:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:00:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:01:05 [end_date_ymd] => 2025-04-08 16:01:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:01:05' and `end` < '2025-04-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-04-08 16:01:19] Production.INFO: count ==4901 [2025-04-08 16:01:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:01:05 - End Time 2025-04-08 16:01:05 [2025-04-08 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863288', 'tblTempUsageDetail_20' ) start [2025-04-08 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863288', 'tblTempUsageDetail_20' ) end [2025-04-08 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863288', 'tblTempVendorCDR_20' ) start [2025-04-08 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863288', 'tblTempVendorCDR_20' ) end [2025-04-08 16:01:21] Production.INFO: ProcessCDR(1,14863288,1,1,2) [2025-04-08 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863288', 'tblTempUsageDetail_20' ) start [2025-04-08 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863288', 'tblTempUsageDetail_20' ) end [2025-04-08 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:01:26] Production.INFO: ==29134== Releasing lock... [2025-04-08 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:01:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:02:05 [end_date_ymd] => 2025-04-08 16:02:05 [RateCDR] => 1 ) [2025-04-08 16:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 13:02:05' and `end` < '2025-04-08 16:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 16:02:19] Production.INFO: count ==4907 [2025-04-08 16:02:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:02:05 - End Time 2025-04-08 16:02:05 [2025-04-08 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863293', 'tblTempUsageDetail_20' ) start [2025-04-08 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863293', 'tblTempUsageDetail_20' ) end [2025-04-08 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863293', 'tblTempVendorCDR_20' ) start [2025-04-08 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863293', 'tblTempVendorCDR_20' ) end [2025-04-08 16:02:22] Production.INFO: ProcessCDR(1,14863293,1,1,2) [2025-04-08 16:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863293', 'tblTempUsageDetail_20' ) start [2025-04-08 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863293', 'tblTempUsageDetail_20' ) end [2025-04-08 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:02:27] Production.INFO: ==29209== Releasing lock... [2025-04-08 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:02:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:03:05 [end_date_ymd] => 2025-04-08 16:03:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:03:05' and `end` < '2025-04-08 16: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-04-08 16:03:19] Production.INFO: count ==4919 [2025-04-08 16:03:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:03:05 - End Time 2025-04-08 16:03:05 [2025-04-08 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863298', 'tblTempUsageDetail_20' ) start [2025-04-08 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863298', 'tblTempUsageDetail_20' ) end [2025-04-08 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863298', 'tblTempVendorCDR_20' ) start [2025-04-08 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863298', 'tblTempVendorCDR_20' ) end [2025-04-08 16:03:21] Production.INFO: ProcessCDR(1,14863298,1,1,2) [2025-04-08 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863298', 'tblTempUsageDetail_20' ) start [2025-04-08 16:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863298', 'tblTempUsageDetail_20' ) end [2025-04-08 16:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:03:27] Production.INFO: ==29294== Releasing lock... [2025-04-08 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:03:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:04:05 [end_date_ymd] => 2025-04-08 16:04:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:04:05' and `end` < '2025-04-08 16: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-04-08 16:04:19] Production.INFO: count ==4941 [2025-04-08 16:04:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:04:05 - End Time 2025-04-08 16:04:05 [2025-04-08 16:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863303', 'tblTempUsageDetail_20' ) start [2025-04-08 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863303', 'tblTempUsageDetail_20' ) end [2025-04-08 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863303', 'tblTempVendorCDR_20' ) start [2025-04-08 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863303', 'tblTempVendorCDR_20' ) end [2025-04-08 16:04:22] Production.INFO: ProcessCDR(1,14863303,1,1,2) [2025-04-08 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863303', 'tblTempUsageDetail_20' ) start [2025-04-08 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863303', 'tblTempUsageDetail_20' ) end [2025-04-08 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:04:27] Production.INFO: ==29378== Releasing lock... [2025-04-08 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:04:27] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:05:04 [end_date_ymd] => 2025-04-08 16:05:04 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:05:04' and `end` < '2025-04-08 16: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-04-08 16:05:18] Production.INFO: count ==4952 [2025-04-08 16:05:20] Production.ERROR: pbx CDR StartTime 2025-04-08 13:05:04 - End Time 2025-04-08 16:05:04 [2025-04-08 16:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863308', 'tblTempUsageDetail_20' ) start [2025-04-08 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863308', 'tblTempUsageDetail_20' ) end [2025-04-08 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863308', 'tblTempVendorCDR_20' ) start [2025-04-08 16:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863308', 'tblTempVendorCDR_20' ) end [2025-04-08 16:05:20] Production.INFO: ProcessCDR(1,14863308,1,1,2) [2025-04-08 16:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863308', 'tblTempUsageDetail_20' ) start [2025-04-08 16:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863308', 'tblTempUsageDetail_20' ) end [2025-04-08 16:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:05:26] Production.INFO: ==29455== Releasing lock... [2025-04-08 16:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:05:26] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:06:05 [end_date_ymd] => 2025-04-08 16:06:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:06:05' and `end` < '2025-04-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-04-08 16:06:19] Production.INFO: count ==4939 [2025-04-08 16:06:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:06:05 - End Time 2025-04-08 16:06:05 [2025-04-08 16:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863313', 'tblTempUsageDetail_20' ) start [2025-04-08 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863313', 'tblTempUsageDetail_20' ) end [2025-04-08 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863313', 'tblTempVendorCDR_20' ) start [2025-04-08 16:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863313', 'tblTempVendorCDR_20' ) end [2025-04-08 16:06:21] Production.INFO: ProcessCDR(1,14863313,1,1,2) [2025-04-08 16:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863313', 'tblTempUsageDetail_20' ) start [2025-04-08 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863313', 'tblTempUsageDetail_20' ) end [2025-04-08 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:06:27] Production.INFO: ==29572== Releasing lock... [2025-04-08 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:06:27] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:07:05 [end_date_ymd] => 2025-04-08 16:07:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:07:05' and `end` < '2025-04-08 16: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-04-08 16:07:19] Production.INFO: count ==4927 [2025-04-08 16:07:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:07:05 - End Time 2025-04-08 16:07:05 [2025-04-08 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863318', 'tblTempUsageDetail_20' ) start [2025-04-08 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863318', 'tblTempUsageDetail_20' ) end [2025-04-08 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863318', 'tblTempVendorCDR_20' ) start [2025-04-08 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863318', 'tblTempVendorCDR_20' ) end [2025-04-08 16:07:21] Production.INFO: ProcessCDR(1,14863318,1,1,2) [2025-04-08 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863318', 'tblTempUsageDetail_20' ) start [2025-04-08 16:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863318', 'tblTempUsageDetail_20' ) end [2025-04-08 16:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:07:25] Production.INFO: ==29658== Releasing lock... [2025-04-08 16:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:07:25] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:08:05 [end_date_ymd] => 2025-04-08 16:08:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:08:05' and `end` < '2025-04-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-04-08 16:08:19] Production.INFO: count ==4924 [2025-04-08 16:08:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:08:05 - End Time 2025-04-08 16:08:05 [2025-04-08 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863323', 'tblTempUsageDetail_20' ) start [2025-04-08 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863323', 'tblTempUsageDetail_20' ) end [2025-04-08 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863323', 'tblTempVendorCDR_20' ) start [2025-04-08 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863323', 'tblTempVendorCDR_20' ) end [2025-04-08 16:08:21] Production.INFO: ProcessCDR(1,14863323,1,1,2) [2025-04-08 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863323', 'tblTempUsageDetail_20' ) start [2025-04-08 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863323', 'tblTempUsageDetail_20' ) end [2025-04-08 16:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:08:26] Production.INFO: ==29736== Releasing lock... [2025-04-08 16:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:08:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:09:06 [end_date_ymd] => 2025-04-08 16:09:06 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:09:06' and `end` < '2025-04-08 16: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-04-08 16:09:20] Production.INFO: count ==4922 [2025-04-08 16:09:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:09:06 - End Time 2025-04-08 16:09:06 [2025-04-08 16:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863328', 'tblTempUsageDetail_20' ) start [2025-04-08 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863328', 'tblTempUsageDetail_20' ) end [2025-04-08 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863328', 'tblTempVendorCDR_20' ) start [2025-04-08 16:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863328', 'tblTempVendorCDR_20' ) end [2025-04-08 16:09:22] Production.INFO: ProcessCDR(1,14863328,1,1,2) [2025-04-08 16:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863328', 'tblTempUsageDetail_20' ) start [2025-04-08 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863328', 'tblTempUsageDetail_20' ) end [2025-04-08 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:09:27] Production.INFO: ==29819== Releasing lock... [2025-04-08 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:09:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:10:06 [end_date_ymd] => 2025-04-08 16:10:06 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:10:06' and `end` < '2025-04-08 16: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-04-08 16:10:20] Production.INFO: count ==4932 [2025-04-08 16:10:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:10:06 - End Time 2025-04-08 16:10:06 [2025-04-08 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863334', 'tblTempUsageDetail_20' ) start [2025-04-08 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863334', 'tblTempUsageDetail_20' ) end [2025-04-08 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863334', 'tblTempVendorCDR_20' ) start [2025-04-08 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863334', 'tblTempVendorCDR_20' ) end [2025-04-08 16:10:22] Production.INFO: ProcessCDR(1,14863334,1,1,2) [2025-04-08 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863334', 'tblTempUsageDetail_20' ) start [2025-04-08 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863334', 'tblTempUsageDetail_20' ) end [2025-04-08 16:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:10:27] Production.INFO: ==29921== Releasing lock... [2025-04-08 16:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:10:27] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:11:06 [end_date_ymd] => 2025-04-08 16:11:06 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:11:06' and `end` < '2025-04-08 16: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-04-08 16:11:20] Production.INFO: count ==4959 [2025-04-08 16:11:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:11:06 - End Time 2025-04-08 16:11:06 [2025-04-08 16:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863339', 'tblTempUsageDetail_20' ) start [2025-04-08 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863339', 'tblTempUsageDetail_20' ) end [2025-04-08 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863339', 'tblTempVendorCDR_20' ) start [2025-04-08 16:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863339', 'tblTempVendorCDR_20' ) end [2025-04-08 16:11:22] Production.INFO: ProcessCDR(1,14863339,1,1,2) [2025-04-08 16:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863339', 'tblTempUsageDetail_20' ) start [2025-04-08 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863339', 'tblTempUsageDetail_20' ) end [2025-04-08 16:11:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:11:28] Production.INFO: ==30033== Releasing lock... [2025-04-08 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:11:28] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:12:06 [end_date_ymd] => 2025-04-08 16:12:06 [RateCDR] => 1 ) [2025-04-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-04-08 13:12:06' and `end` < '2025-04-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-04-08 16:12:20] Production.INFO: count ==4958 [2025-04-08 16:12:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:12:06 - End Time 2025-04-08 16:12:06 [2025-04-08 16:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863344', 'tblTempUsageDetail_20' ) start [2025-04-08 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863344', 'tblTempUsageDetail_20' ) end [2025-04-08 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863344', 'tblTempVendorCDR_20' ) start [2025-04-08 16:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863344', 'tblTempVendorCDR_20' ) end [2025-04-08 16:12:22] Production.INFO: ProcessCDR(1,14863344,1,1,2) [2025-04-08 16:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863344', 'tblTempUsageDetail_20' ) start [2025-04-08 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863344', 'tblTempUsageDetail_20' ) end [2025-04-08 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:12:27] Production.INFO: ==30119== Releasing lock... [2025-04-08 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:12:27] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:13:06 [end_date_ymd] => 2025-04-08 16:13:06 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:13:06' and `end` < '2025-04-08 16: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-04-08 16:13:20] Production.INFO: count ==4945 [2025-04-08 16:13:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:13:06 - End Time 2025-04-08 16:13:06 [2025-04-08 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863349', 'tblTempUsageDetail_20' ) start [2025-04-08 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863349', 'tblTempUsageDetail_20' ) end [2025-04-08 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863349', 'tblTempVendorCDR_20' ) start [2025-04-08 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863349', 'tblTempVendorCDR_20' ) end [2025-04-08 16:13:22] Production.INFO: ProcessCDR(1,14863349,1,1,2) [2025-04-08 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863349', 'tblTempUsageDetail_20' ) start [2025-04-08 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863349', 'tblTempUsageDetail_20' ) end [2025-04-08 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:13:27] Production.INFO: ==30214== Releasing lock... [2025-04-08 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:13:27] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:14:05 [end_date_ymd] => 2025-04-08 16:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:14:05' and `end` < '2025-04-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-04-08 16:14:19] Production.INFO: count ==4948 [2025-04-08 16:14:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:14:05 - End Time 2025-04-08 16:14:05 [2025-04-08 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863354', 'tblTempUsageDetail_20' ) start [2025-04-08 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863354', 'tblTempUsageDetail_20' ) end [2025-04-08 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863354', 'tblTempVendorCDR_20' ) start [2025-04-08 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863354', 'tblTempVendorCDR_20' ) end [2025-04-08 16:14:21] Production.INFO: ProcessCDR(1,14863354,1,1,2) [2025-04-08 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863354', 'tblTempUsageDetail_20' ) start [2025-04-08 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863354', 'tblTempUsageDetail_20' ) end [2025-04-08 16:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:14:26] Production.INFO: ==30299== Releasing lock... [2025-04-08 16:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:14:26] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:15:06 [end_date_ymd] => 2025-04-08 16:15:06 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:15:06' and `end` < '2025-04-08 16: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-04-08 16:15:19] Production.INFO: count ==4940 [2025-04-08 16:15:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:15:06 - End Time 2025-04-08 16:15:06 [2025-04-08 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863359', 'tblTempUsageDetail_20' ) start [2025-04-08 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863359', 'tblTempUsageDetail_20' ) end [2025-04-08 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863359', 'tblTempVendorCDR_20' ) start [2025-04-08 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863359', 'tblTempVendorCDR_20' ) end [2025-04-08 16:15:22] Production.INFO: ProcessCDR(1,14863359,1,1,2) [2025-04-08 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863359', 'tblTempUsageDetail_20' ) start [2025-04-08 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863359', 'tblTempUsageDetail_20' ) end [2025-04-08 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:15:27] Production.INFO: ==30402== Releasing lock... [2025-04-08 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:15:27] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:16:05 [end_date_ymd] => 2025-04-08 16:16:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:16:05' and `end` < '2025-04-08 16: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-04-08 16:16:19] Production.INFO: count ==4926 [2025-04-08 16:16:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:16:05 - End Time 2025-04-08 16:16:05 [2025-04-08 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863364', 'tblTempUsageDetail_20' ) start [2025-04-08 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863364', 'tblTempUsageDetail_20' ) end [2025-04-08 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863364', 'tblTempVendorCDR_20' ) start [2025-04-08 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863364', 'tblTempVendorCDR_20' ) end [2025-04-08 16:16:21] Production.INFO: ProcessCDR(1,14863364,1,1,2) [2025-04-08 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863364', 'tblTempUsageDetail_20' ) start [2025-04-08 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863364', 'tblTempUsageDetail_20' ) end [2025-04-08 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:16:26] Production.INFO: ==30480== Releasing lock... [2025-04-08 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:16:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:17:05 [end_date_ymd] => 2025-04-08 16:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:17:05' and `end` < '2025-04-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-04-08 16:17:19] Production.INFO: count ==4928 [2025-04-08 16:17:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:17:05 - End Time 2025-04-08 16:17:05 [2025-04-08 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863369', 'tblTempUsageDetail_20' ) start [2025-04-08 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863369', 'tblTempUsageDetail_20' ) end [2025-04-08 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863369', 'tblTempVendorCDR_20' ) start [2025-04-08 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863369', 'tblTempVendorCDR_20' ) end [2025-04-08 16:17:21] Production.INFO: ProcessCDR(1,14863369,1,1,2) [2025-04-08 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863369', 'tblTempUsageDetail_20' ) start [2025-04-08 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863369', 'tblTempUsageDetail_20' ) end [2025-04-08 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:17:27] Production.INFO: ==30555== Releasing lock... [2025-04-08 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:17:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:18:04 [end_date_ymd] => 2025-04-08 16:18:04 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:18:04' and `end` < '2025-04-08 16: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-04-08 16:18:19] Production.INFO: count ==4933 [2025-04-08 16:18:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:18:04 - End Time 2025-04-08 16:18:04 [2025-04-08 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863374', 'tblTempUsageDetail_20' ) start [2025-04-08 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863374', 'tblTempUsageDetail_20' ) end [2025-04-08 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863374', 'tblTempVendorCDR_20' ) start [2025-04-08 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863374', 'tblTempVendorCDR_20' ) end [2025-04-08 16:18:21] Production.INFO: ProcessCDR(1,14863374,1,1,2) [2025-04-08 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863374', 'tblTempUsageDetail_20' ) start [2025-04-08 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863374', 'tblTempUsageDetail_20' ) end [2025-04-08 16:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:18:26] Production.INFO: ==30635== Releasing lock... [2025-04-08 16:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:18:26] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:19:05 [end_date_ymd] => 2025-04-08 16:19:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:19:05' and `end` < '2025-04-08 16: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-04-08 16:19:20] Production.INFO: count ==4921 [2025-04-08 16:19:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:19:05 - End Time 2025-04-08 16:19:05 [2025-04-08 16:19:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863379', 'tblTempUsageDetail_20' ) start [2025-04-08 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863379', 'tblTempUsageDetail_20' ) end [2025-04-08 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863379', 'tblTempVendorCDR_20' ) start [2025-04-08 16:19:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863379', 'tblTempVendorCDR_20' ) end [2025-04-08 16:19:22] Production.INFO: ProcessCDR(1,14863379,1,1,2) [2025-04-08 16:19:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863379', 'tblTempUsageDetail_20' ) start [2025-04-08 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863379', 'tblTempUsageDetail_20' ) end [2025-04-08 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:19:27] Production.INFO: ==30722== Releasing lock... [2025-04-08 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:19:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:20:05 [end_date_ymd] => 2025-04-08 16:20:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:20:05' and `end` < '2025-04-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-04-08 16:20:19] Production.INFO: count ==4907 [2025-04-08 16:20:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:20:05 - End Time 2025-04-08 16:20:05 [2025-04-08 16:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863384', 'tblTempUsageDetail_20' ) start [2025-04-08 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863384', 'tblTempUsageDetail_20' ) end [2025-04-08 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863384', 'tblTempVendorCDR_20' ) start [2025-04-08 16:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863384', 'tblTempVendorCDR_20' ) end [2025-04-08 16:20:21] Production.INFO: ProcessCDR(1,14863384,1,1,2) [2025-04-08 16:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863384', 'tblTempUsageDetail_20' ) start [2025-04-08 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863384', 'tblTempUsageDetail_20' ) end [2025-04-08 16:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:20:27] Production.INFO: ==30810== Releasing lock... [2025-04-08 16:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:20:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:21:05 [end_date_ymd] => 2025-04-08 16:21:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:21:05' and `end` < '2025-04-08 16: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-04-08 16:21:18] Production.INFO: count ==4911 [2025-04-08 16:21:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:21:05 - End Time 2025-04-08 16:21:05 [2025-04-08 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863390', 'tblTempUsageDetail_20' ) start [2025-04-08 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863390', 'tblTempUsageDetail_20' ) end [2025-04-08 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863390', 'tblTempVendorCDR_20' ) start [2025-04-08 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863390', 'tblTempVendorCDR_20' ) end [2025-04-08 16:21:21] Production.INFO: ProcessCDR(1,14863390,1,1,2) [2025-04-08 16:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863390', 'tblTempUsageDetail_20' ) start [2025-04-08 16:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863390', 'tblTempUsageDetail_20' ) end [2025-04-08 16:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:21:26] Production.INFO: ==30928== Releasing lock... [2025-04-08 16:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:21:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:22:05 [end_date_ymd] => 2025-04-08 16:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:22:05' and `end` < '2025-04-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-04-08 16:22:19] Production.INFO: count ==4906 [2025-04-08 16:22:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:22:05 - End Time 2025-04-08 16:22:05 [2025-04-08 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863394', 'tblTempUsageDetail_20' ) start [2025-04-08 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863394', 'tblTempUsageDetail_20' ) end [2025-04-08 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863394', 'tblTempVendorCDR_20' ) start [2025-04-08 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863394', 'tblTempVendorCDR_20' ) end [2025-04-08 16:22:21] Production.INFO: ProcessCDR(1,14863394,1,1,2) [2025-04-08 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863394', 'tblTempUsageDetail_20' ) start [2025-04-08 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863394', 'tblTempUsageDetail_20' ) end [2025-04-08 16:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:22:26] Production.INFO: ==31008== Releasing lock... [2025-04-08 16:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:22:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:23:06 [end_date_ymd] => 2025-04-08 16:23:06 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:23:06' and `end` < '2025-04-08 16: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-04-08 16:23:20] Production.INFO: count ==4898 [2025-04-08 16:23:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:23:06 - End Time 2025-04-08 16:23:06 [2025-04-08 16:23:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863400', 'tblTempUsageDetail_20' ) start [2025-04-08 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863400', 'tblTempUsageDetail_20' ) end [2025-04-08 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863400', 'tblTempVendorCDR_20' ) start [2025-04-08 16:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863400', 'tblTempVendorCDR_20' ) end [2025-04-08 16:23:22] Production.INFO: ProcessCDR(1,14863400,1,1,2) [2025-04-08 16:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:23:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:23:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:23:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863400', 'tblTempUsageDetail_20' ) start [2025-04-08 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863400', 'tblTempUsageDetail_20' ) end [2025-04-08 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:23:27] Production.INFO: ==31092== Releasing lock... [2025-04-08 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:23:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:24:05 [end_date_ymd] => 2025-04-08 16:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:24:05' and `end` < '2025-04-08 16: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-04-08 16:24:19] Production.INFO: count ==4907 [2025-04-08 16:24:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:24:05 - End Time 2025-04-08 16:24:05 [2025-04-08 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863405', 'tblTempUsageDetail_20' ) start [2025-04-08 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863405', 'tblTempUsageDetail_20' ) end [2025-04-08 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863405', 'tblTempVendorCDR_20' ) start [2025-04-08 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863405', 'tblTempVendorCDR_20' ) end [2025-04-08 16:24:22] Production.INFO: ProcessCDR(1,14863405,1,1,2) [2025-04-08 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863405', 'tblTempUsageDetail_20' ) start [2025-04-08 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863405', 'tblTempUsageDetail_20' ) end [2025-04-08 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:24:27] Production.INFO: ==31174== Releasing lock... [2025-04-08 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:24:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:25:05 [end_date_ymd] => 2025-04-08 16:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:25:05' and `end` < '2025-04-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-04-08 16:25:19] Production.INFO: count ==4914 [2025-04-08 16:25:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:25:05 - End Time 2025-04-08 16:25:05 [2025-04-08 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863410', 'tblTempUsageDetail_20' ) start [2025-04-08 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863410', 'tblTempUsageDetail_20' ) end [2025-04-08 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863410', 'tblTempVendorCDR_20' ) start [2025-04-08 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863410', 'tblTempVendorCDR_20' ) end [2025-04-08 16:25:21] Production.INFO: ProcessCDR(1,14863410,1,1,2) [2025-04-08 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863410', 'tblTempUsageDetail_20' ) start [2025-04-08 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863410', 'tblTempUsageDetail_20' ) end [2025-04-08 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:25:27] Production.INFO: ==31256== Releasing lock... [2025-04-08 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:25:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:26:06 [end_date_ymd] => 2025-04-08 16:26:06 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:26:06' and `end` < '2025-04-08 16: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-04-08 16:26:20] Production.INFO: count ==4907 [2025-04-08 16:26:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:26:06 - End Time 2025-04-08 16:26:06 [2025-04-08 16:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863415', 'tblTempUsageDetail_20' ) start [2025-04-08 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863415', 'tblTempUsageDetail_20' ) end [2025-04-08 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863415', 'tblTempVendorCDR_20' ) start [2025-04-08 16:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863415', 'tblTempVendorCDR_20' ) end [2025-04-08 16:26:22] Production.INFO: ProcessCDR(1,14863415,1,1,2) [2025-04-08 16:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863415', 'tblTempUsageDetail_20' ) start [2025-04-08 16:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863415', 'tblTempUsageDetail_20' ) end [2025-04-08 16:26:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:26:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:26:28] Production.INFO: ==31337== Releasing lock... [2025-04-08 16:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:26:28] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:27:05 [end_date_ymd] => 2025-04-08 16:27:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:27:05' and `end` < '2025-04-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-04-08 16:27:19] Production.INFO: count ==4916 [2025-04-08 16:27:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:27:05 - End Time 2025-04-08 16:27:05 [2025-04-08 16:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863420', 'tblTempUsageDetail_20' ) start [2025-04-08 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863420', 'tblTempUsageDetail_20' ) end [2025-04-08 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863420', 'tblTempVendorCDR_20' ) start [2025-04-08 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863420', 'tblTempVendorCDR_20' ) end [2025-04-08 16:27:21] Production.INFO: ProcessCDR(1,14863420,1,1,2) [2025-04-08 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863420', 'tblTempUsageDetail_20' ) start [2025-04-08 16:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863420', 'tblTempUsageDetail_20' ) end [2025-04-08 16:27:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:27:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:27:27] Production.INFO: ==31417== Releasing lock... [2025-04-08 16:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:27:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:28:06 [end_date_ymd] => 2025-04-08 16:28:06 [RateCDR] => 1 ) [2025-04-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-04-08 13:28:06' and `end` < '2025-04-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-04-08 16:28:19] Production.INFO: count ==4911 [2025-04-08 16:28:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:28:06 - End Time 2025-04-08 16:28:06 [2025-04-08 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863425', 'tblTempUsageDetail_20' ) start [2025-04-08 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863425', 'tblTempUsageDetail_20' ) end [2025-04-08 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863425', 'tblTempVendorCDR_20' ) start [2025-04-08 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863425', 'tblTempVendorCDR_20' ) end [2025-04-08 16:28:22] Production.INFO: ProcessCDR(1,14863425,1,1,2) [2025-04-08 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863425', 'tblTempUsageDetail_20' ) start [2025-04-08 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863425', 'tblTempUsageDetail_20' ) end [2025-04-08 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:28:27] Production.INFO: ==31497== Releasing lock... [2025-04-08 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:28:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:29:05 [end_date_ymd] => 2025-04-08 16:29:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:29:05' and `end` < '2025-04-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-04-08 16:29:19] Production.INFO: count ==4911 [2025-04-08 16:29:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:29:05 - End Time 2025-04-08 16:29:05 [2025-04-08 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863430', 'tblTempUsageDetail_20' ) start [2025-04-08 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863430', 'tblTempUsageDetail_20' ) end [2025-04-08 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863430', 'tblTempVendorCDR_20' ) start [2025-04-08 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863430', 'tblTempVendorCDR_20' ) end [2025-04-08 16:29:21] Production.INFO: ProcessCDR(1,14863430,1,1,2) [2025-04-08 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863430', 'tblTempUsageDetail_20' ) start [2025-04-08 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863430', 'tblTempUsageDetail_20' ) end [2025-04-08 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:29:27] Production.INFO: ==31584== Releasing lock... [2025-04-08 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:29:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:30:06 [end_date_ymd] => 2025-04-08 16:30:06 [RateCDR] => 1 ) [2025-04-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-04-08 13:30:06' and `end` < '2025-04-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-04-08 16:30:20] Production.INFO: count ==4923 [2025-04-08 16:30:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:30:06 - End Time 2025-04-08 16:30:06 [2025-04-08 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863435', 'tblTempUsageDetail_20' ) start [2025-04-08 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863435', 'tblTempUsageDetail_20' ) end [2025-04-08 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863435', 'tblTempVendorCDR_20' ) start [2025-04-08 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863435', 'tblTempVendorCDR_20' ) end [2025-04-08 16:30:22] Production.INFO: ProcessCDR(1,14863435,1,1,2) [2025-04-08 16:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863435', 'tblTempUsageDetail_20' ) start [2025-04-08 16:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863435', 'tblTempUsageDetail_20' ) end [2025-04-08 16:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:30:27] Production.INFO: ==31669== Releasing lock... [2025-04-08 16:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:30:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:31:05 [end_date_ymd] => 2025-04-08 16:31:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:31:05' and `end` < '2025-04-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-04-08 16:31:19] Production.INFO: count ==4954 [2025-04-08 16:31:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:31:05 - End Time 2025-04-08 16:31:05 [2025-04-08 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863441', 'tblTempUsageDetail_20' ) start [2025-04-08 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863441', 'tblTempUsageDetail_20' ) end [2025-04-08 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863441', 'tblTempVendorCDR_20' ) start [2025-04-08 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863441', 'tblTempVendorCDR_20' ) end [2025-04-08 16:31:21] Production.INFO: ProcessCDR(1,14863441,1,1,2) [2025-04-08 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863441', 'tblTempUsageDetail_20' ) start [2025-04-08 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863441', 'tblTempUsageDetail_20' ) end [2025-04-08 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:31:27] Production.INFO: ==31752== Releasing lock... [2025-04-08 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:31:27] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:32:06 [end_date_ymd] => 2025-04-08 16:32:06 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:32:06' and `end` < '2025-04-08 16: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-04-08 16:32:19] Production.INFO: count ==4940 [2025-04-08 16:32:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:32:06 - End Time 2025-04-08 16:32:06 [2025-04-08 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863446', 'tblTempUsageDetail_20' ) start [2025-04-08 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863446', 'tblTempUsageDetail_20' ) end [2025-04-08 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863446', 'tblTempVendorCDR_20' ) start [2025-04-08 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863446', 'tblTempVendorCDR_20' ) end [2025-04-08 16:32:22] Production.INFO: ProcessCDR(1,14863446,1,1,2) [2025-04-08 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863446', 'tblTempUsageDetail_20' ) start [2025-04-08 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863446', 'tblTempUsageDetail_20' ) end [2025-04-08 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:32:27] Production.INFO: ==31830== Releasing lock... [2025-04-08 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:32:27] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:33:04 [end_date_ymd] => 2025-04-08 16:33:04 [RateCDR] => 1 ) [2025-04-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-04-08 13:33:04' and `end` < '2025-04-08 16: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-04-08 16:33:18] Production.INFO: count ==4932 [2025-04-08 16:33:20] Production.ERROR: pbx CDR StartTime 2025-04-08 13:33:04 - End Time 2025-04-08 16:33:04 [2025-04-08 16:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863451', 'tblTempUsageDetail_20' ) start [2025-04-08 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863451', 'tblTempUsageDetail_20' ) end [2025-04-08 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863451', 'tblTempVendorCDR_20' ) start [2025-04-08 16:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863451', 'tblTempVendorCDR_20' ) end [2025-04-08 16:33:20] Production.INFO: ProcessCDR(1,14863451,1,1,2) [2025-04-08 16:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863451', 'tblTempUsageDetail_20' ) start [2025-04-08 16:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863451', 'tblTempUsageDetail_20' ) end [2025-04-08 16:33:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:33:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:33:26] Production.INFO: ==31917== Releasing lock... [2025-04-08 16:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:33:26] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:34:05 [end_date_ymd] => 2025-04-08 16:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:34:05' and `end` < '2025-04-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-04-08 16:34:19] Production.INFO: count ==4918 [2025-04-08 16:34:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:34:05 - End Time 2025-04-08 16:34:05 [2025-04-08 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863456', 'tblTempUsageDetail_20' ) start [2025-04-08 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863456', 'tblTempUsageDetail_20' ) end [2025-04-08 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863456', 'tblTempVendorCDR_20' ) start [2025-04-08 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863456', 'tblTempVendorCDR_20' ) end [2025-04-08 16:34:21] Production.INFO: ProcessCDR(1,14863456,1,1,2) [2025-04-08 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863456', 'tblTempUsageDetail_20' ) start [2025-04-08 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863456', 'tblTempUsageDetail_20' ) end [2025-04-08 16:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:34:26] Production.INFO: ==31993== Releasing lock... [2025-04-08 16:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:34:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:35:05 [end_date_ymd] => 2025-04-08 16:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:35:05' and `end` < '2025-04-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-04-08 16:35:19] Production.INFO: count ==4913 [2025-04-08 16:35:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:35:05 - End Time 2025-04-08 16:35:05 [2025-04-08 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863461', 'tblTempUsageDetail_20' ) start [2025-04-08 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863461', 'tblTempUsageDetail_20' ) end [2025-04-08 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863461', 'tblTempVendorCDR_20' ) start [2025-04-08 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863461', 'tblTempVendorCDR_20' ) end [2025-04-08 16:35:21] Production.INFO: ProcessCDR(1,14863461,1,1,2) [2025-04-08 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863461', 'tblTempUsageDetail_20' ) start [2025-04-08 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863461', 'tblTempUsageDetail_20' ) end [2025-04-08 16:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:35:26] Production.INFO: ==32080== Releasing lock... [2025-04-08 16:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:35:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:36:05 [end_date_ymd] => 2025-04-08 16:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:36:05' and `end` < '2025-04-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-04-08 16:36:20] Production.INFO: count ==4925 [2025-04-08 16:36:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:36:05 - End Time 2025-04-08 16:36:05 [2025-04-08 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863466', 'tblTempUsageDetail_20' ) start [2025-04-08 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863466', 'tblTempUsageDetail_20' ) end [2025-04-08 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863466', 'tblTempVendorCDR_20' ) start [2025-04-08 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863466', 'tblTempVendorCDR_20' ) end [2025-04-08 16:36:22] Production.INFO: ProcessCDR(1,14863466,1,1,2) [2025-04-08 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863466', 'tblTempUsageDetail_20' ) start [2025-04-08 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863466', 'tblTempUsageDetail_20' ) end [2025-04-08 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:36:27] Production.INFO: ==32158== Releasing lock... [2025-04-08 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:36:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:37:05 [end_date_ymd] => 2025-04-08 16:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:37:05' and `end` < '2025-04-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-04-08 16:37:20] Production.INFO: count ==4921 [2025-04-08 16:37:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:37:05 - End Time 2025-04-08 16:37:05 [2025-04-08 16:37:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863471', 'tblTempUsageDetail_20' ) start [2025-04-08 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863471', 'tblTempUsageDetail_20' ) end [2025-04-08 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863471', 'tblTempVendorCDR_20' ) start [2025-04-08 16:37:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863471', 'tblTempVendorCDR_20' ) end [2025-04-08 16:37:22] Production.INFO: ProcessCDR(1,14863471,1,1,2) [2025-04-08 16:37:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:37:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:37:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863471', 'tblTempUsageDetail_20' ) start [2025-04-08 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863471', 'tblTempUsageDetail_20' ) end [2025-04-08 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:37:27] Production.INFO: ==32280== Releasing lock... [2025-04-08 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:37:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:38:05 [end_date_ymd] => 2025-04-08 16:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:38:05' and `end` < '2025-04-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-04-08 16:38:19] Production.INFO: count ==4899 [2025-04-08 16:38:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:38:05 - End Time 2025-04-08 16:38:05 [2025-04-08 16:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863476', 'tblTempUsageDetail_20' ) start [2025-04-08 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863476', 'tblTempUsageDetail_20' ) end [2025-04-08 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863476', 'tblTempVendorCDR_20' ) start [2025-04-08 16:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863476', 'tblTempVendorCDR_20' ) end [2025-04-08 16:38:21] Production.INFO: ProcessCDR(1,14863476,1,1,2) [2025-04-08 16:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863476', 'tblTempUsageDetail_20' ) start [2025-04-08 16:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863476', 'tblTempUsageDetail_20' ) end [2025-04-08 16:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:38:26] Production.INFO: ==32362== Releasing lock... [2025-04-08 16:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:38:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:39:05 [end_date_ymd] => 2025-04-08 16:39:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:39:05' and `end` < '2025-04-08 16: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-04-08 16:39:19] Production.INFO: count ==4895 [2025-04-08 16:39:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:39:05 - End Time 2025-04-08 16:39:05 [2025-04-08 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863481', 'tblTempUsageDetail_20' ) start [2025-04-08 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863481', 'tblTempUsageDetail_20' ) end [2025-04-08 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863481', 'tblTempVendorCDR_20' ) start [2025-04-08 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863481', 'tblTempVendorCDR_20' ) end [2025-04-08 16:39:21] Production.INFO: ProcessCDR(1,14863481,1,1,2) [2025-04-08 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863481', 'tblTempUsageDetail_20' ) start [2025-04-08 16:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863481', 'tblTempUsageDetail_20' ) end [2025-04-08 16:39:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:39:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:39:26] Production.INFO: ==32447== Releasing lock... [2025-04-08 16:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:39:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:40:06 [end_date_ymd] => 2025-04-08 16:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 13:40:06' and `end` < '2025-04-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-04-08 16:40:20] Production.INFO: count ==4894 [2025-04-08 16:40:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:40:06 - End Time 2025-04-08 16:40:06 [2025-04-08 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863487', 'tblTempUsageDetail_20' ) start [2025-04-08 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863487', 'tblTempUsageDetail_20' ) end [2025-04-08 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863487', 'tblTempVendorCDR_20' ) start [2025-04-08 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863487', 'tblTempVendorCDR_20' ) end [2025-04-08 16:40:22] Production.INFO: ProcessCDR(1,14863487,1,1,2) [2025-04-08 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863487', 'tblTempUsageDetail_20' ) start [2025-04-08 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863487', 'tblTempUsageDetail_20' ) end [2025-04-08 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:40:28] Production.INFO: ==32531== Releasing lock... [2025-04-08 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:40:28] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:41:05 [end_date_ymd] => 2025-04-08 16:41:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:41:05' and `end` < '2025-04-08 16: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-04-08 16:41:19] Production.INFO: count ==4847 [2025-04-08 16:41:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:41:05 - End Time 2025-04-08 16:41:05 [2025-04-08 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863492', 'tblTempUsageDetail_20' ) start [2025-04-08 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863492', 'tblTempUsageDetail_20' ) end [2025-04-08 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863492', 'tblTempVendorCDR_20' ) start [2025-04-08 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863492', 'tblTempVendorCDR_20' ) end [2025-04-08 16:41:21] Production.INFO: ProcessCDR(1,14863492,1,1,2) [2025-04-08 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863492', 'tblTempUsageDetail_20' ) start [2025-04-08 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863492', 'tblTempUsageDetail_20' ) end [2025-04-08 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:41:26] Production.INFO: ==32613== Releasing lock... [2025-04-08 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:41:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:42:05 [end_date_ymd] => 2025-04-08 16:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:42:05' and `end` < '2025-04-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-04-08 16:42:19] Production.INFO: count ==4834 [2025-04-08 16:42:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:42:05 - End Time 2025-04-08 16:42:05 [2025-04-08 16:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863497', 'tblTempUsageDetail_20' ) start [2025-04-08 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863497', 'tblTempUsageDetail_20' ) end [2025-04-08 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863497', 'tblTempVendorCDR_20' ) start [2025-04-08 16:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863497', 'tblTempVendorCDR_20' ) end [2025-04-08 16:42:21] Production.INFO: ProcessCDR(1,14863497,1,1,2) [2025-04-08 16:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863497', 'tblTempUsageDetail_20' ) start [2025-04-08 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863497', 'tblTempUsageDetail_20' ) end [2025-04-08 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:42:26] Production.INFO: ==32700== Releasing lock... [2025-04-08 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:42:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:43:05 [end_date_ymd] => 2025-04-08 16:43:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:43:05' and `end` < '2025-04-08 16: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-04-08 16:43:19] Production.INFO: count ==4814 [2025-04-08 16:43:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:43:05 - End Time 2025-04-08 16:43:05 [2025-04-08 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863502', 'tblTempUsageDetail_20' ) start [2025-04-08 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863502', 'tblTempUsageDetail_20' ) end [2025-04-08 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863502', 'tblTempVendorCDR_20' ) start [2025-04-08 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863502', 'tblTempVendorCDR_20' ) end [2025-04-08 16:43:21] Production.INFO: ProcessCDR(1,14863502,1,1,2) [2025-04-08 16:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863502', 'tblTempUsageDetail_20' ) start [2025-04-08 16:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863502', 'tblTempUsageDetail_20' ) end [2025-04-08 16:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:43:26] Production.INFO: ==324== Releasing lock... [2025-04-08 16:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:43:26] Production.INFO: 64 MB #Memory Used# [2025-04-08 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:44:05 [end_date_ymd] => 2025-04-08 16:44:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:44:05' and `end` < '2025-04-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-04-08 16:44:21] Production.INFO: count ==4821 [2025-04-08 16:44:23] Production.ERROR: pbx CDR StartTime 2025-04-08 13:44:05 - End Time 2025-04-08 16:44:05 [2025-04-08 16:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863507', 'tblTempUsageDetail_20' ) start [2025-04-08 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863507', 'tblTempUsageDetail_20' ) end [2025-04-08 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863507', 'tblTempVendorCDR_20' ) start [2025-04-08 16:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863507', 'tblTempVendorCDR_20' ) end [2025-04-08 16:44:23] Production.INFO: ProcessCDR(1,14863507,1,1,2) [2025-04-08 16:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863507', 'tblTempUsageDetail_20' ) start [2025-04-08 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863507', 'tblTempUsageDetail_20' ) end [2025-04-08 16:44:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:44:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:44:28] Production.INFO: ==424== Releasing lock... [2025-04-08 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:44:28] Production.INFO: 64 MB #Memory Used# [2025-04-08 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:45:05 [end_date_ymd] => 2025-04-08 16:45:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:45:05' and `end` < '2025-04-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-04-08 16:45:20] Production.INFO: count ==4823 [2025-04-08 16:45:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:45:05 - End Time 2025-04-08 16:45:05 [2025-04-08 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863512', 'tblTempUsageDetail_20' ) start [2025-04-08 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863512', 'tblTempUsageDetail_20' ) end [2025-04-08 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863512', 'tblTempVendorCDR_20' ) start [2025-04-08 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863512', 'tblTempVendorCDR_20' ) end [2025-04-08 16:45:22] Production.INFO: ProcessCDR(1,14863512,1,1,2) [2025-04-08 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863512', 'tblTempUsageDetail_20' ) start [2025-04-08 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863512', 'tblTempUsageDetail_20' ) end [2025-04-08 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:45:27] Production.INFO: ==504== Releasing lock... [2025-04-08 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:45:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:46:05 [end_date_ymd] => 2025-04-08 16:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:46:05' and `end` < '2025-04-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-04-08 16:46:20] Production.INFO: count ==4815 [2025-04-08 16:46:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:46:05 - End Time 2025-04-08 16:46:05 [2025-04-08 16:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863517', 'tblTempUsageDetail_20' ) start [2025-04-08 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863517', 'tblTempUsageDetail_20' ) end [2025-04-08 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863517', 'tblTempVendorCDR_20' ) start [2025-04-08 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863517', 'tblTempVendorCDR_20' ) end [2025-04-08 16:46:22] Production.INFO: ProcessCDR(1,14863517,1,1,2) [2025-04-08 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863517', 'tblTempUsageDetail_20' ) start [2025-04-08 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863517', 'tblTempUsageDetail_20' ) end [2025-04-08 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:46:27] Production.INFO: ==587== Releasing lock... [2025-04-08 16:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:46:27] Production.INFO: 64 MB #Memory Used# [2025-04-08 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:47:05 [end_date_ymd] => 2025-04-08 16:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:47:05' and `end` < '2025-04-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-04-08 16:47:19] Production.INFO: count ==4847 [2025-04-08 16:47:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:47:05 - End Time 2025-04-08 16:47:05 [2025-04-08 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863522', 'tblTempUsageDetail_20' ) start [2025-04-08 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863522', 'tblTempUsageDetail_20' ) end [2025-04-08 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863522', 'tblTempVendorCDR_20' ) start [2025-04-08 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863522', 'tblTempVendorCDR_20' ) end [2025-04-08 16:47:21] Production.INFO: ProcessCDR(1,14863522,1,1,2) [2025-04-08 16:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863522', 'tblTempUsageDetail_20' ) start [2025-04-08 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863522', 'tblTempUsageDetail_20' ) end [2025-04-08 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:47:27] Production.INFO: ==706== Releasing lock... [2025-04-08 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:47:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:48:05 [end_date_ymd] => 2025-04-08 16:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:48:05' and `end` < '2025-04-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-04-08 16:48:19] Production.INFO: count ==4852 [2025-04-08 16:48:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:48:05 - End Time 2025-04-08 16:48:05 [2025-04-08 16:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863527', 'tblTempUsageDetail_20' ) start [2025-04-08 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863527', 'tblTempUsageDetail_20' ) end [2025-04-08 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863527', 'tblTempVendorCDR_20' ) start [2025-04-08 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863527', 'tblTempVendorCDR_20' ) end [2025-04-08 16:48:22] Production.INFO: ProcessCDR(1,14863527,1,1,2) [2025-04-08 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863527', 'tblTempUsageDetail_20' ) start [2025-04-08 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863527', 'tblTempUsageDetail_20' ) end [2025-04-08 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:48:27] Production.INFO: ==787== Releasing lock... [2025-04-08 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:48:27] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:49:05 [end_date_ymd] => 2025-04-08 16:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:49:05' and `end` < '2025-04-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-04-08 16:49:19] Production.INFO: count ==4883 [2025-04-08 16:49:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:49:05 - End Time 2025-04-08 16:49:05 [2025-04-08 16:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863532', 'tblTempUsageDetail_20' ) start [2025-04-08 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863532', 'tblTempUsageDetail_20' ) end [2025-04-08 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863532', 'tblTempVendorCDR_20' ) start [2025-04-08 16:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863532', 'tblTempVendorCDR_20' ) end [2025-04-08 16:49:21] Production.INFO: ProcessCDR(1,14863532,1,1,2) [2025-04-08 16:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863532', 'tblTempUsageDetail_20' ) start [2025-04-08 16:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863532', 'tblTempUsageDetail_20' ) end [2025-04-08 16:49:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:49:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:49:26] Production.INFO: ==872== Releasing lock... [2025-04-08 16:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:49:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:50:06 [end_date_ymd] => 2025-04-08 16:50:06 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:50:06' and `end` < '2025-04-08 16: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-04-08 16:50:20] Production.INFO: count ==4885 [2025-04-08 16:50:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:50:06 - End Time 2025-04-08 16:50:06 [2025-04-08 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863538', 'tblTempUsageDetail_20' ) start [2025-04-08 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863538', 'tblTempUsageDetail_20' ) end [2025-04-08 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863538', 'tblTempVendorCDR_20' ) start [2025-04-08 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863538', 'tblTempVendorCDR_20' ) end [2025-04-08 16:50:22] Production.INFO: ProcessCDR(1,14863538,1,1,2) [2025-04-08 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863538', 'tblTempUsageDetail_20' ) start [2025-04-08 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863538', 'tblTempUsageDetail_20' ) end [2025-04-08 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:50:27] Production.INFO: ==958== Releasing lock... [2025-04-08 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:50:27] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 16:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:51:04 [end_date_ymd] => 2025-04-08 16:51:04 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:51:04' and `end` < '2025-04-08 16: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-04-08 16:51:18] Production.INFO: count ==4935 [2025-04-08 16:51:20] Production.ERROR: pbx CDR StartTime 2025-04-08 13:51:04 - End Time 2025-04-08 16:51:04 [2025-04-08 16:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863543', 'tblTempUsageDetail_20' ) start [2025-04-08 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863543', 'tblTempUsageDetail_20' ) end [2025-04-08 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863543', 'tblTempVendorCDR_20' ) start [2025-04-08 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863543', 'tblTempVendorCDR_20' ) end [2025-04-08 16:51:21] Production.INFO: ProcessCDR(1,14863543,1,1,2) [2025-04-08 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863543', 'tblTempUsageDetail_20' ) start [2025-04-08 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863543', 'tblTempUsageDetail_20' ) end [2025-04-08 16:51:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:51:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:51:26] Production.INFO: ==1048== Releasing lock... [2025-04-08 16:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:51:26] Production.INFO: 65 MB #Memory Used# [2025-04-08 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:52:05 [end_date_ymd] => 2025-04-08 16:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:52:05' and `end` < '2025-04-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-04-08 16:52:19] Production.INFO: count ==4926 [2025-04-08 16:52:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:52:05 - End Time 2025-04-08 16:52:05 [2025-04-08 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863548', 'tblTempUsageDetail_20' ) start [2025-04-08 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863548', 'tblTempUsageDetail_20' ) end [2025-04-08 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863548', 'tblTempVendorCDR_20' ) start [2025-04-08 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863548', 'tblTempVendorCDR_20' ) end [2025-04-08 16:52:21] Production.INFO: ProcessCDR(1,14863548,1,1,2) [2025-04-08 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863548', 'tblTempUsageDetail_20' ) start [2025-04-08 16:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863548', 'tblTempUsageDetail_20' ) end [2025-04-08 16:52:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:52:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:52:26] Production.INFO: ==1178== Releasing lock... [2025-04-08 16:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:52:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:53:05 [end_date_ymd] => 2025-04-08 16:53:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:53:05' and `end` < '2025-04-08 16: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-04-08 16:53:19] Production.INFO: count ==4922 [2025-04-08 16:53:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:53:05 - End Time 2025-04-08 16:53:05 [2025-04-08 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863553', 'tblTempUsageDetail_20' ) start [2025-04-08 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863553', 'tblTempUsageDetail_20' ) end [2025-04-08 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863553', 'tblTempVendorCDR_20' ) start [2025-04-08 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863553', 'tblTempVendorCDR_20' ) end [2025-04-08 16:53:22] Production.INFO: ProcessCDR(1,14863553,1,1,2) [2025-04-08 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863553', 'tblTempUsageDetail_20' ) start [2025-04-08 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863553', 'tblTempUsageDetail_20' ) end [2025-04-08 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:53:27] Production.INFO: ==1273== Releasing lock... [2025-04-08 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:53:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:54:04 [end_date_ymd] => 2025-04-08 16:54:04 [RateCDR] => 1 ) [2025-04-08 16:54: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-04-08 13:54:04' and `end` < '2025-04-08 16:54: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-04-08 16:54:18] Production.INFO: count ==4917 [2025-04-08 16:54:20] Production.ERROR: pbx CDR StartTime 2025-04-08 13:54:04 - End Time 2025-04-08 16:54:04 [2025-04-08 16:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863558', 'tblTempUsageDetail_20' ) start [2025-04-08 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863558', 'tblTempUsageDetail_20' ) end [2025-04-08 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863558', 'tblTempVendorCDR_20' ) start [2025-04-08 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863558', 'tblTempVendorCDR_20' ) end [2025-04-08 16:54:21] Production.INFO: ProcessCDR(1,14863558,1,1,2) [2025-04-08 16:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863558', 'tblTempUsageDetail_20' ) start [2025-04-08 16:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863558', 'tblTempUsageDetail_20' ) end [2025-04-08 16:54:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:54:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:54:26] Production.INFO: ==1355== Releasing lock... [2025-04-08 16:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:54:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:55:05 [end_date_ymd] => 2025-04-08 16:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 13:55:05' and `end` < '2025-04-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-04-08 16:55:19] Production.INFO: count ==4906 [2025-04-08 16:55:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:55:05 - End Time 2025-04-08 16:55:05 [2025-04-08 16:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863563', 'tblTempUsageDetail_20' ) start [2025-04-08 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863563', 'tblTempUsageDetail_20' ) end [2025-04-08 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863563', 'tblTempVendorCDR_20' ) start [2025-04-08 16:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863563', 'tblTempVendorCDR_20' ) end [2025-04-08 16:55:21] Production.INFO: ProcessCDR(1,14863563,1,1,2) [2025-04-08 16:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863563', 'tblTempUsageDetail_20' ) start [2025-04-08 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863563', 'tblTempUsageDetail_20' ) end [2025-04-08 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:55:26] Production.INFO: ==1444== Releasing lock... [2025-04-08 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:55:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:56:04 [end_date_ymd] => 2025-04-08 16:56:04 [RateCDR] => 1 ) [2025-04-08 16:56: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-04-08 13:56:04' and `end` < '2025-04-08 16:56: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-04-08 16:56:19] Production.INFO: count ==4882 [2025-04-08 16:56:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:56:04 - End Time 2025-04-08 16:56:04 [2025-04-08 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863568', 'tblTempUsageDetail_20' ) start [2025-04-08 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863568', 'tblTempUsageDetail_20' ) end [2025-04-08 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863568', 'tblTempVendorCDR_20' ) start [2025-04-08 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863568', 'tblTempVendorCDR_20' ) end [2025-04-08 16:56:21] Production.INFO: ProcessCDR(1,14863568,1,1,2) [2025-04-08 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863568', 'tblTempUsageDetail_20' ) start [2025-04-08 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863568', 'tblTempUsageDetail_20' ) end [2025-04-08 16:56:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:56:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:56:26] Production.INFO: ==1554== Releasing lock... [2025-04-08 16:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:56:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:57:05 [end_date_ymd] => 2025-04-08 16:57:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:57:05' and `end` < '2025-04-08 16: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-04-08 16:57:19] Production.INFO: count ==4905 [2025-04-08 16:57:21] Production.ERROR: pbx CDR StartTime 2025-04-08 13:57:05 - End Time 2025-04-08 16:57:05 [2025-04-08 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863573', 'tblTempUsageDetail_20' ) start [2025-04-08 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863573', 'tblTempUsageDetail_20' ) end [2025-04-08 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863573', 'tblTempVendorCDR_20' ) start [2025-04-08 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863573', 'tblTempVendorCDR_20' ) end [2025-04-08 16:57:21] Production.INFO: ProcessCDR(1,14863573,1,1,2) [2025-04-08 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863573', 'tblTempUsageDetail_20' ) start [2025-04-08 16:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863573', 'tblTempUsageDetail_20' ) end [2025-04-08 16:57:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:57:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:57:27] Production.INFO: ==1644== Releasing lock... [2025-04-08 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:57:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:58:06 [end_date_ymd] => 2025-04-08 16:58:06 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:58:06' and `end` < '2025-04-08 16: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-04-08 16:58:19] Production.INFO: count ==4915 [2025-04-08 16:58:22] Production.ERROR: pbx CDR StartTime 2025-04-08 13:58:06 - End Time 2025-04-08 16:58:06 [2025-04-08 16:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863578', 'tblTempUsageDetail_20' ) start [2025-04-08 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863578', 'tblTempUsageDetail_20' ) end [2025-04-08 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863578', 'tblTempVendorCDR_20' ) start [2025-04-08 16:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863578', 'tblTempVendorCDR_20' ) end [2025-04-08 16:58:22] Production.INFO: ProcessCDR(1,14863578,1,1,2) [2025-04-08 16:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863578', 'tblTempUsageDetail_20' ) start [2025-04-08 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863578', 'tblTempUsageDetail_20' ) end [2025-04-08 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:58:27] Production.INFO: ==1734== Releasing lock... [2025-04-08 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:58:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 13:59:05 [end_date_ymd] => 2025-04-08 16:59:05 [RateCDR] => 1 ) [2025-04-08 16: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-04-08 13:59:05' and `end` < '2025-04-08 16: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-04-08 16:59:18] Production.INFO: count ==4897 [2025-04-08 16:59:20] Production.ERROR: pbx CDR StartTime 2025-04-08 13:59:05 - End Time 2025-04-08 16:59:05 [2025-04-08 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863583', 'tblTempUsageDetail_20' ) start [2025-04-08 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863583', 'tblTempUsageDetail_20' ) end [2025-04-08 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863583', 'tblTempVendorCDR_20' ) start [2025-04-08 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863583', 'tblTempVendorCDR_20' ) end [2025-04-08 16:59:21] Production.INFO: ProcessCDR(1,14863583,1,1,2) [2025-04-08 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863583', 'tblTempUsageDetail_20' ) start [2025-04-08 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863583', 'tblTempUsageDetail_20' ) end [2025-04-08 16:59:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 16:59:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 16:59:26] Production.INFO: ==1829== Releasing lock... [2025-04-08 16:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 16:59:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:00:06 [end_date_ymd] => 2025-04-08 17:00:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:00:06' and `end` < '2025-04-08 17: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-04-08 17:00:21] Production.INFO: count ==4910 [2025-04-08 17:00:23] Production.ERROR: pbx CDR StartTime 2025-04-08 14:00:06 - End Time 2025-04-08 17:00:06 [2025-04-08 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863589', 'tblTempUsageDetail_20' ) start [2025-04-08 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863589', 'tblTempUsageDetail_20' ) end [2025-04-08 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863589', 'tblTempVendorCDR_20' ) start [2025-04-08 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863589', 'tblTempVendorCDR_20' ) end [2025-04-08 17:00:23] Production.INFO: ProcessCDR(1,14863589,1,1,2) [2025-04-08 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863589', 'tblTempUsageDetail_20' ) start [2025-04-08 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863589', 'tblTempUsageDetail_20' ) end [2025-04-08 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:00:28] Production.INFO: ==1910== Releasing lock... [2025-04-08 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:00:28] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:01:05 [end_date_ymd] => 2025-04-08 17:01:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:01:05' and `end` < '2025-04-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-04-08 17:01:19] Production.INFO: count ==4926 [2025-04-08 17:01:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:01:05 - End Time 2025-04-08 17:01:05 [2025-04-08 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863594', 'tblTempUsageDetail_20' ) start [2025-04-08 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863594', 'tblTempUsageDetail_20' ) end [2025-04-08 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863594', 'tblTempVendorCDR_20' ) start [2025-04-08 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863594', 'tblTempVendorCDR_20' ) end [2025-04-08 17:01:21] Production.INFO: ProcessCDR(1,14863594,1,1,2) [2025-04-08 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863594', 'tblTempUsageDetail_20' ) start [2025-04-08 17:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863594', 'tblTempUsageDetail_20' ) end [2025-04-08 17:01:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:01:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:01:26] Production.INFO: ==2004== Releasing lock... [2025-04-08 17:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:01:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:02:05 [end_date_ymd] => 2025-04-08 17:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:02:05' and `end` < '2025-04-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-04-08 17:02:19] Production.INFO: count ==4916 [2025-04-08 17:02:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:02:05 - End Time 2025-04-08 17:02:05 [2025-04-08 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863599', 'tblTempUsageDetail_20' ) start [2025-04-08 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863599', 'tblTempUsageDetail_20' ) end [2025-04-08 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863599', 'tblTempVendorCDR_20' ) start [2025-04-08 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863599', 'tblTempVendorCDR_20' ) end [2025-04-08 17:02:21] Production.INFO: ProcessCDR(1,14863599,1,1,2) [2025-04-08 17:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863599', 'tblTempUsageDetail_20' ) start [2025-04-08 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863599', 'tblTempUsageDetail_20' ) end [2025-04-08 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:02:26] Production.INFO: ==2094== Releasing lock... [2025-04-08 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:02:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:03:05 [end_date_ymd] => 2025-04-08 17:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:03:05' and `end` < '2025-04-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-04-08 17:03:19] Production.INFO: count ==4914 [2025-04-08 17:03:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:03:05 - End Time 2025-04-08 17:03:05 [2025-04-08 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863604', 'tblTempUsageDetail_20' ) start [2025-04-08 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863604', 'tblTempUsageDetail_20' ) end [2025-04-08 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863604', 'tblTempVendorCDR_20' ) start [2025-04-08 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863604', 'tblTempVendorCDR_20' ) end [2025-04-08 17:03:21] Production.INFO: ProcessCDR(1,14863604,1,1,2) [2025-04-08 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863604', 'tblTempUsageDetail_20' ) start [2025-04-08 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863604', 'tblTempUsageDetail_20' ) end [2025-04-08 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:03:26] Production.INFO: ==2182== Releasing lock... [2025-04-08 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:03:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:04:06 [end_date_ymd] => 2025-04-08 17:04:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:04:06' and `end` < '2025-04-08 17: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-04-08 17:04:19] Production.INFO: count ==4898 [2025-04-08 17:04:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:04:06 - End Time 2025-04-08 17:04:06 [2025-04-08 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863609', 'tblTempUsageDetail_20' ) start [2025-04-08 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863609', 'tblTempUsageDetail_20' ) end [2025-04-08 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863609', 'tblTempVendorCDR_20' ) start [2025-04-08 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863609', 'tblTempVendorCDR_20' ) end [2025-04-08 17:04:22] Production.INFO: ProcessCDR(1,14863609,1,1,2) [2025-04-08 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863609', 'tblTempUsageDetail_20' ) start [2025-04-08 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863609', 'tblTempUsageDetail_20' ) end [2025-04-08 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:04:27] Production.INFO: ==2262== Releasing lock... [2025-04-08 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:04:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:05:05 [end_date_ymd] => 2025-04-08 17:05:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:05:05' and `end` < '2025-04-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-04-08 17:05:19] Production.INFO: count ==4899 [2025-04-08 17:05:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:05:05 - End Time 2025-04-08 17:05:05 [2025-04-08 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863614', 'tblTempUsageDetail_20' ) start [2025-04-08 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863614', 'tblTempUsageDetail_20' ) end [2025-04-08 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863614', 'tblTempVendorCDR_20' ) start [2025-04-08 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863614', 'tblTempVendorCDR_20' ) end [2025-04-08 17:05:21] Production.INFO: ProcessCDR(1,14863614,1,1,2) [2025-04-08 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863614', 'tblTempUsageDetail_20' ) start [2025-04-08 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863614', 'tblTempUsageDetail_20' ) end [2025-04-08 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:05:26] Production.INFO: ==2345== Releasing lock... [2025-04-08 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:05:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:06:05 [end_date_ymd] => 2025-04-08 17:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:06:05' and `end` < '2025-04-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-04-08 17:06:19] Production.INFO: count ==4906 [2025-04-08 17:06:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:06:05 - End Time 2025-04-08 17:06:05 [2025-04-08 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863619', 'tblTempUsageDetail_20' ) start [2025-04-08 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863619', 'tblTempUsageDetail_20' ) end [2025-04-08 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863619', 'tblTempVendorCDR_20' ) start [2025-04-08 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863619', 'tblTempVendorCDR_20' ) end [2025-04-08 17:06:21] Production.INFO: ProcessCDR(1,14863619,1,1,2) [2025-04-08 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863619', 'tblTempUsageDetail_20' ) start [2025-04-08 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863619', 'tblTempUsageDetail_20' ) end [2025-04-08 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:06:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:06:27] Production.INFO: ==2431== Releasing lock... [2025-04-08 17:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:06:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:07:05 [end_date_ymd] => 2025-04-08 17:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:07:05' and `end` < '2025-04-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-04-08 17:07:19] Production.INFO: count ==4924 [2025-04-08 17:07:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:07:05 - End Time 2025-04-08 17:07:05 [2025-04-08 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863624', 'tblTempUsageDetail_20' ) start [2025-04-08 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863624', 'tblTempUsageDetail_20' ) end [2025-04-08 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863624', 'tblTempVendorCDR_20' ) start [2025-04-08 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863624', 'tblTempVendorCDR_20' ) end [2025-04-08 17:07:21] Production.INFO: ProcessCDR(1,14863624,1,1,2) [2025-04-08 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863624', 'tblTempUsageDetail_20' ) start [2025-04-08 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863624', 'tblTempUsageDetail_20' ) end [2025-04-08 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:07:26] Production.INFO: ==2512== Releasing lock... [2025-04-08 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:07:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:08:06 [end_date_ymd] => 2025-04-08 17:08:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:08:06' and `end` < '2025-04-08 17: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-04-08 17:08:20] Production.INFO: count ==4923 [2025-04-08 17:08:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:08:06 - End Time 2025-04-08 17:08:06 [2025-04-08 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863629', 'tblTempUsageDetail_20' ) start [2025-04-08 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863629', 'tblTempUsageDetail_20' ) end [2025-04-08 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863629', 'tblTempVendorCDR_20' ) start [2025-04-08 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863629', 'tblTempVendorCDR_20' ) end [2025-04-08 17:08:22] Production.INFO: ProcessCDR(1,14863629,1,1,2) [2025-04-08 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863629', 'tblTempUsageDetail_20' ) start [2025-04-08 17:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863629', 'tblTempUsageDetail_20' ) end [2025-04-08 17:08:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:08:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:08:27] Production.INFO: ==2635== Releasing lock... [2025-04-08 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:08:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:09:05 [end_date_ymd] => 2025-04-08 17:09:05 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:09:05' and `end` < '2025-04-08 17: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-04-08 17:09:19] Production.INFO: count ==4914 [2025-04-08 17:09:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:09:05 - End Time 2025-04-08 17:09:05 [2025-04-08 17:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863634', 'tblTempUsageDetail_20' ) start [2025-04-08 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863634', 'tblTempUsageDetail_20' ) end [2025-04-08 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863634', 'tblTempVendorCDR_20' ) start [2025-04-08 17:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863634', 'tblTempVendorCDR_20' ) end [2025-04-08 17:09:21] Production.INFO: ProcessCDR(1,14863634,1,1,2) [2025-04-08 17:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863634', 'tblTempUsageDetail_20' ) start [2025-04-08 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863634', 'tblTempUsageDetail_20' ) end [2025-04-08 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:09:26] Production.INFO: ==2718== Releasing lock... [2025-04-08 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:09:26] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:10:06 [end_date_ymd] => 2025-04-08 17:10:06 [RateCDR] => 1 ) [2025-04-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-04-08 14:10:06' and `end` < '2025-04-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-04-08 17:10:20] Production.INFO: count ==4898 [2025-04-08 17:10:22] Production.ERROR: pbx CDR StartTime 2025-04-08 14:10:06 - End Time 2025-04-08 17:10:06 [2025-04-08 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863640', 'tblTempUsageDetail_20' ) start [2025-04-08 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863640', 'tblTempUsageDetail_20' ) end [2025-04-08 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863640', 'tblTempVendorCDR_20' ) start [2025-04-08 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863640', 'tblTempVendorCDR_20' ) end [2025-04-08 17:10:22] Production.INFO: ProcessCDR(1,14863640,1,1,2) [2025-04-08 17:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863640', 'tblTempUsageDetail_20' ) start [2025-04-08 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863640', 'tblTempUsageDetail_20' ) end [2025-04-08 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:10:27] Production.INFO: ==2800== Releasing lock... [2025-04-08 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:10:27] Production.INFO: 64.75 MB #Memory Used# [2025-04-08 17:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:11:04 [end_date_ymd] => 2025-04-08 17:11:04 [RateCDR] => 1 ) [2025-04-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-04-08 14:11:04' and `end` < '2025-04-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-04-08 17:11:18] Production.INFO: count ==4865 [2025-04-08 17:11:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:11:04 - End Time 2025-04-08 17:11:04 [2025-04-08 17:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863645', 'tblTempUsageDetail_20' ) start [2025-04-08 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863645', 'tblTempUsageDetail_20' ) end [2025-04-08 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863645', 'tblTempVendorCDR_20' ) start [2025-04-08 17:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863645', 'tblTempVendorCDR_20' ) end [2025-04-08 17:11:20] Production.INFO: ProcessCDR(1,14863645,1,1,2) [2025-04-08 17:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863645', 'tblTempUsageDetail_20' ) start [2025-04-08 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863645', 'tblTempUsageDetail_20' ) end [2025-04-08 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:11:26] Production.INFO: ==2888== Releasing lock... [2025-04-08 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:11:26] Production.INFO: 64.5 MB #Memory Used# [2025-04-08 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:12:05 [end_date_ymd] => 2025-04-08 17:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:12:05' and `end` < '2025-04-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-04-08 17:12:19] Production.INFO: count ==4855 [2025-04-08 17:12:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:12:05 - End Time 2025-04-08 17:12:05 [2025-04-08 17:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863650', 'tblTempUsageDetail_20' ) start [2025-04-08 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863650', 'tblTempUsageDetail_20' ) end [2025-04-08 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863650', 'tblTempVendorCDR_20' ) start [2025-04-08 17:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863650', 'tblTempVendorCDR_20' ) end [2025-04-08 17:12:21] Production.INFO: ProcessCDR(1,14863650,1,1,2) [2025-04-08 17:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863650', 'tblTempUsageDetail_20' ) start [2025-04-08 17:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863650', 'tblTempUsageDetail_20' ) end [2025-04-08 17:12:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:12:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:12:26] Production.INFO: ==2974== Releasing lock... [2025-04-08 17:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:12:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:13:05 [end_date_ymd] => 2025-04-08 17:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:13:05' and `end` < '2025-04-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-04-08 17:13:19] Production.INFO: count ==4846 [2025-04-08 17:13:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:13:05 - End Time 2025-04-08 17:13:05 [2025-04-08 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863655', 'tblTempUsageDetail_20' ) start [2025-04-08 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863655', 'tblTempUsageDetail_20' ) end [2025-04-08 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863655', 'tblTempVendorCDR_20' ) start [2025-04-08 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863655', 'tblTempVendorCDR_20' ) end [2025-04-08 17:13:21] Production.INFO: ProcessCDR(1,14863655,1,1,2) [2025-04-08 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863655', 'tblTempUsageDetail_20' ) start [2025-04-08 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863655', 'tblTempUsageDetail_20' ) end [2025-04-08 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:13:26] Production.INFO: ==3062== Releasing lock... [2025-04-08 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:13:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:14:05 [end_date_ymd] => 2025-04-08 17:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:14:05' and `end` < '2025-04-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-04-08 17:14:19] Production.INFO: count ==4846 [2025-04-08 17:14:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:14:05 - End Time 2025-04-08 17:14:05 [2025-04-08 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863660', 'tblTempUsageDetail_20' ) start [2025-04-08 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863660', 'tblTempUsageDetail_20' ) end [2025-04-08 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863660', 'tblTempVendorCDR_20' ) start [2025-04-08 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863660', 'tblTempVendorCDR_20' ) end [2025-04-08 17:14:21] Production.INFO: ProcessCDR(1,14863660,1,1,2) [2025-04-08 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863660', 'tblTempUsageDetail_20' ) start [2025-04-08 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863660', 'tblTempUsageDetail_20' ) end [2025-04-08 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:14:26] Production.INFO: ==3150== Releasing lock... [2025-04-08 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:14:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 17:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:15:05 [end_date_ymd] => 2025-04-08 17:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:15:05' and `end` < '2025-04-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-04-08 17:15:19] Production.INFO: count ==4841 [2025-04-08 17:15:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:15:05 - End Time 2025-04-08 17:15:05 [2025-04-08 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863665', 'tblTempUsageDetail_20' ) start [2025-04-08 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863665', 'tblTempUsageDetail_20' ) end [2025-04-08 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863665', 'tblTempVendorCDR_20' ) start [2025-04-08 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863665', 'tblTempVendorCDR_20' ) end [2025-04-08 17:15:21] Production.INFO: ProcessCDR(1,14863665,1,1,2) [2025-04-08 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863665', 'tblTempUsageDetail_20' ) start [2025-04-08 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863665', 'tblTempUsageDetail_20' ) end [2025-04-08 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:15:26] Production.INFO: ==3235== Releasing lock... [2025-04-08 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:15:26] Production.INFO: 64.25 MB #Memory Used# [2025-04-08 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:16:05 [end_date_ymd] => 2025-04-08 17:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:16:05' and `end` < '2025-04-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-04-08 17:16:19] Production.INFO: count ==4818 [2025-04-08 17:16:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:16:05 - End Time 2025-04-08 17:16:05 [2025-04-08 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863670', 'tblTempUsageDetail_20' ) start [2025-04-08 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863670', 'tblTempUsageDetail_20' ) end [2025-04-08 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863670', 'tblTempVendorCDR_20' ) start [2025-04-08 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863670', 'tblTempVendorCDR_20' ) end [2025-04-08 17:16:21] Production.INFO: ProcessCDR(1,14863670,1,1,2) [2025-04-08 17:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863670', 'tblTempUsageDetail_20' ) start [2025-04-08 17:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863670', 'tblTempUsageDetail_20' ) end [2025-04-08 17:16:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:16:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:16:26] Production.INFO: ==3314== Releasing lock... [2025-04-08 17:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:16:26] Production.INFO: 64 MB #Memory Used# [2025-04-08 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:17:06 [end_date_ymd] => 2025-04-08 17:17:06 [RateCDR] => 1 ) [2025-04-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-04-08 14:17:06' and `end` < '2025-04-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-04-08 17:17:19] Production.INFO: count ==4807 [2025-04-08 17:17:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:17:06 - End Time 2025-04-08 17:17:06 [2025-04-08 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863675', 'tblTempUsageDetail_20' ) start [2025-04-08 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863675', 'tblTempUsageDetail_20' ) end [2025-04-08 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863675', 'tblTempVendorCDR_20' ) start [2025-04-08 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863675', 'tblTempVendorCDR_20' ) end [2025-04-08 17:17:21] Production.INFO: ProcessCDR(1,14863675,1,1,2) [2025-04-08 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863675', 'tblTempUsageDetail_20' ) start [2025-04-08 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863675', 'tblTempUsageDetail_20' ) end [2025-04-08 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:17:26] Production.INFO: ==3393== Releasing lock... [2025-04-08 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:17:26] Production.INFO: 64 MB #Memory Used# [2025-04-08 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:18:05 [end_date_ymd] => 2025-04-08 17:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:18:05' and `end` < '2025-04-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-04-08 17:18:19] Production.INFO: count ==4804 [2025-04-08 17:18:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:18:05 - End Time 2025-04-08 17:18:05 [2025-04-08 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863680', 'tblTempUsageDetail_20' ) start [2025-04-08 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863680', 'tblTempUsageDetail_20' ) end [2025-04-08 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863680', 'tblTempVendorCDR_20' ) start [2025-04-08 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863680', 'tblTempVendorCDR_20' ) end [2025-04-08 17:18:21] Production.INFO: ProcessCDR(1,14863680,1,1,2) [2025-04-08 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863680', 'tblTempUsageDetail_20' ) start [2025-04-08 17:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863680', 'tblTempUsageDetail_20' ) end [2025-04-08 17:18:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:18:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:18:26] Production.INFO: ==3495== Releasing lock... [2025-04-08 17:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:18:26] Production.INFO: 64 MB #Memory Used# [2025-04-08 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:19:05 [end_date_ymd] => 2025-04-08 17:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:19:05' and `end` < '2025-04-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-04-08 17:19:19] Production.INFO: count ==4794 [2025-04-08 17:19:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:19:05 - End Time 2025-04-08 17:19:05 [2025-04-08 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863685', 'tblTempUsageDetail_20' ) start [2025-04-08 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863685', 'tblTempUsageDetail_20' ) end [2025-04-08 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863685', 'tblTempVendorCDR_20' ) start [2025-04-08 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863685', 'tblTempVendorCDR_20' ) end [2025-04-08 17:19:21] Production.INFO: ProcessCDR(1,14863685,1,1,2) [2025-04-08 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863685', 'tblTempUsageDetail_20' ) start [2025-04-08 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863685', 'tblTempUsageDetail_20' ) end [2025-04-08 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:19:26] Production.INFO: ==3581== Releasing lock... [2025-04-08 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:19:26] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:20:06 [end_date_ymd] => 2025-04-08 17:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 14:20:06' and `end` < '2025-04-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-04-08 17:20:20] Production.INFO: count ==4791 [2025-04-08 17:20:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:20:06 - End Time 2025-04-08 17:20:06 [2025-04-08 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863691', 'tblTempUsageDetail_20' ) start [2025-04-08 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863691', 'tblTempUsageDetail_20' ) end [2025-04-08 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863691', 'tblTempVendorCDR_20' ) start [2025-04-08 17:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863691', 'tblTempVendorCDR_20' ) end [2025-04-08 17:20:22] Production.INFO: ProcessCDR(1,14863691,1,1,2) [2025-04-08 17:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863691', 'tblTempUsageDetail_20' ) start [2025-04-08 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863691', 'tblTempUsageDetail_20' ) end [2025-04-08 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:20:27] Production.INFO: ==3659== Releasing lock... [2025-04-08 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:20:27] Production.INFO: 63.75 MB #Memory Used# [2025-04-08 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:21:05 [end_date_ymd] => 2025-04-08 17:21:05 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:21:05' and `end` < '2025-04-08 17: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-04-08 17:21:19] Production.INFO: count ==4722 [2025-04-08 17:21:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:21:05 - End Time 2025-04-08 17:21:05 [2025-04-08 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863696', 'tblTempUsageDetail_20' ) start [2025-04-08 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863696', 'tblTempUsageDetail_20' ) end [2025-04-08 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863696', 'tblTempVendorCDR_20' ) start [2025-04-08 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863696', 'tblTempVendorCDR_20' ) end [2025-04-08 17:21:21] Production.INFO: ProcessCDR(1,14863696,1,1,2) [2025-04-08 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863696', 'tblTempUsageDetail_20' ) start [2025-04-08 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863696', 'tblTempUsageDetail_20' ) end [2025-04-08 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:21:26] Production.INFO: ==3743== Releasing lock... [2025-04-08 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:21:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:22:05 [end_date_ymd] => 2025-04-08 17:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:22:05' and `end` < '2025-04-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-04-08 17:22:18] Production.INFO: count ==4698 [2025-04-08 17:22:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:22:05 - End Time 2025-04-08 17:22:05 [2025-04-08 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863701', 'tblTempUsageDetail_20' ) start [2025-04-08 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863701', 'tblTempUsageDetail_20' ) end [2025-04-08 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863701', 'tblTempVendorCDR_20' ) start [2025-04-08 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863701', 'tblTempVendorCDR_20' ) end [2025-04-08 17:22:20] Production.INFO: ProcessCDR(1,14863701,1,1,2) [2025-04-08 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863701', 'tblTempUsageDetail_20' ) start [2025-04-08 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863701', 'tblTempUsageDetail_20' ) end [2025-04-08 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:22:26] Production.INFO: ==3819== Releasing lock... [2025-04-08 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:22:26] Production.INFO: 63.25 MB #Memory Used# [2025-04-08 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:23:05 [end_date_ymd] => 2025-04-08 17:23:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:23:05' and `end` < '2025-04-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-04-08 17:23:19] Production.INFO: count ==4675 [2025-04-08 17:23:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:23:05 - End Time 2025-04-08 17:23:05 [2025-04-08 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863706', 'tblTempUsageDetail_20' ) start [2025-04-08 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863706', 'tblTempUsageDetail_20' ) end [2025-04-08 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863706', 'tblTempVendorCDR_20' ) start [2025-04-08 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863706', 'tblTempVendorCDR_20' ) end [2025-04-08 17:23:21] Production.INFO: ProcessCDR(1,14863706,1,1,2) [2025-04-08 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863706', 'tblTempUsageDetail_20' ) start [2025-04-08 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863706', 'tblTempUsageDetail_20' ) end [2025-04-08 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:23:26] Production.INFO: ==3956== Releasing lock... [2025-04-08 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:23:26] Production.INFO: 63 MB #Memory Used# [2025-04-08 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:24:05 [end_date_ymd] => 2025-04-08 17:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:24:05' and `end` < '2025-04-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-04-08 17:24:19] Production.INFO: count ==4659 [2025-04-08 17:24:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:24:05 - End Time 2025-04-08 17:24:05 [2025-04-08 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863711', 'tblTempUsageDetail_20' ) start [2025-04-08 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863711', 'tblTempUsageDetail_20' ) end [2025-04-08 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863711', 'tblTempVendorCDR_20' ) start [2025-04-08 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863711', 'tblTempVendorCDR_20' ) end [2025-04-08 17:24:21] Production.INFO: ProcessCDR(1,14863711,1,1,2) [2025-04-08 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863711', 'tblTempUsageDetail_20' ) start [2025-04-08 17:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863711', 'tblTempUsageDetail_20' ) end [2025-04-08 17:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:24:24] Production.INFO: ==4090== Releasing lock... [2025-04-08 17:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:24:24] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:25:05 [end_date_ymd] => 2025-04-08 17:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:25:05' and `end` < '2025-04-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-04-08 17:25:18] Production.INFO: count ==4638 [2025-04-08 17:25:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:25:05 - End Time 2025-04-08 17:25:05 [2025-04-08 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863716', 'tblTempUsageDetail_20' ) start [2025-04-08 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863716', 'tblTempUsageDetail_20' ) end [2025-04-08 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863716', 'tblTempVendorCDR_20' ) start [2025-04-08 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863716', 'tblTempVendorCDR_20' ) end [2025-04-08 17:25:20] Production.INFO: ProcessCDR(1,14863716,1,1,2) [2025-04-08 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863716', 'tblTempUsageDetail_20' ) start [2025-04-08 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863716', 'tblTempUsageDetail_20' ) end [2025-04-08 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:25:25] Production.INFO: ==4216== Releasing lock... [2025-04-08 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:25:25] Production.INFO: 62.75 MB #Memory Used# [2025-04-08 17:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:26:05 [end_date_ymd] => 2025-04-08 17:26:05 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:26:05' and `end` < '2025-04-08 17: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-04-08 17:26:19] Production.INFO: count ==4606 [2025-04-08 17:26:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:26:05 - End Time 2025-04-08 17:26:05 [2025-04-08 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863721', 'tblTempUsageDetail_20' ) start [2025-04-08 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863721', 'tblTempUsageDetail_20' ) end [2025-04-08 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863721', 'tblTempVendorCDR_20' ) start [2025-04-08 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863721', 'tblTempVendorCDR_20' ) end [2025-04-08 17:26:21] Production.INFO: ProcessCDR(1,14863721,1,1,2) [2025-04-08 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863721', 'tblTempUsageDetail_20' ) start [2025-04-08 17:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863721', 'tblTempUsageDetail_20' ) end [2025-04-08 17:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:26:24] Production.INFO: ==4342== Releasing lock... [2025-04-08 17:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:26:24] Production.INFO: 62.5 MB #Memory Used# [2025-04-08 17:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:27:04 [end_date_ymd] => 2025-04-08 17:27:04 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:27:04' and `end` < '2025-04-08 17: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-04-08 17:27:18] Production.INFO: count ==4590 [2025-04-08 17:27:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:27:04 - End Time 2025-04-08 17:27:04 [2025-04-08 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863726', 'tblTempUsageDetail_20' ) start [2025-04-08 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863726', 'tblTempUsageDetail_20' ) end [2025-04-08 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863726', 'tblTempVendorCDR_20' ) start [2025-04-08 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863726', 'tblTempVendorCDR_20' ) end [2025-04-08 17:27:20] Production.INFO: ProcessCDR(1,14863726,1,1,2) [2025-04-08 17:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863726', 'tblTempUsageDetail_20' ) start [2025-04-08 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863726', 'tblTempUsageDetail_20' ) end [2025-04-08 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:27:25] Production.INFO: ==4475== Releasing lock... [2025-04-08 17:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:27:25] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 17:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:28:06 [end_date_ymd] => 2025-04-08 17:28:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:28:06' and `end` < '2025-04-08 17: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-04-08 17:28:20] Production.INFO: count ==4569 [2025-04-08 17:28:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:28:06 - End Time 2025-04-08 17:28:06 [2025-04-08 17:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863731', 'tblTempUsageDetail_20' ) start [2025-04-08 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863731', 'tblTempUsageDetail_20' ) end [2025-04-08 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863731', 'tblTempVendorCDR_20' ) start [2025-04-08 17:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863731', 'tblTempVendorCDR_20' ) end [2025-04-08 17:28:21] Production.INFO: ProcessCDR(1,14863731,1,1,2) [2025-04-08 17:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863731', 'tblTempUsageDetail_20' ) start [2025-04-08 17:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863731', 'tblTempUsageDetail_20' ) end [2025-04-08 17:28:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:28:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:28:27] Production.INFO: ==4617== Releasing lock... [2025-04-08 17:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:28:27] Production.INFO: 62.25 MB #Memory Used# [2025-04-08 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:29:05 [end_date_ymd] => 2025-04-08 17:29:05 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:29:05' and `end` < '2025-04-08 17: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-04-08 17:29:19] Production.INFO: count ==4561 [2025-04-08 17:29:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:29:05 - End Time 2025-04-08 17:29:05 [2025-04-08 17:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863736', 'tblTempUsageDetail_20' ) start [2025-04-08 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863736', 'tblTempUsageDetail_20' ) end [2025-04-08 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863736', 'tblTempVendorCDR_20' ) start [2025-04-08 17:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863736', 'tblTempVendorCDR_20' ) end [2025-04-08 17:29:21] Production.INFO: ProcessCDR(1,14863736,1,1,2) [2025-04-08 17:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863736', 'tblTempUsageDetail_20' ) start [2025-04-08 17:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863736', 'tblTempUsageDetail_20' ) end [2025-04-08 17:29:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:29:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:29:24] Production.INFO: ==4744== Releasing lock... [2025-04-08 17:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:29:24] Production.INFO: 62 MB #Memory Used# [2025-04-08 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:30:06 [end_date_ymd] => 2025-04-08 17:30:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:30:06' and `end` < '2025-04-08 17: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-04-08 17:30:20] Production.INFO: count ==4542 [2025-04-08 17:30:22] Production.ERROR: pbx CDR StartTime 2025-04-08 14:30:06 - End Time 2025-04-08 17:30:06 [2025-04-08 17:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863742', 'tblTempUsageDetail_20' ) start [2025-04-08 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863742', 'tblTempUsageDetail_20' ) end [2025-04-08 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863742', 'tblTempVendorCDR_20' ) start [2025-04-08 17:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863742', 'tblTempVendorCDR_20' ) end [2025-04-08 17:30:22] Production.INFO: ProcessCDR(1,14863742,1,1,2) [2025-04-08 17:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863742', 'tblTempUsageDetail_20' ) start [2025-04-08 17:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863742', 'tblTempUsageDetail_20' ) end [2025-04-08 17:30:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:30:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:30:27] Production.INFO: ==4873== Releasing lock... [2025-04-08 17:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:30:27] Production.INFO: 62 MB #Memory Used# [2025-04-08 17:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:31:04 [end_date_ymd] => 2025-04-08 17:31:04 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:31:04' and `end` < '2025-04-08 17: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-04-08 17:31:18] Production.INFO: count ==4477 [2025-04-08 17:31:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:31:04 - End Time 2025-04-08 17:31:04 [2025-04-08 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863747', 'tblTempUsageDetail_20' ) start [2025-04-08 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863747', 'tblTempUsageDetail_20' ) end [2025-04-08 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863747', 'tblTempVendorCDR_20' ) start [2025-04-08 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863747', 'tblTempVendorCDR_20' ) end [2025-04-08 17:31:20] Production.INFO: ProcessCDR(1,14863747,1,1,2) [2025-04-08 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863747', 'tblTempUsageDetail_20' ) start [2025-04-08 17:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863747', 'tblTempUsageDetail_20' ) end [2025-04-08 17:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:31:23] Production.INFO: ==5007== Releasing lock... [2025-04-08 17:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:31:23] Production.INFO: 61.5 MB #Memory Used# [2025-04-08 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:32:05 [end_date_ymd] => 2025-04-08 17:32:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:32:05' and `end` < '2025-04-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-04-08 17:32:19] Production.INFO: count ==4455 [2025-04-08 17:32:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:32:05 - End Time 2025-04-08 17:32:05 [2025-04-08 17:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863752', 'tblTempUsageDetail_20' ) start [2025-04-08 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863752', 'tblTempUsageDetail_20' ) end [2025-04-08 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863752', 'tblTempVendorCDR_20' ) start [2025-04-08 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863752', 'tblTempVendorCDR_20' ) end [2025-04-08 17:32:21] Production.INFO: ProcessCDR(1,14863752,1,1,2) [2025-04-08 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863752', 'tblTempUsageDetail_20' ) start [2025-04-08 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863752', 'tblTempUsageDetail_20' ) end [2025-04-08 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:32:26] Production.INFO: ==5145== Releasing lock... [2025-04-08 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:32:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-08 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:33:05 [end_date_ymd] => 2025-04-08 17:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:33:05' and `end` < '2025-04-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-04-08 17:33:19] Production.INFO: count ==4437 [2025-04-08 17:33:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:33:05 - End Time 2025-04-08 17:33:05 [2025-04-08 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863757', 'tblTempUsageDetail_20' ) start [2025-04-08 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863757', 'tblTempUsageDetail_20' ) end [2025-04-08 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863757', 'tblTempVendorCDR_20' ) start [2025-04-08 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863757', 'tblTempVendorCDR_20' ) end [2025-04-08 17:33:20] Production.INFO: ProcessCDR(1,14863757,1,1,2) [2025-04-08 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863757', 'tblTempUsageDetail_20' ) start [2025-04-08 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863757', 'tblTempUsageDetail_20' ) end [2025-04-08 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:33:25] Production.INFO: ==5254== Releasing lock... [2025-04-08 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:33:25] Production.INFO: 61.25 MB #Memory Used# [2025-04-08 17:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:34:05 [end_date_ymd] => 2025-04-08 17:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:34:05' and `end` < '2025-04-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-04-08 17:34:19] Production.INFO: count ==4429 [2025-04-08 17:34:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:34:05 - End Time 2025-04-08 17:34:05 [2025-04-08 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863762', 'tblTempUsageDetail_20' ) start [2025-04-08 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863762', 'tblTempUsageDetail_20' ) end [2025-04-08 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863762', 'tblTempVendorCDR_20' ) start [2025-04-08 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863762', 'tblTempVendorCDR_20' ) end [2025-04-08 17:34:20] Production.INFO: ProcessCDR(1,14863762,1,1,2) [2025-04-08 17:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863762', 'tblTempUsageDetail_20' ) start [2025-04-08 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863762', 'tblTempUsageDetail_20' ) end [2025-04-08 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:34:26] Production.INFO: ==5328== Releasing lock... [2025-04-08 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:34:26] Production.INFO: 61.25 MB #Memory Used# [2025-04-08 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:35:05 [end_date_ymd] => 2025-04-08 17:35:05 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:35:05' and `end` < '2025-04-08 17: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-04-08 17:35:19] Production.INFO: count ==4424 [2025-04-08 17:35:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:35:05 - End Time 2025-04-08 17:35:05 [2025-04-08 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863767', 'tblTempUsageDetail_20' ) start [2025-04-08 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863767', 'tblTempUsageDetail_20' ) end [2025-04-08 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863767', 'tblTempVendorCDR_20' ) start [2025-04-08 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863767', 'tblTempVendorCDR_20' ) end [2025-04-08 17:35:21] Production.INFO: ProcessCDR(1,14863767,1,1,2) [2025-04-08 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863767', 'tblTempUsageDetail_20' ) start [2025-04-08 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863767', 'tblTempUsageDetail_20' ) end [2025-04-08 17:35:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:35:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:35:26] Production.INFO: ==5412== Releasing lock... [2025-04-08 17:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:35:26] Production.INFO: 61 MB #Memory Used# [2025-04-08 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:36:06 [end_date_ymd] => 2025-04-08 17:36:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:36:06' and `end` < '2025-04-08 17: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-04-08 17:36:19] Production.INFO: count ==4409 [2025-04-08 17:36:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:36:06 - End Time 2025-04-08 17:36:06 [2025-04-08 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863772', 'tblTempUsageDetail_20' ) start [2025-04-08 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863772', 'tblTempUsageDetail_20' ) end [2025-04-08 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863772', 'tblTempVendorCDR_20' ) start [2025-04-08 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863772', 'tblTempVendorCDR_20' ) end [2025-04-08 17:36:21] Production.INFO: ProcessCDR(1,14863772,1,1,2) [2025-04-08 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863772', 'tblTempUsageDetail_20' ) start [2025-04-08 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863772', 'tblTempUsageDetail_20' ) end [2025-04-08 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:36:24] Production.INFO: ==5492== Releasing lock... [2025-04-08 17:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:36:24] Production.INFO: 61 MB #Memory Used# [2025-04-08 17:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:37:06 [end_date_ymd] => 2025-04-08 17:37:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:37:06' and `end` < '2025-04-08 17: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-04-08 17:37:19] Production.INFO: count ==4405 [2025-04-08 17:37:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:37:06 - End Time 2025-04-08 17:37:06 [2025-04-08 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863777', 'tblTempUsageDetail_20' ) start [2025-04-08 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863777', 'tblTempUsageDetail_20' ) end [2025-04-08 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863777', 'tblTempVendorCDR_20' ) start [2025-04-08 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863777', 'tblTempVendorCDR_20' ) end [2025-04-08 17:37:21] Production.INFO: ProcessCDR(1,14863777,1,1,2) [2025-04-08 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863777', 'tblTempUsageDetail_20' ) start [2025-04-08 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863777', 'tblTempUsageDetail_20' ) end [2025-04-08 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:37:26] Production.INFO: ==5578== Releasing lock... [2025-04-08 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:37:26] Production.INFO: 61 MB #Memory Used# [2025-04-08 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:38:05 [end_date_ymd] => 2025-04-08 17:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:38:05' and `end` < '2025-04-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-04-08 17:38:19] Production.INFO: count ==4407 [2025-04-08 17:38:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:38:05 - End Time 2025-04-08 17:38:05 [2025-04-08 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863782', 'tblTempUsageDetail_20' ) start [2025-04-08 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863782', 'tblTempUsageDetail_20' ) end [2025-04-08 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863782', 'tblTempVendorCDR_20' ) start [2025-04-08 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863782', 'tblTempVendorCDR_20' ) end [2025-04-08 17:38:21] Production.INFO: ProcessCDR(1,14863782,1,1,2) [2025-04-08 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863782', 'tblTempUsageDetail_20' ) start [2025-04-08 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863782', 'tblTempUsageDetail_20' ) end [2025-04-08 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:38:26] Production.INFO: ==5656== Releasing lock... [2025-04-08 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:38:26] Production.INFO: 61 MB #Memory Used# [2025-04-08 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:39:05 [end_date_ymd] => 2025-04-08 17:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:39:05' and `end` < '2025-04-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-04-08 17:39:19] Production.INFO: count ==4410 [2025-04-08 17:39:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:39:05 - End Time 2025-04-08 17:39:05 [2025-04-08 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863787', 'tblTempUsageDetail_20' ) start [2025-04-08 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863787', 'tblTempUsageDetail_20' ) end [2025-04-08 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863787', 'tblTempVendorCDR_20' ) start [2025-04-08 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863787', 'tblTempVendorCDR_20' ) end [2025-04-08 17:39:21] Production.INFO: ProcessCDR(1,14863787,1,1,2) [2025-04-08 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863787', 'tblTempUsageDetail_20' ) start [2025-04-08 17:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863787', 'tblTempUsageDetail_20' ) end [2025-04-08 17:39:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:39:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:39:27] Production.INFO: ==5771== Releasing lock... [2025-04-08 17:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:39:27] Production.INFO: 61 MB #Memory Used# [2025-04-08 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:40:06 [end_date_ymd] => 2025-04-08 17:40:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:40:06' and `end` < '2025-04-08 17: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-04-08 17:40:19] Production.INFO: count ==4407 [2025-04-08 17:40:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:40:06 - End Time 2025-04-08 17:40:06 [2025-04-08 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863793', 'tblTempUsageDetail_20' ) start [2025-04-08 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863793', 'tblTempUsageDetail_20' ) end [2025-04-08 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863793', 'tblTempVendorCDR_20' ) start [2025-04-08 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863793', 'tblTempVendorCDR_20' ) end [2025-04-08 17:40:21] Production.INFO: ProcessCDR(1,14863793,1,1,2) [2025-04-08 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863793', 'tblTempUsageDetail_20' ) start [2025-04-08 17:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863793', 'tblTempUsageDetail_20' ) end [2025-04-08 17:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:40:24] Production.INFO: ==5861== Releasing lock... [2025-04-08 17:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:40:24] Production.INFO: 61 MB #Memory Used# [2025-04-08 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:41:05 [end_date_ymd] => 2025-04-08 17:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:41:05' and `end` < '2025-04-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-04-08 17:41:19] Production.INFO: count ==4379 [2025-04-08 17:41:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:41:05 - End Time 2025-04-08 17:41:05 [2025-04-08 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863798', 'tblTempUsageDetail_20' ) start [2025-04-08 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863798', 'tblTempUsageDetail_20' ) end [2025-04-08 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863798', 'tblTempVendorCDR_20' ) start [2025-04-08 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863798', 'tblTempVendorCDR_20' ) end [2025-04-08 17:41:20] Production.INFO: ProcessCDR(1,14863798,1,1,2) [2025-04-08 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863798', 'tblTempUsageDetail_20' ) start [2025-04-08 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863798', 'tblTempUsageDetail_20' ) end [2025-04-08 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:41:25] Production.INFO: ==5951== Releasing lock... [2025-04-08 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:41:25] Production.INFO: 60.75 MB #Memory Used# [2025-04-08 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:42:05 [end_date_ymd] => 2025-04-08 17:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:42:05' and `end` < '2025-04-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-04-08 17:42:18] Production.INFO: count ==4356 [2025-04-08 17:42:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:42:05 - End Time 2025-04-08 17:42:05 [2025-04-08 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863803', 'tblTempUsageDetail_20' ) start [2025-04-08 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863803', 'tblTempUsageDetail_20' ) end [2025-04-08 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863803', 'tblTempVendorCDR_20' ) start [2025-04-08 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863803', 'tblTempVendorCDR_20' ) end [2025-04-08 17:42:20] Production.INFO: ProcessCDR(1,14863803,1,1,2) [2025-04-08 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863803', 'tblTempUsageDetail_20' ) start [2025-04-08 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863803', 'tblTempUsageDetail_20' ) end [2025-04-08 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:42:25] Production.INFO: ==6029== Releasing lock... [2025-04-08 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:42:25] Production.INFO: 60.5 MB #Memory Used# [2025-04-08 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:43:05 [end_date_ymd] => 2025-04-08 17:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:43:05' and `end` < '2025-04-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-04-08 17:43:19] Production.INFO: count ==4342 [2025-04-08 17:43:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:43:05 - End Time 2025-04-08 17:43:05 [2025-04-08 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863808', 'tblTempUsageDetail_20' ) start [2025-04-08 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863808', 'tblTempUsageDetail_20' ) end [2025-04-08 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863808', 'tblTempVendorCDR_20' ) start [2025-04-08 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863808', 'tblTempVendorCDR_20' ) end [2025-04-08 17:43:20] Production.INFO: ProcessCDR(1,14863808,1,1,2) [2025-04-08 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863808', 'tblTempUsageDetail_20' ) start [2025-04-08 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863808', 'tblTempUsageDetail_20' ) end [2025-04-08 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:43:26] Production.INFO: ==6107== Releasing lock... [2025-04-08 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:43:26] Production.INFO: 60.5 MB #Memory Used# [2025-04-08 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:44:06 [end_date_ymd] => 2025-04-08 17:44:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:44:06' and `end` < '2025-04-08 17: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-04-08 17:44:20] Production.INFO: count ==4307 [2025-04-08 17:44:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:44:06 - End Time 2025-04-08 17:44:06 [2025-04-08 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863813', 'tblTempUsageDetail_20' ) start [2025-04-08 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863813', 'tblTempUsageDetail_20' ) end [2025-04-08 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863813', 'tblTempVendorCDR_20' ) start [2025-04-08 17:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863813', 'tblTempVendorCDR_20' ) end [2025-04-08 17:44:22] Production.INFO: ProcessCDR(1,14863813,1,1,2) [2025-04-08 17:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863813', 'tblTempUsageDetail_20' ) start [2025-04-08 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863813', 'tblTempUsageDetail_20' ) end [2025-04-08 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:44:27] Production.INFO: ==6194== Releasing lock... [2025-04-08 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:44:27] Production.INFO: 60.25 MB #Memory Used# [2025-04-08 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:45:05 [end_date_ymd] => 2025-04-08 17:45:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:45:05' and `end` < '2025-04-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-04-08 17:45:19] Production.INFO: count ==4291 [2025-04-08 17:45:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:45:05 - End Time 2025-04-08 17:45:05 [2025-04-08 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863818', 'tblTempUsageDetail_20' ) start [2025-04-08 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863818', 'tblTempUsageDetail_20' ) end [2025-04-08 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863818', 'tblTempVendorCDR_20' ) start [2025-04-08 17:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863818', 'tblTempVendorCDR_20' ) end [2025-04-08 17:45:21] Production.INFO: ProcessCDR(1,14863818,1,1,2) [2025-04-08 17:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863818', 'tblTempUsageDetail_20' ) start [2025-04-08 17:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863818', 'tblTempUsageDetail_20' ) end [2025-04-08 17:45:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:45:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:45:26] Production.INFO: ==6270== Releasing lock... [2025-04-08 17:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:45:26] Production.INFO: 60 MB #Memory Used# [2025-04-08 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:46:06 [end_date_ymd] => 2025-04-08 17:46:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:46:06' and `end` < '2025-04-08 17: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-04-08 17:46:19] Production.INFO: count ==4294 [2025-04-08 17:46:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:46:06 - End Time 2025-04-08 17:46:06 [2025-04-08 17:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863823', 'tblTempUsageDetail_20' ) start [2025-04-08 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863823', 'tblTempUsageDetail_20' ) end [2025-04-08 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863823', 'tblTempVendorCDR_20' ) start [2025-04-08 17:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863823', 'tblTempVendorCDR_20' ) end [2025-04-08 17:46:21] Production.INFO: ProcessCDR(1,14863823,1,1,2) [2025-04-08 17:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863823', 'tblTempUsageDetail_20' ) start [2025-04-08 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863823', 'tblTempUsageDetail_20' ) end [2025-04-08 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:46:25] Production.INFO: ==6349== Releasing lock... [2025-04-08 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:46:25] Production.INFO: 60 MB #Memory Used# [2025-04-08 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:47:05 [end_date_ymd] => 2025-04-08 17:47:05 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:47:05' and `end` < '2025-04-08 17: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-04-08 17:47:19] Production.INFO: count ==4272 [2025-04-08 17:47:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:47:05 - End Time 2025-04-08 17:47:05 [2025-04-08 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863828', 'tblTempUsageDetail_20' ) start [2025-04-08 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863828', 'tblTempUsageDetail_20' ) end [2025-04-08 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863828', 'tblTempVendorCDR_20' ) start [2025-04-08 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863828', 'tblTempVendorCDR_20' ) end [2025-04-08 17:47:20] Production.INFO: ProcessCDR(1,14863828,1,1,2) [2025-04-08 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863828', 'tblTempUsageDetail_20' ) start [2025-04-08 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863828', 'tblTempUsageDetail_20' ) end [2025-04-08 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:47:26] Production.INFO: ==6425== Releasing lock... [2025-04-08 17:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:47:26] Production.INFO: 60 MB #Memory Used# [2025-04-08 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:48:05 [end_date_ymd] => 2025-04-08 17:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:48:05' and `end` < '2025-04-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-04-08 17:48:19] Production.INFO: count ==4268 [2025-04-08 17:48:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:48:05 - End Time 2025-04-08 17:48:05 [2025-04-08 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863833', 'tblTempUsageDetail_20' ) start [2025-04-08 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863833', 'tblTempUsageDetail_20' ) end [2025-04-08 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863833', 'tblTempVendorCDR_20' ) start [2025-04-08 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863833', 'tblTempVendorCDR_20' ) end [2025-04-08 17:48:20] Production.INFO: ProcessCDR(1,14863833,1,1,2) [2025-04-08 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863833', 'tblTempUsageDetail_20' ) start [2025-04-08 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863833', 'tblTempUsageDetail_20' ) end [2025-04-08 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:48:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:48:26] Production.INFO: ==6501== Releasing lock... [2025-04-08 17:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:48:26] Production.INFO: 60 MB #Memory Used# [2025-04-08 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:49:05 [end_date_ymd] => 2025-04-08 17:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:49:05' and `end` < '2025-04-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-04-08 17:49:18] Production.INFO: count ==4263 [2025-04-08 17:49:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:49:05 - End Time 2025-04-08 17:49:05 [2025-04-08 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863838', 'tblTempUsageDetail_20' ) start [2025-04-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863838', 'tblTempUsageDetail_20' ) end [2025-04-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863838', 'tblTempVendorCDR_20' ) start [2025-04-08 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863838', 'tblTempVendorCDR_20' ) end [2025-04-08 17:49:20] Production.INFO: ProcessCDR(1,14863838,1,1,2) [2025-04-08 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863838', 'tblTempUsageDetail_20' ) start [2025-04-08 17:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863838', 'tblTempUsageDetail_20' ) end [2025-04-08 17:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:49:23] Production.INFO: ==6582== Releasing lock... [2025-04-08 17:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:49:23] Production.INFO: 60 MB #Memory Used# [2025-04-08 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:50:06 [end_date_ymd] => 2025-04-08 17:50:06 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:50:06' and `end` < '2025-04-08 17: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-04-08 17:50:19] Production.INFO: count ==4227 [2025-04-08 17:50:21] Production.ERROR: pbx CDR StartTime 2025-04-08 14:50:06 - End Time 2025-04-08 17:50:06 [2025-04-08 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863843', 'tblTempUsageDetail_20' ) start [2025-04-08 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863843', 'tblTempUsageDetail_20' ) end [2025-04-08 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863843', 'tblTempVendorCDR_20' ) start [2025-04-08 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863843', 'tblTempVendorCDR_20' ) end [2025-04-08 17:50:21] Production.INFO: ProcessCDR(1,14863843,1,1,2) [2025-04-08 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863843', 'tblTempUsageDetail_20' ) start [2025-04-08 17:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863843', 'tblTempUsageDetail_20' ) end [2025-04-08 17:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:50:24] Production.INFO: ==6664== Releasing lock... [2025-04-08 17:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:50:24] Production.INFO: 59.5 MB #Memory Used# [2025-04-08 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:51:05 [end_date_ymd] => 2025-04-08 17:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:51:05' and `end` < '2025-04-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-04-08 17:51:18] Production.INFO: count ==4168 [2025-04-08 17:51:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:51:05 - End Time 2025-04-08 17:51:05 [2025-04-08 17:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863849', 'tblTempUsageDetail_20' ) start [2025-04-08 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863849', 'tblTempUsageDetail_20' ) end [2025-04-08 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863849', 'tblTempVendorCDR_20' ) start [2025-04-08 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863849', 'tblTempVendorCDR_20' ) end [2025-04-08 17:51:20] Production.INFO: ProcessCDR(1,14863849,1,1,2) [2025-04-08 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863849', 'tblTempUsageDetail_20' ) start [2025-04-08 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863849', 'tblTempUsageDetail_20' ) end [2025-04-08 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:51:25] Production.INFO: ==6744== Releasing lock... [2025-04-08 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:51:25] Production.INFO: 59.25 MB #Memory Used# [2025-04-08 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:52:05 [end_date_ymd] => 2025-04-08 17:52:05 [RateCDR] => 1 ) [2025-04-08 17: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-04-08 14:52:05' and `end` < '2025-04-08 17: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-04-08 17:52:19] Production.INFO: count ==4140 [2025-04-08 17:52:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:52:05 - End Time 2025-04-08 17:52:05 [2025-04-08 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863854', 'tblTempUsageDetail_20' ) start [2025-04-08 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863854', 'tblTempUsageDetail_20' ) end [2025-04-08 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863854', 'tblTempVendorCDR_20' ) start [2025-04-08 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863854', 'tblTempVendorCDR_20' ) end [2025-04-08 17:52:20] Production.INFO: ProcessCDR(1,14863854,1,1,2) [2025-04-08 17:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863854', 'tblTempUsageDetail_20' ) start [2025-04-08 17:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863854', 'tblTempUsageDetail_20' ) end [2025-04-08 17:52:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:52:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:52:23] Production.INFO: ==6824== Releasing lock... [2025-04-08 17:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:52:23] Production.INFO: 59 MB #Memory Used# [2025-04-08 17:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:53:04 [end_date_ymd] => 2025-04-08 17:53:04 [RateCDR] => 1 ) [2025-04-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-04-08 14:53:04' and `end` < '2025-04-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-04-08 17:53:18] Production.INFO: count ==4108 [2025-04-08 17:53:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:53:04 - End Time 2025-04-08 17:53:04 [2025-04-08 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863859', 'tblTempUsageDetail_20' ) start [2025-04-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863859', 'tblTempUsageDetail_20' ) end [2025-04-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863859', 'tblTempVendorCDR_20' ) start [2025-04-08 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863859', 'tblTempVendorCDR_20' ) end [2025-04-08 17:53:20] Production.INFO: ProcessCDR(1,14863859,1,1,2) [2025-04-08 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863859', 'tblTempUsageDetail_20' ) start [2025-04-08 17:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863859', 'tblTempUsageDetail_20' ) end [2025-04-08 17:53:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:53:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:53:23] Production.INFO: ==6903== Releasing lock... [2025-04-08 17:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:53:23] Production.INFO: 59 MB #Memory Used# [2025-04-08 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:54:05 [end_date_ymd] => 2025-04-08 17:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:54:05' and `end` < '2025-04-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-04-08 17:54:19] Production.INFO: count ==4084 [2025-04-08 17:54:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:54:05 - End Time 2025-04-08 17:54:05 [2025-04-08 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863864', 'tblTempUsageDetail_20' ) start [2025-04-08 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863864', 'tblTempUsageDetail_20' ) end [2025-04-08 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863864', 'tblTempVendorCDR_20' ) start [2025-04-08 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863864', 'tblTempVendorCDR_20' ) end [2025-04-08 17:54:20] Production.INFO: ProcessCDR(1,14863864,1,1,2) [2025-04-08 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863864', 'tblTempUsageDetail_20' ) start [2025-04-08 17:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863864', 'tblTempUsageDetail_20' ) end [2025-04-08 17:54:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:54:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:54:24] Production.INFO: ==7022== Releasing lock... [2025-04-08 17:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:54:24] Production.INFO: 58.5 MB #Memory Used# [2025-04-08 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:55:05 [end_date_ymd] => 2025-04-08 17:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:55:05' and `end` < '2025-04-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-04-08 17:55:18] Production.INFO: count ==4064 [2025-04-08 17:55:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:55:05 - End Time 2025-04-08 17:55:05 [2025-04-08 17:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863869', 'tblTempUsageDetail_20' ) start [2025-04-08 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863869', 'tblTempUsageDetail_20' ) end [2025-04-08 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863869', 'tblTempVendorCDR_20' ) start [2025-04-08 17:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863869', 'tblTempVendorCDR_20' ) end [2025-04-08 17:55:20] Production.INFO: ProcessCDR(1,14863869,1,1,2) [2025-04-08 17:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863869', 'tblTempUsageDetail_20' ) start [2025-04-08 17:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863869', 'tblTempUsageDetail_20' ) end [2025-04-08 17:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:55:25] Production.INFO: ==7095== Releasing lock... [2025-04-08 17:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:55:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-08 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:56:05 [end_date_ymd] => 2025-04-08 17:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:56:05' and `end` < '2025-04-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-04-08 17:56:18] Production.INFO: count ==4038 [2025-04-08 17:56:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:56:05 - End Time 2025-04-08 17:56:05 [2025-04-08 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863874', 'tblTempUsageDetail_20' ) start [2025-04-08 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863874', 'tblTempUsageDetail_20' ) end [2025-04-08 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863874', 'tblTempVendorCDR_20' ) start [2025-04-08 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863874', 'tblTempVendorCDR_20' ) end [2025-04-08 17:56:20] Production.INFO: ProcessCDR(1,14863874,1,1,2) [2025-04-08 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863874', 'tblTempUsageDetail_20' ) start [2025-04-08 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863874', 'tblTempUsageDetail_20' ) end [2025-04-08 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:56:25] Production.INFO: ==7180== Releasing lock... [2025-04-08 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:56:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-08 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:57:05 [end_date_ymd] => 2025-04-08 17:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:57:05' and `end` < '2025-04-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-04-08 17:57:19] Production.INFO: count ==4032 [2025-04-08 17:57:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:57:05 - End Time 2025-04-08 17:57:05 [2025-04-08 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863879', 'tblTempUsageDetail_20' ) start [2025-04-08 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863879', 'tblTempUsageDetail_20' ) end [2025-04-08 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863879', 'tblTempVendorCDR_20' ) start [2025-04-08 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863879', 'tblTempVendorCDR_20' ) end [2025-04-08 17:57:21] Production.INFO: ProcessCDR(1,14863879,1,1,2) [2025-04-08 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863879', 'tblTempUsageDetail_20' ) start [2025-04-08 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863879', 'tblTempUsageDetail_20' ) end [2025-04-08 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:57:25] Production.INFO: ==7260== Releasing lock... [2025-04-08 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:57:25] Production.INFO: 58 MB #Memory Used# [2025-04-08 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:58:05 [end_date_ymd] => 2025-04-08 17:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:58:05' and `end` < '2025-04-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-04-08 17:58:19] Production.INFO: count ==4025 [2025-04-08 17:58:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:58:05 - End Time 2025-04-08 17:58:05 [2025-04-08 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863884', 'tblTempUsageDetail_20' ) start [2025-04-08 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863884', 'tblTempUsageDetail_20' ) end [2025-04-08 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863884', 'tblTempVendorCDR_20' ) start [2025-04-08 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863884', 'tblTempVendorCDR_20' ) end [2025-04-08 17:58:20] Production.INFO: ProcessCDR(1,14863884,1,1,2) [2025-04-08 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863884', 'tblTempUsageDetail_20' ) start [2025-04-08 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863884', 'tblTempUsageDetail_20' ) end [2025-04-08 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:58:24] Production.INFO: ==7336== Releasing lock... [2025-04-08 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:58:24] Production.INFO: 58.25 MB #Memory Used# [2025-04-08 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 14:59:05 [end_date_ymd] => 2025-04-08 17:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 14:59:05' and `end` < '2025-04-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-04-08 17:59:19] Production.INFO: count ==4014 [2025-04-08 17:59:20] Production.ERROR: pbx CDR StartTime 2025-04-08 14:59:05 - End Time 2025-04-08 17:59:05 [2025-04-08 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863889', 'tblTempUsageDetail_20' ) start [2025-04-08 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863889', 'tblTempUsageDetail_20' ) end [2025-04-08 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863889', 'tblTempVendorCDR_20' ) start [2025-04-08 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863889', 'tblTempVendorCDR_20' ) end [2025-04-08 17:59:21] Production.INFO: ProcessCDR(1,14863889,1,1,2) [2025-04-08 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 17:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863889', 'tblTempUsageDetail_20' ) start [2025-04-08 17:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863889', 'tblTempUsageDetail_20' ) end [2025-04-08 17:59:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 17:59:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 17:59:24] Production.INFO: ==7420== Releasing lock... [2025-04-08 17:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 17:59:24] Production.INFO: 58.25 MB #Memory Used# [2025-04-08 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:00:06 [end_date_ymd] => 2025-04-08 18:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 15:00:06' and `end` < '2025-04-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-04-08 18:00:19] Production.INFO: count ==4007 [2025-04-08 18:00:21] Production.ERROR: pbx CDR StartTime 2025-04-08 15:00:06 - End Time 2025-04-08 18:00:06 [2025-04-08 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863895', 'tblTempUsageDetail_20' ) start [2025-04-08 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863895', 'tblTempUsageDetail_20' ) end [2025-04-08 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863895', 'tblTempVendorCDR_20' ) start [2025-04-08 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863895', 'tblTempVendorCDR_20' ) end [2025-04-08 18:00:21] Production.INFO: ProcessCDR(1,14863895,1,1,2) [2025-04-08 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863895', 'tblTempUsageDetail_20' ) start [2025-04-08 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863895', 'tblTempUsageDetail_20' ) end [2025-04-08 18:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:00:25] Production.INFO: ==7504== Releasing lock... [2025-04-08 18:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:00:25] Production.INFO: 58.25 MB #Memory Used# [2025-04-08 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:01:05 [end_date_ymd] => 2025-04-08 18:01:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:01:05' and `end` < '2025-04-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-04-08 18:01:19] Production.INFO: count ==4000 [2025-04-08 18:01:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:01:05 - End Time 2025-04-08 18:01:05 [2025-04-08 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863900', 'tblTempUsageDetail_20' ) start [2025-04-08 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863900', 'tblTempUsageDetail_20' ) end [2025-04-08 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863900', 'tblTempVendorCDR_20' ) start [2025-04-08 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863900', 'tblTempVendorCDR_20' ) end [2025-04-08 18:01:20] Production.INFO: ProcessCDR(1,14863900,1,1,2) [2025-04-08 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863900', 'tblTempUsageDetail_20' ) start [2025-04-08 18:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863900', 'tblTempUsageDetail_20' ) end [2025-04-08 18:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:01:25] Production.INFO: ==7589== Releasing lock... [2025-04-08 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:01:26] Production.INFO: 57.75 MB #Memory Used# [2025-04-08 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:02:05 [end_date_ymd] => 2025-04-08 18:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:02:05' and `end` < '2025-04-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-04-08 18:02:18] Production.INFO: count ==4004 [2025-04-08 18:02:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:02:05 - End Time 2025-04-08 18:02:05 [2025-04-08 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863905', 'tblTempUsageDetail_20' ) start [2025-04-08 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863905', 'tblTempUsageDetail_20' ) end [2025-04-08 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863905', 'tblTempVendorCDR_20' ) start [2025-04-08 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863905', 'tblTempVendorCDR_20' ) end [2025-04-08 18:02:20] Production.INFO: ProcessCDR(1,14863905,1,1,2) [2025-04-08 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863905', 'tblTempUsageDetail_20' ) start [2025-04-08 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863905', 'tblTempUsageDetail_20' ) end [2025-04-08 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:02:26] Production.INFO: ==7672== Releasing lock... [2025-04-08 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:02:26] Production.INFO: 58 MB #Memory Used# [2025-04-08 18:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:03:06 [end_date_ymd] => 2025-04-08 18:03:06 [RateCDR] => 1 ) [2025-04-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-04-08 15:03:06' and `end` < '2025-04-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-04-08 18:03:19] Production.INFO: count ==3998 [2025-04-08 18:03:21] Production.ERROR: pbx CDR StartTime 2025-04-08 15:03:06 - End Time 2025-04-08 18:03:06 [2025-04-08 18:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863910', 'tblTempUsageDetail_20' ) start [2025-04-08 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863910', 'tblTempUsageDetail_20' ) end [2025-04-08 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863910', 'tblTempVendorCDR_20' ) start [2025-04-08 18:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863910', 'tblTempVendorCDR_20' ) end [2025-04-08 18:03:21] Production.INFO: ProcessCDR(1,14863910,1,1,2) [2025-04-08 18:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863910', 'tblTempUsageDetail_20' ) start [2025-04-08 18:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863910', 'tblTempUsageDetail_20' ) end [2025-04-08 18:03:27] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:03:27] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:03:27] Production.INFO: ==7752== Releasing lock... [2025-04-08 18:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:03:27] Production.INFO: 57.75 MB #Memory Used# [2025-04-08 18:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:04:06 [end_date_ymd] => 2025-04-08 18:04:06 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:04:06' and `end` < '2025-04-08 18: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-04-08 18:04:19] Production.INFO: count ==4005 [2025-04-08 18:04:21] Production.ERROR: pbx CDR StartTime 2025-04-08 15:04:06 - End Time 2025-04-08 18:04:06 [2025-04-08 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863915', 'tblTempUsageDetail_20' ) start [2025-04-08 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863915', 'tblTempUsageDetail_20' ) end [2025-04-08 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863915', 'tblTempVendorCDR_20' ) start [2025-04-08 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863915', 'tblTempVendorCDR_20' ) end [2025-04-08 18:04:21] Production.INFO: ProcessCDR(1,14863915,1,1,2) [2025-04-08 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863915', 'tblTempUsageDetail_20' ) start [2025-04-08 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863915', 'tblTempUsageDetail_20' ) end [2025-04-08 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:04:25] Production.INFO: ==7827== Releasing lock... [2025-04-08 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:04:25] Production.INFO: 58 MB #Memory Used# [2025-04-08 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:05:05 [end_date_ymd] => 2025-04-08 18:05:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:05:05' and `end` < '2025-04-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-04-08 18:05:18] Production.INFO: count ==3985 [2025-04-08 18:05:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:05:05 - End Time 2025-04-08 18:05:05 [2025-04-08 18:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863920', 'tblTempUsageDetail_20' ) start [2025-04-08 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863920', 'tblTempUsageDetail_20' ) end [2025-04-08 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863920', 'tblTempVendorCDR_20' ) start [2025-04-08 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863920', 'tblTempVendorCDR_20' ) end [2025-04-08 18:05:20] Production.INFO: ProcessCDR(1,14863920,1,1,2) [2025-04-08 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863920', 'tblTempUsageDetail_20' ) start [2025-04-08 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863920', 'tblTempUsageDetail_20' ) end [2025-04-08 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:05:23] Production.INFO: ==7905== Releasing lock... [2025-04-08 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:05:23] Production.INFO: 57.75 MB #Memory Used# [2025-04-08 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:06:05 [end_date_ymd] => 2025-04-08 18:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:06:05' and `end` < '2025-04-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-04-08 18:06:19] Production.INFO: count ==3969 [2025-04-08 18:06:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:06:05 - End Time 2025-04-08 18:06:05 [2025-04-08 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863925', 'tblTempUsageDetail_20' ) start [2025-04-08 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863925', 'tblTempUsageDetail_20' ) end [2025-04-08 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863925', 'tblTempVendorCDR_20' ) start [2025-04-08 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863925', 'tblTempVendorCDR_20' ) end [2025-04-08 18:06:20] Production.INFO: ProcessCDR(1,14863925,1,1,2) [2025-04-08 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863925', 'tblTempUsageDetail_20' ) start [2025-04-08 18:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863925', 'tblTempUsageDetail_20' ) end [2025-04-08 18:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:06:24] Production.INFO: ==7985== Releasing lock... [2025-04-08 18:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:06:24] Production.INFO: 57.5 MB #Memory Used# [2025-04-08 18:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:07:06 [end_date_ymd] => 2025-04-08 18:07:06 [RateCDR] => 1 ) [2025-04-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-04-08 15:07:06' and `end` < '2025-04-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-04-08 18:07:19] Production.INFO: count ==3956 [2025-04-08 18:07:21] Production.ERROR: pbx CDR StartTime 2025-04-08 15:07:06 - End Time 2025-04-08 18:07:06 [2025-04-08 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863930', 'tblTempUsageDetail_20' ) start [2025-04-08 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863930', 'tblTempUsageDetail_20' ) end [2025-04-08 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863930', 'tblTempVendorCDR_20' ) start [2025-04-08 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863930', 'tblTempVendorCDR_20' ) end [2025-04-08 18:07:21] Production.INFO: ProcessCDR(1,14863930,1,1,2) [2025-04-08 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863930', 'tblTempUsageDetail_20' ) start [2025-04-08 18:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863930', 'tblTempUsageDetail_20' ) end [2025-04-08 18:07:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:07:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:07:25] Production.INFO: ==8059== Releasing lock... [2025-04-08 18:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:07:25] Production.INFO: 57.75 MB #Memory Used# [2025-04-08 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:08:05 [end_date_ymd] => 2025-04-08 18:08:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:08:05' and `end` < '2025-04-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-04-08 18:08:19] Production.INFO: count ==3947 [2025-04-08 18:08:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:08:05 - End Time 2025-04-08 18:08:05 [2025-04-08 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863935', 'tblTempUsageDetail_20' ) start [2025-04-08 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863935', 'tblTempUsageDetail_20' ) end [2025-04-08 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863935', 'tblTempVendorCDR_20' ) start [2025-04-08 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863935', 'tblTempVendorCDR_20' ) end [2025-04-08 18:08:20] Production.INFO: ProcessCDR(1,14863935,1,1,2) [2025-04-08 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863935', 'tblTempUsageDetail_20' ) start [2025-04-08 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863935', 'tblTempUsageDetail_20' ) end [2025-04-08 18:08:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:08:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:08:25] Production.INFO: ==8135== Releasing lock... [2025-04-08 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:08:25] Production.INFO: 57.5 MB #Memory Used# [2025-04-08 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:09:05 [end_date_ymd] => 2025-04-08 18:09:05 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:09:05' and `end` < '2025-04-08 18: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-04-08 18:09:19] Production.INFO: count ==3936 [2025-04-08 18:09:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:09:05 - End Time 2025-04-08 18:09:05 [2025-04-08 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863940', 'tblTempUsageDetail_20' ) start [2025-04-08 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863940', 'tblTempUsageDetail_20' ) end [2025-04-08 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863940', 'tblTempVendorCDR_20' ) start [2025-04-08 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863940', 'tblTempVendorCDR_20' ) end [2025-04-08 18:09:20] Production.INFO: ProcessCDR(1,14863940,1,1,2) [2025-04-08 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863940', 'tblTempUsageDetail_20' ) start [2025-04-08 18:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863940', 'tblTempUsageDetail_20' ) end [2025-04-08 18:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:09:24] Production.INFO: ==8253== Releasing lock... [2025-04-08 18:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:09:24] Production.INFO: 57.75 MB #Memory Used# [2025-04-08 18:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:10:05 [end_date_ymd] => 2025-04-08 18:10:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:10:05' and `end` < '2025-04-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-04-08 18:10:19] Production.INFO: count ==3929 [2025-04-08 18:10:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:10:05 - End Time 2025-04-08 18:10:05 [2025-04-08 18:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863945', 'tblTempUsageDetail_20' ) start [2025-04-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863945', 'tblTempUsageDetail_20' ) end [2025-04-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863945', 'tblTempVendorCDR_20' ) start [2025-04-08 18:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863945', 'tblTempVendorCDR_20' ) end [2025-04-08 18:10:20] Production.INFO: ProcessCDR(1,14863945,1,1,2) [2025-04-08 18:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863945', 'tblTempUsageDetail_20' ) start [2025-04-08 18:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863945', 'tblTempUsageDetail_20' ) end [2025-04-08 18:10:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:10:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:10:25] Production.INFO: ==8341== Releasing lock... [2025-04-08 18:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:10:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-08 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:11:05 [end_date_ymd] => 2025-04-08 18:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:11:05' and `end` < '2025-04-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-04-08 18:11:19] Production.INFO: count ==3895 [2025-04-08 18:11:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:11:05 - End Time 2025-04-08 18:11:05 [2025-04-08 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863951', 'tblTempUsageDetail_20' ) start [2025-04-08 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863951', 'tblTempUsageDetail_20' ) end [2025-04-08 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863951', 'tblTempVendorCDR_20' ) start [2025-04-08 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863951', 'tblTempVendorCDR_20' ) end [2025-04-08 18:11:20] Production.INFO: ProcessCDR(1,14863951,1,1,2) [2025-04-08 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863951', 'tblTempUsageDetail_20' ) start [2025-04-08 18:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863951', 'tblTempUsageDetail_20' ) end [2025-04-08 18:11:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:11:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:11:24] Production.INFO: ==8420== Releasing lock... [2025-04-08 18:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:11:24] Production.INFO: 57 MB #Memory Used# [2025-04-08 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:12:05 [end_date_ymd] => 2025-04-08 18:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:12:05' and `end` < '2025-04-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-04-08 18:12:18] Production.INFO: count ==3879 [2025-04-08 18:12:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:12:05 - End Time 2025-04-08 18:12:05 [2025-04-08 18:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863956', 'tblTempUsageDetail_20' ) start [2025-04-08 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863956', 'tblTempUsageDetail_20' ) end [2025-04-08 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863956', 'tblTempVendorCDR_20' ) start [2025-04-08 18:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863956', 'tblTempVendorCDR_20' ) end [2025-04-08 18:12:19] Production.INFO: ProcessCDR(1,14863956,1,1,2) [2025-04-08 18:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863956', 'tblTempUsageDetail_20' ) start [2025-04-08 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863956', 'tblTempUsageDetail_20' ) end [2025-04-08 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:12:25] Production.INFO: ==8494== Releasing lock... [2025-04-08 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:12:25] Production.INFO: 57 MB #Memory Used# [2025-04-08 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:13:05 [end_date_ymd] => 2025-04-08 18:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:13:05' and `end` < '2025-04-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-04-08 18:13:18] Production.INFO: count ==3874 [2025-04-08 18:13:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:13:05 - End Time 2025-04-08 18:13:05 [2025-04-08 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863961', 'tblTempUsageDetail_20' ) start [2025-04-08 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863961', 'tblTempUsageDetail_20' ) end [2025-04-08 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863961', 'tblTempVendorCDR_20' ) start [2025-04-08 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863961', 'tblTempVendorCDR_20' ) end [2025-04-08 18:13:20] Production.INFO: ProcessCDR(1,14863961,1,1,2) [2025-04-08 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863961', 'tblTempUsageDetail_20' ) start [2025-04-08 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863961', 'tblTempUsageDetail_20' ) end [2025-04-08 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:13:23] Production.INFO: ==8573== Releasing lock... [2025-04-08 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:13:23] Production.INFO: 57.5 MB #Memory Used# [2025-04-08 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:14:05 [end_date_ymd] => 2025-04-08 18:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:14:05' and `end` < '2025-04-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-04-08 18:14:18] Production.INFO: count ==3878 [2025-04-08 18:14:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:14:05 - End Time 2025-04-08 18:14:05 [2025-04-08 18:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863966', 'tblTempUsageDetail_20' ) start [2025-04-08 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863966', 'tblTempUsageDetail_20' ) end [2025-04-08 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863966', 'tblTempVendorCDR_20' ) start [2025-04-08 18:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863966', 'tblTempVendorCDR_20' ) end [2025-04-08 18:14:20] Production.INFO: ProcessCDR(1,14863966,1,1,2) [2025-04-08 18:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863966', 'tblTempUsageDetail_20' ) start [2025-04-08 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863966', 'tblTempUsageDetail_20' ) end [2025-04-08 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:14:24] Production.INFO: ==8650== Releasing lock... [2025-04-08 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:14:24] Production.INFO: 57.25 MB #Memory Used# [2025-04-08 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:15:05 [end_date_ymd] => 2025-04-08 18:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:15:05' and `end` < '2025-04-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-04-08 18:15:19] Production.INFO: count ==3874 [2025-04-08 18:15:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:15:05 - End Time 2025-04-08 18:15:05 [2025-04-08 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863971', 'tblTempUsageDetail_20' ) start [2025-04-08 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863971', 'tblTempUsageDetail_20' ) end [2025-04-08 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863971', 'tblTempVendorCDR_20' ) start [2025-04-08 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863971', 'tblTempVendorCDR_20' ) end [2025-04-08 18:15:20] Production.INFO: ProcessCDR(1,14863971,1,1,2) [2025-04-08 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863971', 'tblTempUsageDetail_20' ) start [2025-04-08 18:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863971', 'tblTempUsageDetail_20' ) end [2025-04-08 18:15:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:15:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:15:25] Production.INFO: ==8733== Releasing lock... [2025-04-08 18:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:15:25] Production.INFO: 57 MB #Memory Used# [2025-04-08 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:16:05 [end_date_ymd] => 2025-04-08 18:16:05 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:16:05' and `end` < '2025-04-08 18: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-04-08 18:16:18] Production.INFO: count ==3865 [2025-04-08 18:16:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:16:05 - End Time 2025-04-08 18:16:05 [2025-04-08 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863976', 'tblTempUsageDetail_20' ) start [2025-04-08 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863976', 'tblTempUsageDetail_20' ) end [2025-04-08 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863976', 'tblTempVendorCDR_20' ) start [2025-04-08 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863976', 'tblTempVendorCDR_20' ) end [2025-04-08 18:16:20] Production.INFO: ProcessCDR(1,14863976,1,1,2) [2025-04-08 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863976', 'tblTempUsageDetail_20' ) start [2025-04-08 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863976', 'tblTempUsageDetail_20' ) end [2025-04-08 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:16:25] Production.INFO: ==8815== Releasing lock... [2025-04-08 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:16:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-08 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:17:05 [end_date_ymd] => 2025-04-08 18:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:17:05' and `end` < '2025-04-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-04-08 18:17:19] Production.INFO: count ==3857 [2025-04-08 18:17:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:17:05 - End Time 2025-04-08 18:17:05 [2025-04-08 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863981', 'tblTempUsageDetail_20' ) start [2025-04-08 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863981', 'tblTempUsageDetail_20' ) end [2025-04-08 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863981', 'tblTempVendorCDR_20' ) start [2025-04-08 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863981', 'tblTempVendorCDR_20' ) end [2025-04-08 18:17:20] Production.INFO: ProcessCDR(1,14863981,1,1,2) [2025-04-08 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863981', 'tblTempUsageDetail_20' ) start [2025-04-08 18:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863981', 'tblTempUsageDetail_20' ) end [2025-04-08 18:17:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:17:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:17:25] Production.INFO: ==8891== Releasing lock... [2025-04-08 18:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:17:25] Production.INFO: 57.25 MB #Memory Used# [2025-04-08 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:18:05 [end_date_ymd] => 2025-04-08 18:18:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:18:05' and `end` < '2025-04-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-04-08 18:18:18] Production.INFO: count ==3844 [2025-04-08 18:18:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:18:05 - End Time 2025-04-08 18:18:05 [2025-04-08 18:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863986', 'tblTempUsageDetail_20' ) start [2025-04-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863986', 'tblTempUsageDetail_20' ) end [2025-04-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863986', 'tblTempVendorCDR_20' ) start [2025-04-08 18:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863986', 'tblTempVendorCDR_20' ) end [2025-04-08 18:18:19] Production.INFO: ProcessCDR(1,14863986,1,1,2) [2025-04-08 18:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863986', 'tblTempUsageDetail_20' ) start [2025-04-08 18:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863986', 'tblTempUsageDetail_20' ) end [2025-04-08 18:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:18:23] Production.INFO: ==8967== Releasing lock... [2025-04-08 18:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:18:23] Production.INFO: 57.25 MB #Memory Used# [2025-04-08 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:19:05 [end_date_ymd] => 2025-04-08 18:19:05 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:19:05' and `end` < '2025-04-08 18: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-04-08 18:19:18] Production.INFO: count ==3816 [2025-04-08 18:19:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:19:05 - End Time 2025-04-08 18:19:05 [2025-04-08 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863991', 'tblTempUsageDetail_20' ) start [2025-04-08 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863991', 'tblTempUsageDetail_20' ) end [2025-04-08 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863991', 'tblTempVendorCDR_20' ) start [2025-04-08 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863991', 'tblTempVendorCDR_20' ) end [2025-04-08 18:19:20] Production.INFO: ProcessCDR(1,14863991,1,1,2) [2025-04-08 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863991', 'tblTempUsageDetail_20' ) start [2025-04-08 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863991', 'tblTempUsageDetail_20' ) end [2025-04-08 18:19:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:19:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:19:25] Production.INFO: ==9049== Releasing lock... [2025-04-08 18:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:19:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-08 18:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:20:07 [end_date_ymd] => 2025-04-08 18:20:07 [RateCDR] => 1 ) [2025-04-08 18:20: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-04-08 15:20:07' and `end` < '2025-04-08 18:20: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-04-08 18:20:20] Production.INFO: count ==3810 [2025-04-08 18:20:21] Production.ERROR: pbx CDR StartTime 2025-04-08 15:20:07 - End Time 2025-04-08 18:20:07 [2025-04-08 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863997', 'tblTempUsageDetail_20' ) start [2025-04-08 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14863997', 'tblTempUsageDetail_20' ) end [2025-04-08 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863997', 'tblTempVendorCDR_20' ) start [2025-04-08 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14863997', 'tblTempVendorCDR_20' ) end [2025-04-08 18:20:21] Production.INFO: ProcessCDR(1,14863997,1,1,2) [2025-04-08 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14863997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14863997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14863997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14863997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863997', 'tblTempUsageDetail_20' ) start [2025-04-08 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14863997', 'tblTempUsageDetail_20' ) end [2025-04-08 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:20:26] Production.INFO: ==9129== Releasing lock... [2025-04-08 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:20:26] Production.INFO: 56.5 MB #Memory Used# [2025-04-08 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:21:05 [end_date_ymd] => 2025-04-08 18:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:21:05' and `end` < '2025-04-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-04-08 18:21:19] Production.INFO: count ==3788 [2025-04-08 18:21:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:21:05 - End Time 2025-04-08 18:21:05 [2025-04-08 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864002', 'tblTempUsageDetail_20' ) start [2025-04-08 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864002', 'tblTempUsageDetail_20' ) end [2025-04-08 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864002', 'tblTempVendorCDR_20' ) start [2025-04-08 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864002', 'tblTempVendorCDR_20' ) end [2025-04-08 18:21:20] Production.INFO: ProcessCDR(1,14864002,1,1,2) [2025-04-08 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864002', 'tblTempUsageDetail_20' ) start [2025-04-08 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864002', 'tblTempUsageDetail_20' ) end [2025-04-08 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:21:25] Production.INFO: ==9208== Releasing lock... [2025-04-08 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:21:25] Production.INFO: 56.5 MB #Memory Used# [2025-04-08 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:22:05 [end_date_ymd] => 2025-04-08 18:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:22:05' and `end` < '2025-04-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-04-08 18:22:19] Production.INFO: count ==3780 [2025-04-08 18:22:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:22:05 - End Time 2025-04-08 18:22:05 [2025-04-08 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864007', 'tblTempUsageDetail_20' ) start [2025-04-08 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864007', 'tblTempUsageDetail_20' ) end [2025-04-08 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864007', 'tblTempVendorCDR_20' ) start [2025-04-08 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864007', 'tblTempVendorCDR_20' ) end [2025-04-08 18:22:20] Production.INFO: ProcessCDR(1,14864007,1,1,2) [2025-04-08 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864007', 'tblTempUsageDetail_20' ) start [2025-04-08 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864007', 'tblTempUsageDetail_20' ) end [2025-04-08 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:22:25] Production.INFO: ==9283== Releasing lock... [2025-04-08 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:22:25] Production.INFO: 56.75 MB #Memory Used# [2025-04-08 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:23:05 [end_date_ymd] => 2025-04-08 18:23:05 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:23:05' and `end` < '2025-04-08 18: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-04-08 18:23:18] Production.INFO: count ==3755 [2025-04-08 18:23:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:23:05 - End Time 2025-04-08 18:23:05 [2025-04-08 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864012', 'tblTempUsageDetail_20' ) start [2025-04-08 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864012', 'tblTempUsageDetail_20' ) end [2025-04-08 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864012', 'tblTempVendorCDR_20' ) start [2025-04-08 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864012', 'tblTempVendorCDR_20' ) end [2025-04-08 18:23:20] Production.INFO: ProcessCDR(1,14864012,1,1,2) [2025-04-08 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864012', 'tblTempUsageDetail_20' ) start [2025-04-08 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864012', 'tblTempUsageDetail_20' ) end [2025-04-08 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:23:23] Production.INFO: ==9364== Releasing lock... [2025-04-08 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:23:23] Production.INFO: 56.25 MB #Memory Used# [2025-04-08 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:24:05 [end_date_ymd] => 2025-04-08 18:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:24:05' and `end` < '2025-04-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-04-08 18:24:19] Production.INFO: count ==3753 [2025-04-08 18:24:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:24:05 - End Time 2025-04-08 18:24:05 [2025-04-08 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864017', 'tblTempUsageDetail_20' ) start [2025-04-08 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864017', 'tblTempUsageDetail_20' ) end [2025-04-08 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864017', 'tblTempVendorCDR_20' ) start [2025-04-08 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864017', 'tblTempVendorCDR_20' ) end [2025-04-08 18:24:20] Production.INFO: ProcessCDR(1,14864017,1,1,2) [2025-04-08 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864017', 'tblTempUsageDetail_20' ) start [2025-04-08 18:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864017', 'tblTempUsageDetail_20' ) end [2025-04-08 18:24:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:24:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:24:25] Production.INFO: ==9438== Releasing lock... [2025-04-08 18:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:24:25] Production.INFO: 56 MB #Memory Used# [2025-04-08 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:25:05 [end_date_ymd] => 2025-04-08 18:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:25:05' and `end` < '2025-04-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-04-08 18:25:19] Production.INFO: count ==3743 [2025-04-08 18:25:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:25:05 - End Time 2025-04-08 18:25:05 [2025-04-08 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864022', 'tblTempUsageDetail_20' ) start [2025-04-08 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864022', 'tblTempUsageDetail_20' ) end [2025-04-08 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864022', 'tblTempVendorCDR_20' ) start [2025-04-08 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864022', 'tblTempVendorCDR_20' ) end [2025-04-08 18:25:20] Production.INFO: ProcessCDR(1,14864022,1,1,2) [2025-04-08 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864022', 'tblTempUsageDetail_20' ) start [2025-04-08 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864022', 'tblTempUsageDetail_20' ) end [2025-04-08 18:25:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:25:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:25:25] Production.INFO: ==9550== Releasing lock... [2025-04-08 18:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:25:25] Production.INFO: 56 MB #Memory Used# [2025-04-08 18:26:18] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:26:18 [end_date_ymd] => 2025-04-08 18:26:18 [RateCDR] => 1 ) [2025-04-08 18:26: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-04-08 15:26:18' and `end` < '2025-04-08 18:26: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-04-08 18:26:31] Production.INFO: count ==3709 [2025-04-08 18:27:26] Production.ERROR: pbx CDR StartTime 2025-04-08 15:26:18 - End Time 2025-04-08 18:26:18 [2025-04-08 18:27:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864027', 'tblTempUsageDetail_20' ) start [2025-04-08 18:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864027', 'tblTempUsageDetail_20' ) end [2025-04-08 18:27:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864027', 'tblTempVendorCDR_20' ) start [2025-04-08 18:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864027', 'tblTempVendorCDR_20' ) end [2025-04-08 18:27:38] Production.INFO: ProcessCDR(1,14864027,1,1,2) [2025-04-08 18:27:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:27:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:27:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:28:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:28:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864027', 'tblTempUsageDetail_20' ) start [2025-04-08 18:28:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864027', 'tblTempUsageDetail_20' ) end [2025-04-08 18:28:10] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:28:11] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:28:15] Production.INFO: ==9632== Releasing lock... [2025-04-08 18:28:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:28:15] Production.INFO: 55.75 MB #Memory Used# [2025-04-08 18:29:22] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:29:20 [end_date_ymd] => 2025-04-08 18:29:20 [RateCDR] => 1 ) [2025-04-08 18:29:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 15:29:20' and `end` < '2025-04-08 18:29: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-04-08 18:29:35] Production.INFO: count ==3703 [2025-04-08 18:29:52] Production.ERROR: pbx CDR StartTime 2025-04-08 15:29:20 - End Time 2025-04-08 18:29:20 [2025-04-08 18:29:52] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:29:52] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864038', 'tblTempUsageDetail_20' ) start [2025-04-08 18:29:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864038', 'tblTempUsageDetail_20' ) end [2025-04-08 18:29:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864038', 'tblTempVendorCDR_20' ) start [2025-04-08 18:29:54] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864038', 'tblTempVendorCDR_20' ) end [2025-04-08 18:29:54] Production.INFO: ProcessCDR(1,14864038,1,1,2) [2025-04-08 18:29:54] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:30:12] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:30:12] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:30:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:30:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864038', 'tblTempUsageDetail_20' ) start [2025-04-08 18:30:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864038', 'tblTempUsageDetail_20' ) end [2025-04-08 18:30:50] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:30:50] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:30:52] Production.INFO: ==9847== Releasing lock... [2025-04-08 18:30:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:30:52] Production.INFO: 55.75 MB #Memory Used# [2025-04-08 18:31:17] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:31:17 [end_date_ymd] => 2025-04-08 18:31:17 [RateCDR] => 1 ) [2025-04-08 18:31:17] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 15:31:17' and `end` < '2025-04-08 18:31:17' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 18:31:30] Production.INFO: count ==3691 [2025-04-08 18:31:32] Production.ERROR: pbx CDR StartTime 2025-04-08 15:31:17 - End Time 2025-04-08 18:31:17 [2025-04-08 18:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864047', 'tblTempUsageDetail_20' ) start [2025-04-08 18:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864047', 'tblTempUsageDetail_20' ) end [2025-04-08 18:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864047', 'tblTempVendorCDR_20' ) start [2025-04-08 18:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864047', 'tblTempVendorCDR_20' ) end [2025-04-08 18:31:33] Production.INFO: ProcessCDR(1,14864047,1,1,2) [2025-04-08 18:31:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:31:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:31:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864047', 'tblTempUsageDetail_20' ) start [2025-04-08 18:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864047', 'tblTempUsageDetail_20' ) end [2025-04-08 18:31:37] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:31:37] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:31:38] Production.INFO: ==9992== Releasing lock... [2025-04-08 18:31:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:31:38] Production.INFO: 55.5 MB #Memory Used# [2025-04-08 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:32:05 [end_date_ymd] => 2025-04-08 18:32:05 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:32:05' and `end` < '2025-04-08 18: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-04-08 18:32:18] Production.INFO: count ==3677 [2025-04-08 18:32:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:32:05 - End Time 2025-04-08 18:32:05 [2025-04-08 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864052', 'tblTempUsageDetail_20' ) start [2025-04-08 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864052', 'tblTempUsageDetail_20' ) end [2025-04-08 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864052', 'tblTempVendorCDR_20' ) start [2025-04-08 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864052', 'tblTempVendorCDR_20' ) end [2025-04-08 18:32:20] Production.INFO: ProcessCDR(1,14864052,1,1,2) [2025-04-08 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864052', 'tblTempUsageDetail_20' ) start [2025-04-08 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864052', 'tblTempUsageDetail_20' ) end [2025-04-08 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:32:25] Production.INFO: ==10074== Releasing lock... [2025-04-08 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:32:25] Production.INFO: 55.75 MB #Memory Used# [2025-04-08 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:33:05 [end_date_ymd] => 2025-04-08 18:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:33:05' and `end` < '2025-04-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-04-08 18:33:19] Production.INFO: count ==3662 [2025-04-08 18:33:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:33:05 - End Time 2025-04-08 18:33:05 [2025-04-08 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864057', 'tblTempUsageDetail_20' ) start [2025-04-08 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864057', 'tblTempUsageDetail_20' ) end [2025-04-08 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864057', 'tblTempVendorCDR_20' ) start [2025-04-08 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864057', 'tblTempVendorCDR_20' ) end [2025-04-08 18:33:20] Production.INFO: ProcessCDR(1,14864057,1,1,2) [2025-04-08 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864057', 'tblTempUsageDetail_20' ) start [2025-04-08 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864057', 'tblTempUsageDetail_20' ) end [2025-04-08 18:33:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:33:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:33:25] Production.INFO: ==10150== Releasing lock... [2025-04-08 18:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:33:25] Production.INFO: 55.5 MB #Memory Used# [2025-04-08 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:34:05 [end_date_ymd] => 2025-04-08 18:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:34:05' and `end` < '2025-04-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-04-08 18:34:19] Production.INFO: count ==3642 [2025-04-08 18:34:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:34:05 - End Time 2025-04-08 18:34:05 [2025-04-08 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864062', 'tblTempUsageDetail_20' ) start [2025-04-08 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864062', 'tblTempUsageDetail_20' ) end [2025-04-08 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864062', 'tblTempVendorCDR_20' ) start [2025-04-08 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864062', 'tblTempVendorCDR_20' ) end [2025-04-08 18:34:20] Production.INFO: ProcessCDR(1,14864062,1,1,2) [2025-04-08 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864062', 'tblTempUsageDetail_20' ) start [2025-04-08 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864062', 'tblTempUsageDetail_20' ) end [2025-04-08 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:34:25] Production.INFO: ==10226== Releasing lock... [2025-04-08 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:34:25] Production.INFO: 55.25 MB #Memory Used# [2025-04-08 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:35:05 [end_date_ymd] => 2025-04-08 18:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:35:05' and `end` < '2025-04-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-04-08 18:35:19] Production.INFO: count ==3619 [2025-04-08 18:35:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:35:05 - End Time 2025-04-08 18:35:05 [2025-04-08 18:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864067', 'tblTempUsageDetail_20' ) start [2025-04-08 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864067', 'tblTempUsageDetail_20' ) end [2025-04-08 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864067', 'tblTempVendorCDR_20' ) start [2025-04-08 18:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864067', 'tblTempVendorCDR_20' ) end [2025-04-08 18:35:20] Production.INFO: ProcessCDR(1,14864067,1,1,2) [2025-04-08 18:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864067', 'tblTempUsageDetail_20' ) start [2025-04-08 18:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864067', 'tblTempUsageDetail_20' ) end [2025-04-08 18:35:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:35:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:35:25] Production.INFO: ==10316== Releasing lock... [2025-04-08 18:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:35:25] Production.INFO: 55 MB #Memory Used# [2025-04-08 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:36:05 [end_date_ymd] => 2025-04-08 18:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:36:05' and `end` < '2025-04-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-04-08 18:36:18] Production.INFO: count ==3610 [2025-04-08 18:36:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:36:05 - End Time 2025-04-08 18:36:05 [2025-04-08 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864072', 'tblTempUsageDetail_20' ) start [2025-04-08 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864072', 'tblTempUsageDetail_20' ) end [2025-04-08 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864072', 'tblTempVendorCDR_20' ) start [2025-04-08 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864072', 'tblTempVendorCDR_20' ) end [2025-04-08 18:36:20] Production.INFO: ProcessCDR(1,14864072,1,1,2) [2025-04-08 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864072', 'tblTempUsageDetail_20' ) start [2025-04-08 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864072', 'tblTempUsageDetail_20' ) end [2025-04-08 18:36:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:36:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:36:24] Production.INFO: ==10396== Releasing lock... [2025-04-08 18:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:36:24] Production.INFO: 55.75 MB #Memory Used# [2025-04-08 18:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:37:06 [end_date_ymd] => 2025-04-08 18:37:06 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:37:06' and `end` < '2025-04-08 18: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-04-08 18:37:19] Production.INFO: count ==3589 [2025-04-08 18:37:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:37:06 - End Time 2025-04-08 18:37:06 [2025-04-08 18:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864077', 'tblTempUsageDetail_20' ) start [2025-04-08 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864077', 'tblTempUsageDetail_20' ) end [2025-04-08 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864077', 'tblTempVendorCDR_20' ) start [2025-04-08 18:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864077', 'tblTempVendorCDR_20' ) end [2025-04-08 18:37:20] Production.INFO: ProcessCDR(1,14864077,1,1,2) [2025-04-08 18:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864077', 'tblTempUsageDetail_20' ) start [2025-04-08 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864077', 'tblTempUsageDetail_20' ) end [2025-04-08 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:37:24] Production.INFO: ==10477== Releasing lock... [2025-04-08 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:37:24] Production.INFO: 55.25 MB #Memory Used# [2025-04-08 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:38:05 [end_date_ymd] => 2025-04-08 18:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:38:05' and `end` < '2025-04-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-04-08 18:38:18] Production.INFO: count ==3581 [2025-04-08 18:38:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:38:05 - End Time 2025-04-08 18:38:05 [2025-04-08 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864082', 'tblTempUsageDetail_20' ) start [2025-04-08 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864082', 'tblTempUsageDetail_20' ) end [2025-04-08 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864082', 'tblTempVendorCDR_20' ) start [2025-04-08 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864082', 'tblTempVendorCDR_20' ) end [2025-04-08 18:38:19] Production.INFO: ProcessCDR(1,14864082,1,1,2) [2025-04-08 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864082', 'tblTempUsageDetail_20' ) start [2025-04-08 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864082', 'tblTempUsageDetail_20' ) end [2025-04-08 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:38:24] Production.INFO: ==10549== Releasing lock... [2025-04-08 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:38:24] Production.INFO: 55 MB #Memory Used# [2025-04-08 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:39:05 [end_date_ymd] => 2025-04-08 18:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:39:05' and `end` < '2025-04-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-04-08 18:39:18] Production.INFO: count ==3581 [2025-04-08 18:39:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:39:05 - End Time 2025-04-08 18:39:05 [2025-04-08 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864087', 'tblTempUsageDetail_20' ) start [2025-04-08 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864087', 'tblTempUsageDetail_20' ) end [2025-04-08 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864087', 'tblTempVendorCDR_20' ) start [2025-04-08 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864087', 'tblTempVendorCDR_20' ) end [2025-04-08 18:39:20] Production.INFO: ProcessCDR(1,14864087,1,1,2) [2025-04-08 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864087', 'tblTempUsageDetail_20' ) start [2025-04-08 18:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864087', 'tblTempUsageDetail_20' ) end [2025-04-08 18:39:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:39:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:39:23] Production.INFO: ==10620== Releasing lock... [2025-04-08 18:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:39:23] Production.INFO: 55 MB #Memory Used# [2025-04-08 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:40:05 [end_date_ymd] => 2025-04-08 18:40:05 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:40:05' and `end` < '2025-04-08 18: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-04-08 18:40:18] Production.INFO: count ==3566 [2025-04-08 18:40:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:40:05 - End Time 2025-04-08 18:40:05 [2025-04-08 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864092', 'tblTempUsageDetail_20' ) start [2025-04-08 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864092', 'tblTempUsageDetail_20' ) end [2025-04-08 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864092', 'tblTempVendorCDR_20' ) start [2025-04-08 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864092', 'tblTempVendorCDR_20' ) end [2025-04-08 18:40:20] Production.INFO: ProcessCDR(1,14864092,1,1,2) [2025-04-08 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864092', 'tblTempUsageDetail_20' ) start [2025-04-08 18:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864092', 'tblTempUsageDetail_20' ) end [2025-04-08 18:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:40:25] Production.INFO: ==10740== Releasing lock... [2025-04-08 18:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:40:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-08 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:41:05 [end_date_ymd] => 2025-04-08 18:41:05 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:41:05' and `end` < '2025-04-08 18: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-04-08 18:41:18] Production.INFO: count ==3525 [2025-04-08 18:41:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:41:05 - End Time 2025-04-08 18:41:05 [2025-04-08 18:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864098', 'tblTempUsageDetail_20' ) start [2025-04-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864098', 'tblTempUsageDetail_20' ) end [2025-04-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864098', 'tblTempVendorCDR_20' ) start [2025-04-08 18:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864098', 'tblTempVendorCDR_20' ) end [2025-04-08 18:41:19] Production.INFO: ProcessCDR(1,14864098,1,1,2) [2025-04-08 18:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864098', 'tblTempUsageDetail_20' ) start [2025-04-08 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864098', 'tblTempUsageDetail_20' ) end [2025-04-08 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:41:25] Production.INFO: ==10825== Releasing lock... [2025-04-08 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:41:25] Production.INFO: 54.75 MB #Memory Used# [2025-04-08 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:42:05 [end_date_ymd] => 2025-04-08 18:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:42:05' and `end` < '2025-04-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-04-08 18:42:19] Production.INFO: count ==3499 [2025-04-08 18:42:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:42:05 - End Time 2025-04-08 18:42:05 [2025-04-08 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864103', 'tblTempUsageDetail_20' ) start [2025-04-08 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864103', 'tblTempUsageDetail_20' ) end [2025-04-08 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864103', 'tblTempVendorCDR_20' ) start [2025-04-08 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864103', 'tblTempVendorCDR_20' ) end [2025-04-08 18:42:20] Production.INFO: ProcessCDR(1,14864103,1,1,2) [2025-04-08 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864103', 'tblTempUsageDetail_20' ) start [2025-04-08 18:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864103', 'tblTempUsageDetail_20' ) end [2025-04-08 18:42:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:42:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:42:25] Production.INFO: ==10902== Releasing lock... [2025-04-08 18:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:42:25] Production.INFO: 54 MB #Memory Used# [2025-04-08 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:43:05 [end_date_ymd] => 2025-04-08 18:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:43:05' and `end` < '2025-04-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-04-08 18:43:18] Production.INFO: count ==3493 [2025-04-08 18:43:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:43:05 - End Time 2025-04-08 18:43:05 [2025-04-08 18:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864108', 'tblTempUsageDetail_20' ) start [2025-04-08 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864108', 'tblTempUsageDetail_20' ) end [2025-04-08 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864108', 'tblTempVendorCDR_20' ) start [2025-04-08 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864108', 'tblTempVendorCDR_20' ) end [2025-04-08 18:43:20] Production.INFO: ProcessCDR(1,14864108,1,1,2) [2025-04-08 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864108', 'tblTempUsageDetail_20' ) start [2025-04-08 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864108', 'tblTempUsageDetail_20' ) end [2025-04-08 18:43:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:43:25] Production.INFO: ==10974== Releasing lock... [2025-04-08 18:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:43:25] Production.INFO: 54 MB #Memory Used# [2025-04-08 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:44:05 [end_date_ymd] => 2025-04-08 18:44:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:44:05' and `end` < '2025-04-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-04-08 18:44:19] Production.INFO: count ==3486 [2025-04-08 18:44:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:44:05 - End Time 2025-04-08 18:44:05 [2025-04-08 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864113', 'tblTempUsageDetail_20' ) start [2025-04-08 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864113', 'tblTempUsageDetail_20' ) end [2025-04-08 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864113', 'tblTempVendorCDR_20' ) start [2025-04-08 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864113', 'tblTempVendorCDR_20' ) end [2025-04-08 18:44:20] Production.INFO: ProcessCDR(1,14864113,1,1,2) [2025-04-08 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864113', 'tblTempUsageDetail_20' ) start [2025-04-08 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864113', 'tblTempUsageDetail_20' ) end [2025-04-08 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:44:25] Production.INFO: ==11048== Releasing lock... [2025-04-08 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:44:25] Production.INFO: 54 MB #Memory Used# [2025-04-08 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:45:05 [end_date_ymd] => 2025-04-08 18:45:05 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:45:05' and `end` < '2025-04-08 18: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-04-08 18:45:19] Production.INFO: count ==3468 [2025-04-08 18:45:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:45:05 - End Time 2025-04-08 18:45:05 [2025-04-08 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864118', 'tblTempUsageDetail_20' ) start [2025-04-08 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864118', 'tblTempUsageDetail_20' ) end [2025-04-08 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864118', 'tblTempVendorCDR_20' ) start [2025-04-08 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864118', 'tblTempVendorCDR_20' ) end [2025-04-08 18:45:20] Production.INFO: ProcessCDR(1,14864118,1,1,2) [2025-04-08 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864118', 'tblTempUsageDetail_20' ) start [2025-04-08 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864118', 'tblTempUsageDetail_20' ) end [2025-04-08 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:45:23] Production.INFO: ==11121== Releasing lock... [2025-04-08 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:45:23] Production.INFO: 54 MB #Memory Used# [2025-04-08 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:46:05 [end_date_ymd] => 2025-04-08 18:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:46:05' and `end` < '2025-04-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-04-08 18:46:19] Production.INFO: count ==3443 [2025-04-08 18:46:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:46:05 - End Time 2025-04-08 18:46:05 [2025-04-08 18:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864123', 'tblTempUsageDetail_20' ) start [2025-04-08 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864123', 'tblTempUsageDetail_20' ) end [2025-04-08 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864123', 'tblTempVendorCDR_20' ) start [2025-04-08 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864123', 'tblTempVendorCDR_20' ) end [2025-04-08 18:46:20] Production.INFO: ProcessCDR(1,14864123,1,1,2) [2025-04-08 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864123', 'tblTempUsageDetail_20' ) start [2025-04-08 18:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864123', 'tblTempUsageDetail_20' ) end [2025-04-08 18:46:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:46:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:46:25] Production.INFO: ==11199== Releasing lock... [2025-04-08 18:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:46:25] Production.INFO: 53.75 MB #Memory Used# [2025-04-08 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:47:05 [end_date_ymd] => 2025-04-08 18:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:47:05' and `end` < '2025-04-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-04-08 18:47:18] Production.INFO: count ==3423 [2025-04-08 18:47:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:47:05 - End Time 2025-04-08 18:47:05 [2025-04-08 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864128', 'tblTempUsageDetail_20' ) start [2025-04-08 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864128', 'tblTempUsageDetail_20' ) end [2025-04-08 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864128', 'tblTempVendorCDR_20' ) start [2025-04-08 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864128', 'tblTempVendorCDR_20' ) end [2025-04-08 18:47:19] Production.INFO: ProcessCDR(1,14864128,1,1,2) [2025-04-08 18:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864128', 'tblTempUsageDetail_20' ) start [2025-04-08 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864128', 'tblTempUsageDetail_20' ) end [2025-04-08 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:47:24] Production.INFO: ==11272== Releasing lock... [2025-04-08 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:47:24] Production.INFO: 53.75 MB #Memory Used# [2025-04-08 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:48:05 [end_date_ymd] => 2025-04-08 18:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:48:05' and `end` < '2025-04-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-04-08 18:48:18] Production.INFO: count ==3408 [2025-04-08 18:48:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:48:05 - End Time 2025-04-08 18:48:05 [2025-04-08 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864133', 'tblTempUsageDetail_20' ) start [2025-04-08 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864133', 'tblTempUsageDetail_20' ) end [2025-04-08 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864133', 'tblTempVendorCDR_20' ) start [2025-04-08 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864133', 'tblTempVendorCDR_20' ) end [2025-04-08 18:48:20] Production.INFO: ProcessCDR(1,14864133,1,1,2) [2025-04-08 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864133', 'tblTempUsageDetail_20' ) start [2025-04-08 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864133', 'tblTempUsageDetail_20' ) end [2025-04-08 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:48:23] Production.INFO: ==11344== Releasing lock... [2025-04-08 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:48:23] Production.INFO: 54 MB #Memory Used# [2025-04-08 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:49:05 [end_date_ymd] => 2025-04-08 18:49:05 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:49:05' and `end` < '2025-04-08 18: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-04-08 18:49:19] Production.INFO: count ==3404 [2025-04-08 18:49:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:49:05 - End Time 2025-04-08 18:49:05 [2025-04-08 18:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864138', 'tblTempUsageDetail_20' ) start [2025-04-08 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864138', 'tblTempUsageDetail_20' ) end [2025-04-08 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864138', 'tblTempVendorCDR_20' ) start [2025-04-08 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864138', 'tblTempVendorCDR_20' ) end [2025-04-08 18:49:20] Production.INFO: ProcessCDR(1,14864138,1,1,2) [2025-04-08 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864138', 'tblTempUsageDetail_20' ) start [2025-04-08 18:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864138', 'tblTempUsageDetail_20' ) end [2025-04-08 18:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:49:25] Production.INFO: ==11423== Releasing lock... [2025-04-08 18:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:49:25] Production.INFO: 53.5 MB #Memory Used# [2025-04-08 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:50:06 [end_date_ymd] => 2025-04-08 18:50:06 [RateCDR] => 1 ) [2025-04-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-04-08 15:50:06' and `end` < '2025-04-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-04-08 18:50:19] Production.INFO: count ==3396 [2025-04-08 18:50:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:50:06 - End Time 2025-04-08 18:50:06 [2025-04-08 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864144', 'tblTempUsageDetail_20' ) start [2025-04-08 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864144', 'tblTempUsageDetail_20' ) end [2025-04-08 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864144', 'tblTempVendorCDR_20' ) start [2025-04-08 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864144', 'tblTempVendorCDR_20' ) end [2025-04-08 18:50:20] Production.INFO: ProcessCDR(1,14864144,1,1,2) [2025-04-08 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864144', 'tblTempUsageDetail_20' ) start [2025-04-08 18:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864144', 'tblTempUsageDetail_20' ) end [2025-04-08 18:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:50:24] Production.INFO: ==11497== Releasing lock... [2025-04-08 18:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:50:24] Production.INFO: 53.25 MB #Memory Used# [2025-04-08 18:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:51:06 [end_date_ymd] => 2025-04-08 18:51:06 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:51:06' and `end` < '2025-04-08 18: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-04-08 18:51:19] Production.INFO: count ==3299 [2025-04-08 18:51:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:51:06 - End Time 2025-04-08 18:51:06 [2025-04-08 18:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864149', 'tblTempUsageDetail_20' ) start [2025-04-08 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864149', 'tblTempUsageDetail_20' ) end [2025-04-08 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864149', 'tblTempVendorCDR_20' ) start [2025-04-08 18:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864149', 'tblTempVendorCDR_20' ) end [2025-04-08 18:51:20] Production.INFO: ProcessCDR(1,14864149,1,1,2) [2025-04-08 18:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864149', 'tblTempUsageDetail_20' ) start [2025-04-08 18:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864149', 'tblTempUsageDetail_20' ) end [2025-04-08 18:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:51:24] Production.INFO: ==11573== Releasing lock... [2025-04-08 18:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:51:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-08 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:52:05 [end_date_ymd] => 2025-04-08 18:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:52:05' and `end` < '2025-04-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-04-08 18:52:19] Production.INFO: count ==3269 [2025-04-08 18:52:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:52:05 - End Time 2025-04-08 18:52:05 [2025-04-08 18:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864154', 'tblTempUsageDetail_20' ) start [2025-04-08 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864154', 'tblTempUsageDetail_20' ) end [2025-04-08 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864154', 'tblTempVendorCDR_20' ) start [2025-04-08 18:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864154', 'tblTempVendorCDR_20' ) end [2025-04-08 18:52:20] Production.INFO: ProcessCDR(1,14864154,1,1,2) [2025-04-08 18:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864154', 'tblTempUsageDetail_20' ) start [2025-04-08 18:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864154', 'tblTempUsageDetail_20' ) end [2025-04-08 18:52:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:52:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:52:25] Production.INFO: ==11645== Releasing lock... [2025-04-08 18:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:52:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-08 18:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:53:06 [end_date_ymd] => 2025-04-08 18:53:06 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:53:06' and `end` < '2025-04-08 18: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-04-08 18:53:19] Production.INFO: count ==3253 [2025-04-08 18:53:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:53:06 - End Time 2025-04-08 18:53:06 [2025-04-08 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864159', 'tblTempUsageDetail_20' ) start [2025-04-08 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864159', 'tblTempUsageDetail_20' ) end [2025-04-08 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864159', 'tblTempVendorCDR_20' ) start [2025-04-08 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864159', 'tblTempVendorCDR_20' ) end [2025-04-08 18:53:20] Production.INFO: ProcessCDR(1,14864159,1,1,2) [2025-04-08 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864159', 'tblTempUsageDetail_20' ) start [2025-04-08 18:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864159', 'tblTempUsageDetail_20' ) end [2025-04-08 18:53:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:53:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:53:25] Production.INFO: ==11717== Releasing lock... [2025-04-08 18:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:53:25] Production.INFO: 52.25 MB #Memory Used# [2025-04-08 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:54:05 [end_date_ymd] => 2025-04-08 18:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:54:05' and `end` < '2025-04-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-04-08 18:54:18] Production.INFO: count ==3232 [2025-04-08 18:54:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:54:05 - End Time 2025-04-08 18:54:05 [2025-04-08 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864164', 'tblTempUsageDetail_20' ) start [2025-04-08 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864164', 'tblTempUsageDetail_20' ) end [2025-04-08 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864164', 'tblTempVendorCDR_20' ) start [2025-04-08 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864164', 'tblTempVendorCDR_20' ) end [2025-04-08 18:54:19] Production.INFO: ProcessCDR(1,14864164,1,1,2) [2025-04-08 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864164', 'tblTempUsageDetail_20' ) start [2025-04-08 18:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864164', 'tblTempUsageDetail_20' ) end [2025-04-08 18:54:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:54:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:54:25] Production.INFO: ==11795== Releasing lock... [2025-04-08 18:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:54:25] Production.INFO: 53 MB #Memory Used# [2025-04-08 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:55:05 [end_date_ymd] => 2025-04-08 18:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:55:05' and `end` < '2025-04-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-04-08 18:55:19] Production.INFO: count ==3202 [2025-04-08 18:55:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:55:05 - End Time 2025-04-08 18:55:05 [2025-04-08 18:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864169', 'tblTempUsageDetail_20' ) start [2025-04-08 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864169', 'tblTempUsageDetail_20' ) end [2025-04-08 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864169', 'tblTempVendorCDR_20' ) start [2025-04-08 18:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864169', 'tblTempVendorCDR_20' ) end [2025-04-08 18:55:20] Production.INFO: ProcessCDR(1,14864169,1,1,2) [2025-04-08 18:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864169', 'tblTempUsageDetail_20' ) start [2025-04-08 18:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864169', 'tblTempUsageDetail_20' ) end [2025-04-08 18:55:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:55:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:55:25] Production.INFO: ==11873== Releasing lock... [2025-04-08 18:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:55:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-08 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:56:05 [end_date_ymd] => 2025-04-08 18:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:56:05' and `end` < '2025-04-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-04-08 18:56:18] Production.INFO: count ==3193 [2025-04-08 18:56:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:56:05 - End Time 2025-04-08 18:56:05 [2025-04-08 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864174', 'tblTempUsageDetail_20' ) start [2025-04-08 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864174', 'tblTempUsageDetail_20' ) end [2025-04-08 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864174', 'tblTempVendorCDR_20' ) start [2025-04-08 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864174', 'tblTempVendorCDR_20' ) end [2025-04-08 18:56:19] Production.INFO: ProcessCDR(1,14864174,1,1,2) [2025-04-08 18:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864174', 'tblTempUsageDetail_20' ) start [2025-04-08 18:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864174', 'tblTempUsageDetail_20' ) end [2025-04-08 18:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:56:24] Production.INFO: ==11991== Releasing lock... [2025-04-08 18:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:56:24] Production.INFO: 51.75 MB #Memory Used# [2025-04-08 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:57:05 [end_date_ymd] => 2025-04-08 18:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 15:57:05' and `end` < '2025-04-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-04-08 18:57:19] Production.INFO: count ==3183 [2025-04-08 18:57:20] Production.ERROR: pbx CDR StartTime 2025-04-08 15:57:05 - End Time 2025-04-08 18:57:05 [2025-04-08 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864179', 'tblTempUsageDetail_20' ) start [2025-04-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864179', 'tblTempUsageDetail_20' ) end [2025-04-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864179', 'tblTempVendorCDR_20' ) start [2025-04-08 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864179', 'tblTempVendorCDR_20' ) end [2025-04-08 18:57:20] Production.INFO: ProcessCDR(1,14864179,1,1,2) [2025-04-08 18:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864179', 'tblTempUsageDetail_20' ) start [2025-04-08 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864179', 'tblTempUsageDetail_20' ) end [2025-04-08 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:57:25] Production.INFO: ==12062== Releasing lock... [2025-04-08 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:57:25] Production.INFO: 51.75 MB #Memory Used# [2025-04-08 18:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:58:04 [end_date_ymd] => 2025-04-08 18:58:04 [RateCDR] => 1 ) [2025-04-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-04-08 15:58:04' and `end` < '2025-04-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-04-08 18:58:18] Production.INFO: count ==3173 [2025-04-08 18:58:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:58:04 - End Time 2025-04-08 18:58:04 [2025-04-08 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864184', 'tblTempUsageDetail_20' ) start [2025-04-08 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864184', 'tblTempUsageDetail_20' ) end [2025-04-08 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864184', 'tblTempVendorCDR_20' ) start [2025-04-08 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864184', 'tblTempVendorCDR_20' ) end [2025-04-08 18:58:19] Production.INFO: ProcessCDR(1,14864184,1,1,2) [2025-04-08 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864184', 'tblTempUsageDetail_20' ) start [2025-04-08 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864184', 'tblTempUsageDetail_20' ) end [2025-04-08 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:58:24] Production.INFO: ==12132== Releasing lock... [2025-04-08 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:58:24] Production.INFO: 52.5 MB #Memory Used# [2025-04-08 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 15:59:05 [end_date_ymd] => 2025-04-08 18:59:05 [RateCDR] => 1 ) [2025-04-08 18: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-04-08 15:59:05' and `end` < '2025-04-08 18: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-04-08 18:59:18] Production.INFO: count ==3165 [2025-04-08 18:59:19] Production.ERROR: pbx CDR StartTime 2025-04-08 15:59:05 - End Time 2025-04-08 18:59:05 [2025-04-08 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864189', 'tblTempUsageDetail_20' ) start [2025-04-08 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864189', 'tblTempUsageDetail_20' ) end [2025-04-08 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864189', 'tblTempVendorCDR_20' ) start [2025-04-08 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864189', 'tblTempVendorCDR_20' ) end [2025-04-08 18:59:19] Production.INFO: ProcessCDR(1,14864189,1,1,2) [2025-04-08 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 18:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864189', 'tblTempUsageDetail_20' ) start [2025-04-08 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864189', 'tblTempUsageDetail_20' ) end [2025-04-08 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 18:59:23] Production.INFO: ==12207== Releasing lock... [2025-04-08 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 18:59:23] Production.INFO: 51.5 MB #Memory Used# [2025-04-08 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:00:05 [end_date_ymd] => 2025-04-08 19:00:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:00:05' and `end` < '2025-04-08 19: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-04-08 19:00:19] Production.INFO: count ==3149 [2025-04-08 19:00:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:00:05 - End Time 2025-04-08 19:00:05 [2025-04-08 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864194', 'tblTempUsageDetail_20' ) start [2025-04-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864194', 'tblTempUsageDetail_20' ) end [2025-04-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864194', 'tblTempVendorCDR_20' ) start [2025-04-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864194', 'tblTempVendorCDR_20' ) end [2025-04-08 19:00:20] Production.INFO: ProcessCDR(1,14864194,1,1,2) [2025-04-08 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864194', 'tblTempUsageDetail_20' ) start [2025-04-08 19:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864194', 'tblTempUsageDetail_20' ) end [2025-04-08 19:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:00:25] Production.INFO: ==12285== Releasing lock... [2025-04-08 19:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:00:25] Production.INFO: 52.5 MB #Memory Used# [2025-04-08 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:01:05 [end_date_ymd] => 2025-04-08 19:01:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:01:05' and `end` < '2025-04-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-04-08 19:01:19] Production.INFO: count ==3048 [2025-04-08 19:01:20] Production.ERROR: pbx CDR StartTime 2025-04-08 16:01:05 - End Time 2025-04-08 19:01:05 [2025-04-08 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864200', 'tblTempUsageDetail_20' ) start [2025-04-08 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864200', 'tblTempUsageDetail_20' ) end [2025-04-08 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864200', 'tblTempVendorCDR_20' ) start [2025-04-08 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864200', 'tblTempVendorCDR_20' ) end [2025-04-08 19:01:20] Production.INFO: ProcessCDR(1,14864200,1,1,2) [2025-04-08 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864200', 'tblTempUsageDetail_20' ) start [2025-04-08 19:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864200', 'tblTempUsageDetail_20' ) end [2025-04-08 19:01:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:01:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:01:25] Production.INFO: ==12375== Releasing lock... [2025-04-08 19:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:01:25] Production.INFO: 50.75 MB #Memory Used# [2025-04-08 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:02:04 [end_date_ymd] => 2025-04-08 19:02:04 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:02:04' and `end` < '2025-04-08 19: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-04-08 19:02:18] Production.INFO: count ==3037 [2025-04-08 19:02:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:02:04 - End Time 2025-04-08 19:02:04 [2025-04-08 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864205', 'tblTempUsageDetail_20' ) start [2025-04-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864205', 'tblTempUsageDetail_20' ) end [2025-04-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864205', 'tblTempVendorCDR_20' ) start [2025-04-08 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864205', 'tblTempVendorCDR_20' ) end [2025-04-08 19:02:19] Production.INFO: ProcessCDR(1,14864205,1,1,2) [2025-04-08 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864205', 'tblTempUsageDetail_20' ) start [2025-04-08 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864205', 'tblTempUsageDetail_20' ) end [2025-04-08 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:02:22] Production.INFO: ==12524== Releasing lock... [2025-04-08 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:02:22] Production.INFO: 50.75 MB #Memory Used# [2025-04-08 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:03:05 [end_date_ymd] => 2025-04-08 19:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:03:05' and `end` < '2025-04-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-04-08 19:03:18] Production.INFO: count ==3002 [2025-04-08 19:03:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:03:05 - End Time 2025-04-08 19:03:05 [2025-04-08 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864210', 'tblTempUsageDetail_20' ) start [2025-04-08 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864210', 'tblTempUsageDetail_20' ) end [2025-04-08 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864210', 'tblTempVendorCDR_20' ) start [2025-04-08 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864210', 'tblTempVendorCDR_20' ) end [2025-04-08 19:03:19] Production.INFO: ProcessCDR(1,14864210,1,1,2) [2025-04-08 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864210', 'tblTempUsageDetail_20' ) start [2025-04-08 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864210', 'tblTempUsageDetail_20' ) end [2025-04-08 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:03:24] Production.INFO: ==12597== Releasing lock... [2025-04-08 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:03:24] Production.INFO: 50.5 MB #Memory Used# [2025-04-08 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:04:06 [end_date_ymd] => 2025-04-08 19:04:06 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:04:06' and `end` < '2025-04-08 19: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-04-08 19:04:19] Production.INFO: count ==2989 [2025-04-08 19:04:20] Production.ERROR: pbx CDR StartTime 2025-04-08 16:04:06 - End Time 2025-04-08 19:04:06 [2025-04-08 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864215', 'tblTempUsageDetail_20' ) start [2025-04-08 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864215', 'tblTempUsageDetail_20' ) end [2025-04-08 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864215', 'tblTempVendorCDR_20' ) start [2025-04-08 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864215', 'tblTempVendorCDR_20' ) end [2025-04-08 19:04:20] Production.INFO: ProcessCDR(1,14864215,1,1,2) [2025-04-08 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864215', 'tblTempUsageDetail_20' ) start [2025-04-08 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864215', 'tblTempUsageDetail_20' ) end [2025-04-08 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:04:25] Production.INFO: ==12672== Releasing lock... [2025-04-08 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:04:25] Production.INFO: 50.5 MB #Memory Used# [2025-04-08 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:05:05 [end_date_ymd] => 2025-04-08 19:05:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:05:05' and `end` < '2025-04-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-04-08 19:05:18] Production.INFO: count ==2978 [2025-04-08 19:05:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:05:05 - End Time 2025-04-08 19:05:05 [2025-04-08 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864220', 'tblTempUsageDetail_20' ) start [2025-04-08 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864220', 'tblTempUsageDetail_20' ) end [2025-04-08 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864220', 'tblTempVendorCDR_20' ) start [2025-04-08 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864220', 'tblTempVendorCDR_20' ) end [2025-04-08 19:05:19] Production.INFO: ProcessCDR(1,14864220,1,1,2) [2025-04-08 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864220', 'tblTempUsageDetail_20' ) start [2025-04-08 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864220', 'tblTempUsageDetail_20' ) end [2025-04-08 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:05:24] Production.INFO: ==12822== Releasing lock... [2025-04-08 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:05:24] Production.INFO: 50.25 MB #Memory Used# [2025-04-08 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:06:05 [end_date_ymd] => 2025-04-08 19:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:06:05' and `end` < '2025-04-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-04-08 19:06:19] Production.INFO: count ==2975 [2025-04-08 19:06:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:06:05 - End Time 2025-04-08 19:06:05 [2025-04-08 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864225', 'tblTempUsageDetail_20' ) start [2025-04-08 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864225', 'tblTempUsageDetail_20' ) end [2025-04-08 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864225', 'tblTempVendorCDR_20' ) start [2025-04-08 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864225', 'tblTempVendorCDR_20' ) end [2025-04-08 19:06:20] Production.INFO: ProcessCDR(1,14864225,1,1,2) [2025-04-08 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864225', 'tblTempUsageDetail_20' ) start [2025-04-08 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864225', 'tblTempUsageDetail_20' ) end [2025-04-08 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:06:25] Production.INFO: ==12898== Releasing lock... [2025-04-08 19:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:06:25] Production.INFO: 50.25 MB #Memory Used# [2025-04-08 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:07:05 [end_date_ymd] => 2025-04-08 19:07:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:07:05' and `end` < '2025-04-08 19: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-04-08 19:07:18] Production.INFO: count ==2958 [2025-04-08 19:07:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:07:05 - End Time 2025-04-08 19:07:05 [2025-04-08 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864230', 'tblTempUsageDetail_20' ) start [2025-04-08 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864230', 'tblTempUsageDetail_20' ) end [2025-04-08 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864230', 'tblTempVendorCDR_20' ) start [2025-04-08 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864230', 'tblTempVendorCDR_20' ) end [2025-04-08 19:07:19] Production.INFO: ProcessCDR(1,14864230,1,1,2) [2025-04-08 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864230', 'tblTempUsageDetail_20' ) start [2025-04-08 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864230', 'tblTempUsageDetail_20' ) end [2025-04-08 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:07:23] Production.INFO: ==12971== Releasing lock... [2025-04-08 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:07:23] Production.INFO: 50.25 MB #Memory Used# [2025-04-08 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:08:05 [end_date_ymd] => 2025-04-08 19:08:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:08:05' and `end` < '2025-04-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-04-08 19:08:19] Production.INFO: count ==2947 [2025-04-08 19:08:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:08:05 - End Time 2025-04-08 19:08:05 [2025-04-08 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864235', 'tblTempUsageDetail_20' ) start [2025-04-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864235', 'tblTempUsageDetail_20' ) end [2025-04-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864235', 'tblTempVendorCDR_20' ) start [2025-04-08 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864235', 'tblTempVendorCDR_20' ) end [2025-04-08 19:08:19] Production.INFO: ProcessCDR(1,14864235,1,1,2) [2025-04-08 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864235', 'tblTempUsageDetail_20' ) start [2025-04-08 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864235', 'tblTempUsageDetail_20' ) end [2025-04-08 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:08:24] Production.INFO: ==13045== Releasing lock... [2025-04-08 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:08:24] Production.INFO: 50.25 MB #Memory Used# [2025-04-08 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:09:05 [end_date_ymd] => 2025-04-08 19:09:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:09:05' and `end` < '2025-04-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-04-08 19:09:18] Production.INFO: count ==2944 [2025-04-08 19:09:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:09:05 - End Time 2025-04-08 19:09:05 [2025-04-08 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864240', 'tblTempUsageDetail_20' ) start [2025-04-08 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864240', 'tblTempUsageDetail_20' ) end [2025-04-08 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864240', 'tblTempVendorCDR_20' ) start [2025-04-08 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864240', 'tblTempVendorCDR_20' ) end [2025-04-08 19:09:19] Production.INFO: ProcessCDR(1,14864240,1,1,2) [2025-04-08 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864240', 'tblTempUsageDetail_20' ) start [2025-04-08 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864240', 'tblTempUsageDetail_20' ) end [2025-04-08 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:09:24] Production.INFO: ==13196== Releasing lock... [2025-04-08 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:09:24] Production.INFO: 50.75 MB #Memory Used# [2025-04-08 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:10:06 [end_date_ymd] => 2025-04-08 19:10:06 [RateCDR] => 1 ) [2025-04-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-04-08 16:10:06' and `end` < '2025-04-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-04-08 19:10:20] Production.INFO: count ==2926 [2025-04-08 19:10:21] Production.ERROR: pbx CDR StartTime 2025-04-08 16:10:06 - End Time 2025-04-08 19:10:06 [2025-04-08 19:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864246', 'tblTempUsageDetail_20' ) start [2025-04-08 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864246', 'tblTempUsageDetail_20' ) end [2025-04-08 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864246', 'tblTempVendorCDR_20' ) start [2025-04-08 19:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864246', 'tblTempVendorCDR_20' ) end [2025-04-08 19:10:21] Production.INFO: ProcessCDR(1,14864246,1,1,2) [2025-04-08 19:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864246', 'tblTempUsageDetail_20' ) start [2025-04-08 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864246', 'tblTempUsageDetail_20' ) end [2025-04-08 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:10:24] Production.INFO: ==13278== Releasing lock... [2025-04-08 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:10:24] Production.INFO: 50 MB #Memory Used# [2025-04-08 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:11:04 [end_date_ymd] => 2025-04-08 19:11:04 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:11:04' and `end` < '2025-04-08 19: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-04-08 19:11:18] Production.INFO: count ==2854 [2025-04-08 19:11:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:11:04 - End Time 2025-04-08 19:11:04 [2025-04-08 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864251', 'tblTempUsageDetail_20' ) start [2025-04-08 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864251', 'tblTempUsageDetail_20' ) end [2025-04-08 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864251', 'tblTempVendorCDR_20' ) start [2025-04-08 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864251', 'tblTempVendorCDR_20' ) end [2025-04-08 19:11:19] Production.INFO: ProcessCDR(1,14864251,1,1,2) [2025-04-08 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864251', 'tblTempUsageDetail_20' ) start [2025-04-08 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864251', 'tblTempUsageDetail_20' ) end [2025-04-08 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:11:22] Production.INFO: ==13394== Releasing lock... [2025-04-08 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:11:22] Production.INFO: 49.5 MB #Memory Used# [2025-04-08 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:12:05 [end_date_ymd] => 2025-04-08 19:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:12:05' and `end` < '2025-04-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-04-08 19:12:18] Production.INFO: count ==2839 [2025-04-08 19:12:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:12:05 - End Time 2025-04-08 19:12:05 [2025-04-08 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864256', 'tblTempUsageDetail_20' ) start [2025-04-08 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864256', 'tblTempUsageDetail_20' ) end [2025-04-08 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864256', 'tblTempVendorCDR_20' ) start [2025-04-08 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864256', 'tblTempVendorCDR_20' ) end [2025-04-08 19:12:19] Production.INFO: ProcessCDR(1,14864256,1,1,2) [2025-04-08 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864256', 'tblTempUsageDetail_20' ) start [2025-04-08 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864256', 'tblTempUsageDetail_20' ) end [2025-04-08 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:12:24] Production.INFO: ==13543== Releasing lock... [2025-04-08 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:12:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-08 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:13:05 [end_date_ymd] => 2025-04-08 19:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:13:05' and `end` < '2025-04-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-04-08 19:13:18] Production.INFO: count ==2833 [2025-04-08 19:13:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:13:05 - End Time 2025-04-08 19:13:05 [2025-04-08 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864261', 'tblTempUsageDetail_20' ) start [2025-04-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864261', 'tblTempUsageDetail_20' ) end [2025-04-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864261', 'tblTempVendorCDR_20' ) start [2025-04-08 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864261', 'tblTempVendorCDR_20' ) end [2025-04-08 19:13:19] Production.INFO: ProcessCDR(1,14864261,1,1,2) [2025-04-08 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864261', 'tblTempUsageDetail_20' ) start [2025-04-08 19:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864261', 'tblTempUsageDetail_20' ) end [2025-04-08 19:13:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:13:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:13:23] Production.INFO: ==13614== Releasing lock... [2025-04-08 19:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:13:23] Production.INFO: 49.75 MB #Memory Used# [2025-04-08 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:14:05 [end_date_ymd] => 2025-04-08 19:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:14:05' and `end` < '2025-04-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-04-08 19:14:18] Production.INFO: count ==2821 [2025-04-08 19:14:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:14:05 - End Time 2025-04-08 19:14:05 [2025-04-08 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864266', 'tblTempUsageDetail_20' ) start [2025-04-08 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864266', 'tblTempUsageDetail_20' ) end [2025-04-08 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864266', 'tblTempVendorCDR_20' ) start [2025-04-08 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864266', 'tblTempVendorCDR_20' ) end [2025-04-08 19:14:19] Production.INFO: ProcessCDR(1,14864266,1,1,2) [2025-04-08 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864266', 'tblTempUsageDetail_20' ) start [2025-04-08 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864266', 'tblTempUsageDetail_20' ) end [2025-04-08 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:14:24] Production.INFO: ==13691== Releasing lock... [2025-04-08 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:14:24] Production.INFO: 49 MB #Memory Used# [2025-04-08 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:15:05 [end_date_ymd] => 2025-04-08 19:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:15:05' and `end` < '2025-04-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-04-08 19:15:18] Production.INFO: count ==2809 [2025-04-08 19:15:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:15:05 - End Time 2025-04-08 19:15:05 [2025-04-08 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864271', 'tblTempUsageDetail_20' ) start [2025-04-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864271', 'tblTempUsageDetail_20' ) end [2025-04-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864271', 'tblTempVendorCDR_20' ) start [2025-04-08 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864271', 'tblTempVendorCDR_20' ) end [2025-04-08 19:15:19] Production.INFO: ProcessCDR(1,14864271,1,1,2) [2025-04-08 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864271', 'tblTempUsageDetail_20' ) start [2025-04-08 19:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864271', 'tblTempUsageDetail_20' ) end [2025-04-08 19:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:15:22] Production.INFO: ==13804== Releasing lock... [2025-04-08 19:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:15:22] Production.INFO: 49.25 MB #Memory Used# [2025-04-08 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:16:05 [end_date_ymd] => 2025-04-08 19:16:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:16:05' and `end` < '2025-04-08 19: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-04-08 19:16:18] Production.INFO: count ==2805 [2025-04-08 19:16:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:16:05 - End Time 2025-04-08 19:16:05 [2025-04-08 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864276', 'tblTempUsageDetail_20' ) start [2025-04-08 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864276', 'tblTempUsageDetail_20' ) end [2025-04-08 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864276', 'tblTempVendorCDR_20' ) start [2025-04-08 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864276', 'tblTempVendorCDR_20' ) end [2025-04-08 19:16:19] Production.INFO: ProcessCDR(1,14864276,1,1,2) [2025-04-08 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864276', 'tblTempUsageDetail_20' ) start [2025-04-08 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864276', 'tblTempUsageDetail_20' ) end [2025-04-08 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:16:24] Production.INFO: ==13915== Releasing lock... [2025-04-08 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:16:24] Production.INFO: 49.5 MB #Memory Used# [2025-04-08 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:17:05 [end_date_ymd] => 2025-04-08 19:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:17:05' and `end` < '2025-04-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-04-08 19:17:19] Production.INFO: count ==2806 [2025-04-08 19:17:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:17:05 - End Time 2025-04-08 19:17:05 [2025-04-08 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864281', 'tblTempUsageDetail_20' ) start [2025-04-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864281', 'tblTempUsageDetail_20' ) end [2025-04-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864281', 'tblTempVendorCDR_20' ) start [2025-04-08 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864281', 'tblTempVendorCDR_20' ) end [2025-04-08 19:17:19] Production.INFO: ProcessCDR(1,14864281,1,1,2) [2025-04-08 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864281', 'tblTempUsageDetail_20' ) start [2025-04-08 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864281', 'tblTempUsageDetail_20' ) end [2025-04-08 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:17:23] Production.INFO: ==13988== Releasing lock... [2025-04-08 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:17:23] Production.INFO: 49.25 MB #Memory Used# [2025-04-08 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:18:05 [end_date_ymd] => 2025-04-08 19:18:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:18:05' and `end` < '2025-04-08 19: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-04-08 19:18:19] Production.INFO: count ==2794 [2025-04-08 19:18:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:18:05 - End Time 2025-04-08 19:18:05 [2025-04-08 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864286', 'tblTempUsageDetail_20' ) start [2025-04-08 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864286', 'tblTempUsageDetail_20' ) end [2025-04-08 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864286', 'tblTempVendorCDR_20' ) start [2025-04-08 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864286', 'tblTempVendorCDR_20' ) end [2025-04-08 19:18:19] Production.INFO: ProcessCDR(1,14864286,1,1,2) [2025-04-08 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864286', 'tblTempUsageDetail_20' ) start [2025-04-08 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864286', 'tblTempUsageDetail_20' ) end [2025-04-08 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:18:24] Production.INFO: ==14065== Releasing lock... [2025-04-08 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:18:24] Production.INFO: 49 MB #Memory Used# [2025-04-08 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:19:05 [end_date_ymd] => 2025-04-08 19:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:19:05' and `end` < '2025-04-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-04-08 19:19:19] Production.INFO: count ==2788 [2025-04-08 19:19:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:19:05 - End Time 2025-04-08 19:19:05 [2025-04-08 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864291', 'tblTempUsageDetail_20' ) start [2025-04-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864291', 'tblTempUsageDetail_20' ) end [2025-04-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864291', 'tblTempVendorCDR_20' ) start [2025-04-08 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864291', 'tblTempVendorCDR_20' ) end [2025-04-08 19:19:19] Production.INFO: ProcessCDR(1,14864291,1,1,2) [2025-04-08 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864291', 'tblTempUsageDetail_20' ) start [2025-04-08 19:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864291', 'tblTempUsageDetail_20' ) end [2025-04-08 19:19:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:19:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:19:23] Production.INFO: ==14138== Releasing lock... [2025-04-08 19:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:19:23] Production.INFO: 49 MB #Memory Used# [2025-04-08 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:20:05 [end_date_ymd] => 2025-04-08 19:20:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:20:05' and `end` < '2025-04-08 19: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-04-08 19:20:19] Production.INFO: count ==2773 [2025-04-08 19:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:20:05 - End Time 2025-04-08 19:20:05 [2025-04-08 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864297', 'tblTempUsageDetail_20' ) start [2025-04-08 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864297', 'tblTempUsageDetail_20' ) end [2025-04-08 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864297', 'tblTempVendorCDR_20' ) start [2025-04-08 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864297', 'tblTempVendorCDR_20' ) end [2025-04-08 19:20:19] Production.INFO: ProcessCDR(1,14864297,1,1,2) [2025-04-08 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864297', 'tblTempUsageDetail_20' ) start [2025-04-08 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864297', 'tblTempUsageDetail_20' ) end [2025-04-08 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:20:23] Production.INFO: ==14213== Releasing lock... [2025-04-08 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:20:23] Production.INFO: 49 MB #Memory Used# [2025-04-08 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:21:05 [end_date_ymd] => 2025-04-08 19:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:21:05' and `end` < '2025-04-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-04-08 19:21:19] Production.INFO: count ==2708 [2025-04-08 19:21:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:21:05 - End Time 2025-04-08 19:21:05 [2025-04-08 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864302', 'tblTempUsageDetail_20' ) start [2025-04-08 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864302', 'tblTempUsageDetail_20' ) end [2025-04-08 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864302', 'tblTempVendorCDR_20' ) start [2025-04-08 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864302', 'tblTempVendorCDR_20' ) end [2025-04-08 19:21:19] Production.INFO: ProcessCDR(1,14864302,1,1,2) [2025-04-08 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864302', 'tblTempUsageDetail_20' ) start [2025-04-08 19:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864302', 'tblTempUsageDetail_20' ) end [2025-04-08 19:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:21:23] Production.INFO: ==14285== Releasing lock... [2025-04-08 19:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:21:23] Production.INFO: 48.5 MB #Memory Used# [2025-04-08 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:22:05 [end_date_ymd] => 2025-04-08 19:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:22:05' and `end` < '2025-04-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-04-08 19:22:18] Production.INFO: count ==2702 [2025-04-08 19:22:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:22:05 - End Time 2025-04-08 19:22:05 [2025-04-08 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864307', 'tblTempUsageDetail_20' ) start [2025-04-08 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864307', 'tblTempUsageDetail_20' ) end [2025-04-08 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864307', 'tblTempVendorCDR_20' ) start [2025-04-08 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864307', 'tblTempVendorCDR_20' ) end [2025-04-08 19:22:19] Production.INFO: ProcessCDR(1,14864307,1,1,2) [2025-04-08 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864307', 'tblTempUsageDetail_20' ) start [2025-04-08 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864307', 'tblTempUsageDetail_20' ) end [2025-04-08 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:22:22] Production.INFO: ==14359== Releasing lock... [2025-04-08 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:22:22] Production.INFO: 48.25 MB #Memory Used# [2025-04-08 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:23:05 [end_date_ymd] => 2025-04-08 19:23:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:23:05' and `end` < '2025-04-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-04-08 19:23:18] Production.INFO: count ==2691 [2025-04-08 19:23:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:23:05 - End Time 2025-04-08 19:23:05 [2025-04-08 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864312', 'tblTempUsageDetail_20' ) start [2025-04-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864312', 'tblTempUsageDetail_20' ) end [2025-04-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864312', 'tblTempVendorCDR_20' ) start [2025-04-08 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864312', 'tblTempVendorCDR_20' ) end [2025-04-08 19:23:19] Production.INFO: ProcessCDR(1,14864312,1,1,2) [2025-04-08 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864312', 'tblTempUsageDetail_20' ) start [2025-04-08 19:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864312', 'tblTempUsageDetail_20' ) end [2025-04-08 19:23:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:23:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:23:24] Production.INFO: ==14432== Releasing lock... [2025-04-08 19:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:23:24] Production.INFO: 48 MB #Memory Used# [2025-04-08 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:24:05 [end_date_ymd] => 2025-04-08 19:24:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:24:05' and `end` < '2025-04-08 19: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-04-08 19:24:18] Production.INFO: count ==2677 [2025-04-08 19:24:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:24:05 - End Time 2025-04-08 19:24:05 [2025-04-08 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864317', 'tblTempUsageDetail_20' ) start [2025-04-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864317', 'tblTempUsageDetail_20' ) end [2025-04-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864317', 'tblTempVendorCDR_20' ) start [2025-04-08 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864317', 'tblTempVendorCDR_20' ) end [2025-04-08 19:24:19] Production.INFO: ProcessCDR(1,14864317,1,1,2) [2025-04-08 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864317', 'tblTempUsageDetail_20' ) start [2025-04-08 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864317', 'tblTempUsageDetail_20' ) end [2025-04-08 19:24:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:24:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:24:24] Production.INFO: ==14508== Releasing lock... [2025-04-08 19:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:24:24] Production.INFO: 48.25 MB #Memory Used# [2025-04-08 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:25:05 [end_date_ymd] => 2025-04-08 19:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:25:05' and `end` < '2025-04-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-04-08 19:25:18] Production.INFO: count ==2666 [2025-04-08 19:25:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:25:05 - End Time 2025-04-08 19:25:05 [2025-04-08 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864322', 'tblTempUsageDetail_20' ) start [2025-04-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864322', 'tblTempUsageDetail_20' ) end [2025-04-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864322', 'tblTempVendorCDR_20' ) start [2025-04-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864322', 'tblTempVendorCDR_20' ) end [2025-04-08 19:25:19] Production.INFO: ProcessCDR(1,14864322,1,1,2) [2025-04-08 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864322', 'tblTempUsageDetail_20' ) start [2025-04-08 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864322', 'tblTempUsageDetail_20' ) end [2025-04-08 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:25:22] Production.INFO: ==14584== Releasing lock... [2025-04-08 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:25:22] Production.INFO: 48 MB #Memory Used# [2025-04-08 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:26:05 [end_date_ymd] => 2025-04-08 19:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:26:05' and `end` < '2025-04-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-04-08 19:26:18] Production.INFO: count ==2660 [2025-04-08 19:26:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:26:05 - End Time 2025-04-08 19:26:05 [2025-04-08 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864327', 'tblTempUsageDetail_20' ) start [2025-04-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864327', 'tblTempUsageDetail_20' ) end [2025-04-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864327', 'tblTempVendorCDR_20' ) start [2025-04-08 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864327', 'tblTempVendorCDR_20' ) end [2025-04-08 19:26:19] Production.INFO: ProcessCDR(1,14864327,1,1,2) [2025-04-08 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864327', 'tblTempUsageDetail_20' ) start [2025-04-08 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864327', 'tblTempUsageDetail_20' ) end [2025-04-08 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:26:24] Production.INFO: ==14657== Releasing lock... [2025-04-08 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:26:24] Production.INFO: 48 MB #Memory Used# [2025-04-08 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:27:05 [end_date_ymd] => 2025-04-08 19:27:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:27:05' and `end` < '2025-04-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-04-08 19:27:18] Production.INFO: count ==2648 [2025-04-08 19:27:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:27:05 - End Time 2025-04-08 19:27:05 [2025-04-08 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864332', 'tblTempUsageDetail_20' ) start [2025-04-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864332', 'tblTempUsageDetail_20' ) end [2025-04-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864332', 'tblTempVendorCDR_20' ) start [2025-04-08 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864332', 'tblTempVendorCDR_20' ) end [2025-04-08 19:27:19] Production.INFO: ProcessCDR(1,14864332,1,1,2) [2025-04-08 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864332', 'tblTempUsageDetail_20' ) start [2025-04-08 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864332', 'tblTempUsageDetail_20' ) end [2025-04-08 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:27:23] Production.INFO: ==14767== Releasing lock... [2025-04-08 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:27:23] Production.INFO: 48 MB #Memory Used# [2025-04-08 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:28:05 [end_date_ymd] => 2025-04-08 19:28:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:28:05' and `end` < '2025-04-08 19: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-04-08 19:28:18] Production.INFO: count ==2633 [2025-04-08 19:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 16:28:05 - End Time 2025-04-08 19:28:05 [2025-04-08 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864337', 'tblTempUsageDetail_20' ) start [2025-04-08 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864337', 'tblTempUsageDetail_20' ) end [2025-04-08 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864337', 'tblTempVendorCDR_20' ) start [2025-04-08 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864337', 'tblTempVendorCDR_20' ) end [2025-04-08 19:28:19] Production.INFO: ProcessCDR(1,14864337,1,1,2) [2025-04-08 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864337', 'tblTempUsageDetail_20' ) start [2025-04-08 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864337', 'tblTempUsageDetail_20' ) end [2025-04-08 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:28:24] Production.INFO: ==14843== Releasing lock... [2025-04-08 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:28:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-08 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:29:05 [end_date_ymd] => 2025-04-08 19:29:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:29:05' and `end` < '2025-04-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-04-08 19:29:18] Production.INFO: count ==2619 [2025-04-08 19:29:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:29:05 - End Time 2025-04-08 19:29:05 [2025-04-08 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864342', 'tblTempUsageDetail_20' ) start [2025-04-08 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864342', 'tblTempUsageDetail_20' ) end [2025-04-08 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864342', 'tblTempVendorCDR_20' ) start [2025-04-08 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864342', 'tblTempVendorCDR_20' ) end [2025-04-08 19:29:19] Production.INFO: ProcessCDR(1,14864342,1,1,2) [2025-04-08 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864342', 'tblTempUsageDetail_20' ) start [2025-04-08 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864342', 'tblTempUsageDetail_20' ) end [2025-04-08 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:29:22] Production.INFO: ==14914== Releasing lock... [2025-04-08 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:29:22] Production.INFO: 47.75 MB #Memory Used# [2025-04-08 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:30:06 [end_date_ymd] => 2025-04-08 19:30:06 [RateCDR] => 1 ) [2025-04-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-04-08 16:30:06' and `end` < '2025-04-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-04-08 19:30:19] Production.INFO: count ==2609 [2025-04-08 19:30:20] Production.ERROR: pbx CDR StartTime 2025-04-08 16:30:06 - End Time 2025-04-08 19:30:06 [2025-04-08 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864348', 'tblTempUsageDetail_20' ) start [2025-04-08 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864348', 'tblTempUsageDetail_20' ) end [2025-04-08 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864348', 'tblTempVendorCDR_20' ) start [2025-04-08 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864348', 'tblTempVendorCDR_20' ) end [2025-04-08 19:30:20] Production.INFO: ProcessCDR(1,14864348,1,1,2) [2025-04-08 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864348', 'tblTempUsageDetail_20' ) start [2025-04-08 19:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864348', 'tblTempUsageDetail_20' ) end [2025-04-08 19:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:30:24] Production.INFO: ==14992== Releasing lock... [2025-04-08 19:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:30:24] Production.INFO: 47.75 MB #Memory Used# [2025-04-08 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:31:05 [end_date_ymd] => 2025-04-08 19:31:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:31:05' and `end` < '2025-04-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-04-08 19:31:18] Production.INFO: count ==2526 [2025-04-08 19:31:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:31:05 - End Time 2025-04-08 19:31:05 [2025-04-08 19:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864353', 'tblTempUsageDetail_20' ) start [2025-04-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864353', 'tblTempUsageDetail_20' ) end [2025-04-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864353', 'tblTempVendorCDR_20' ) start [2025-04-08 19:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864353', 'tblTempVendorCDR_20' ) end [2025-04-08 19:31:19] Production.INFO: ProcessCDR(1,14864353,1,1,2) [2025-04-08 19:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864353', 'tblTempUsageDetail_20' ) start [2025-04-08 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864353', 'tblTempUsageDetail_20' ) end [2025-04-08 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:31:23] Production.INFO: ==15069== Releasing lock... [2025-04-08 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:31:23] Production.INFO: 47.25 MB #Memory Used# [2025-04-08 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:32:06 [end_date_ymd] => 2025-04-08 19:32:06 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:32:06' and `end` < '2025-04-08 19: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-04-08 19:32:19] Production.INFO: count ==2518 [2025-04-08 19:32:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:32:06 - End Time 2025-04-08 19:32:06 [2025-04-08 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864358', 'tblTempUsageDetail_20' ) start [2025-04-08 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864358', 'tblTempUsageDetail_20' ) end [2025-04-08 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864358', 'tblTempVendorCDR_20' ) start [2025-04-08 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864358', 'tblTempVendorCDR_20' ) end [2025-04-08 19:32:20] Production.INFO: ProcessCDR(1,14864358,1,1,2) [2025-04-08 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864358', 'tblTempUsageDetail_20' ) start [2025-04-08 19:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864358', 'tblTempUsageDetail_20' ) end [2025-04-08 19:32:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:32:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:32:25] Production.INFO: ==15139== Releasing lock... [2025-04-08 19:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:32:25] Production.INFO: 47 MB #Memory Used# [2025-04-08 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:33:05 [end_date_ymd] => 2025-04-08 19:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:33:05' and `end` < '2025-04-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-04-08 19:33:18] Production.INFO: count ==2511 [2025-04-08 19:33:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:33:05 - End Time 2025-04-08 19:33:05 [2025-04-08 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864363', 'tblTempUsageDetail_20' ) start [2025-04-08 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864363', 'tblTempUsageDetail_20' ) end [2025-04-08 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864363', 'tblTempVendorCDR_20' ) start [2025-04-08 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864363', 'tblTempVendorCDR_20' ) end [2025-04-08 19:33:19] Production.INFO: ProcessCDR(1,14864363,1,1,2) [2025-04-08 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864363', 'tblTempUsageDetail_20' ) start [2025-04-08 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864363', 'tblTempUsageDetail_20' ) end [2025-04-08 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:33:22] Production.INFO: ==15215== Releasing lock... [2025-04-08 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:33:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-08 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:34:06 [end_date_ymd] => 2025-04-08 19:34:06 [RateCDR] => 1 ) [2025-04-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-04-08 16:34:06' and `end` < '2025-04-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-04-08 19:34:19] Production.INFO: count ==2502 [2025-04-08 19:34:20] Production.ERROR: pbx CDR StartTime 2025-04-08 16:34:06 - End Time 2025-04-08 19:34:06 [2025-04-08 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864368', 'tblTempUsageDetail_20' ) start [2025-04-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864368', 'tblTempUsageDetail_20' ) end [2025-04-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864368', 'tblTempVendorCDR_20' ) start [2025-04-08 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864368', 'tblTempVendorCDR_20' ) end [2025-04-08 19:34:20] Production.INFO: ProcessCDR(1,14864368,1,1,2) [2025-04-08 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864368', 'tblTempUsageDetail_20' ) start [2025-04-08 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864368', 'tblTempUsageDetail_20' ) end [2025-04-08 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:34:23] Production.INFO: ==15290== Releasing lock... [2025-04-08 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:34:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-08 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:35:05 [end_date_ymd] => 2025-04-08 19:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:35:05' and `end` < '2025-04-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-04-08 19:35:18] Production.INFO: count ==2494 [2025-04-08 19:35:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:35:05 - End Time 2025-04-08 19:35:05 [2025-04-08 19:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864373', 'tblTempUsageDetail_20' ) start [2025-04-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864373', 'tblTempUsageDetail_20' ) end [2025-04-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864373', 'tblTempVendorCDR_20' ) start [2025-04-08 19:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864373', 'tblTempVendorCDR_20' ) end [2025-04-08 19:35:19] Production.INFO: ProcessCDR(1,14864373,1,1,2) [2025-04-08 19:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864373', 'tblTempUsageDetail_20' ) start [2025-04-08 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864373', 'tblTempUsageDetail_20' ) end [2025-04-08 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:35:23] Production.INFO: ==15362== Releasing lock... [2025-04-08 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:35:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-08 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:36:05 [end_date_ymd] => 2025-04-08 19:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:36:05' and `end` < '2025-04-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-04-08 19:36:18] Production.INFO: count ==2485 [2025-04-08 19:36:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:36:05 - End Time 2025-04-08 19:36:05 [2025-04-08 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864378', 'tblTempUsageDetail_20' ) start [2025-04-08 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864378', 'tblTempUsageDetail_20' ) end [2025-04-08 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864378', 'tblTempVendorCDR_20' ) start [2025-04-08 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864378', 'tblTempVendorCDR_20' ) end [2025-04-08 19:36:19] Production.INFO: ProcessCDR(1,14864378,1,1,2) [2025-04-08 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864378', 'tblTempUsageDetail_20' ) start [2025-04-08 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864378', 'tblTempUsageDetail_20' ) end [2025-04-08 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:36:22] Production.INFO: ==15435== Releasing lock... [2025-04-08 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:36:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-08 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:37:05 [end_date_ymd] => 2025-04-08 19:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:37:05' and `end` < '2025-04-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-04-08 19:37:18] Production.INFO: count ==2483 [2025-04-08 19:37:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:37:05 - End Time 2025-04-08 19:37:05 [2025-04-08 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864383', 'tblTempUsageDetail_20' ) start [2025-04-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864383', 'tblTempUsageDetail_20' ) end [2025-04-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864383', 'tblTempVendorCDR_20' ) start [2025-04-08 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864383', 'tblTempVendorCDR_20' ) end [2025-04-08 19:37:19] Production.INFO: ProcessCDR(1,14864383,1,1,2) [2025-04-08 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864383', 'tblTempUsageDetail_20' ) start [2025-04-08 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864383', 'tblTempUsageDetail_20' ) end [2025-04-08 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:37:24] Production.INFO: ==15508== Releasing lock... [2025-04-08 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:37:24] Production.INFO: 46.75 MB #Memory Used# [2025-04-08 19:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:38:06 [end_date_ymd] => 2025-04-08 19:38:06 [RateCDR] => 1 ) [2025-04-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-04-08 16:38:06' and `end` < '2025-04-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-04-08 19:38:19] Production.INFO: count ==2491 [2025-04-08 19:38:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:38:06 - End Time 2025-04-08 19:38:06 [2025-04-08 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864388', 'tblTempUsageDetail_20' ) start [2025-04-08 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864388', 'tblTempUsageDetail_20' ) end [2025-04-08 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864388', 'tblTempVendorCDR_20' ) start [2025-04-08 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864388', 'tblTempVendorCDR_20' ) end [2025-04-08 19:38:20] Production.INFO: ProcessCDR(1,14864388,1,1,2) [2025-04-08 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864388', 'tblTempUsageDetail_20' ) start [2025-04-08 19:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864388', 'tblTempUsageDetail_20' ) end [2025-04-08 19:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:38:23] Production.INFO: ==15581== Releasing lock... [2025-04-08 19:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:38:23] Production.INFO: 46.75 MB #Memory Used# [2025-04-08 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:39:05 [end_date_ymd] => 2025-04-08 19:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:39:05' and `end` < '2025-04-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-04-08 19:39:18] Production.INFO: count ==2475 [2025-04-08 19:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 16:39:05 - End Time 2025-04-08 19:39:05 [2025-04-08 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864393', 'tblTempUsageDetail_20' ) start [2025-04-08 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864393', 'tblTempUsageDetail_20' ) end [2025-04-08 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864393', 'tblTempVendorCDR_20' ) start [2025-04-08 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864393', 'tblTempVendorCDR_20' ) end [2025-04-08 19:39:19] Production.INFO: ProcessCDR(1,14864393,1,1,2) [2025-04-08 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864393', 'tblTempUsageDetail_20' ) start [2025-04-08 19:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864393', 'tblTempUsageDetail_20' ) end [2025-04-08 19:39:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:39:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:39:22] Production.INFO: ==15659== Releasing lock... [2025-04-08 19:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:39:22] Production.INFO: 46.75 MB #Memory Used# [2025-04-08 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:40:06 [end_date_ymd] => 2025-04-08 19:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 16:40:06' and `end` < '2025-04-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-04-08 19:40:19] Production.INFO: count ==2464 [2025-04-08 19:40:20] Production.ERROR: pbx CDR StartTime 2025-04-08 16:40:06 - End Time 2025-04-08 19:40:06 [2025-04-08 19:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864399', 'tblTempUsageDetail_20' ) start [2025-04-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864399', 'tblTempUsageDetail_20' ) end [2025-04-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864399', 'tblTempVendorCDR_20' ) start [2025-04-08 19:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864399', 'tblTempVendorCDR_20' ) end [2025-04-08 19:40:20] Production.INFO: ProcessCDR(1,14864399,1,1,2) [2025-04-08 19:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864399', 'tblTempUsageDetail_20' ) start [2025-04-08 19:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864399', 'tblTempUsageDetail_20' ) end [2025-04-08 19:40:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:40:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:40:25] Production.INFO: ==15731== Releasing lock... [2025-04-08 19:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:40:25] Production.INFO: 46.5 MB #Memory Used# [2025-04-08 19:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:41:04 [end_date_ymd] => 2025-04-08 19:41:04 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:41:04' and `end` < '2025-04-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-04-08 19:41:18] Production.INFO: count ==2399 [2025-04-08 19:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 16:41:04 - End Time 2025-04-08 19:41:04 [2025-04-08 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864404', 'tblTempUsageDetail_20' ) start [2025-04-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864404', 'tblTempUsageDetail_20' ) end [2025-04-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864404', 'tblTempVendorCDR_20' ) start [2025-04-08 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864404', 'tblTempVendorCDR_20' ) end [2025-04-08 19:41:18] Production.INFO: ProcessCDR(1,14864404,1,1,2) [2025-04-08 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864404', 'tblTempUsageDetail_20' ) start [2025-04-08 19:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864404', 'tblTempUsageDetail_20' ) end [2025-04-08 19:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:41:23] Production.INFO: ==15806== Releasing lock... [2025-04-08 19:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:41:23] Production.INFO: 46 MB #Memory Used# [2025-04-08 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:42:05 [end_date_ymd] => 2025-04-08 19:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:42:05' and `end` < '2025-04-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-04-08 19:42:18] Production.INFO: count ==2384 [2025-04-08 19:42:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:42:05 - End Time 2025-04-08 19:42:05 [2025-04-08 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864409', 'tblTempUsageDetail_20' ) start [2025-04-08 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864409', 'tblTempUsageDetail_20' ) end [2025-04-08 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864409', 'tblTempVendorCDR_20' ) start [2025-04-08 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864409', 'tblTempVendorCDR_20' ) end [2025-04-08 19:42:19] Production.INFO: ProcessCDR(1,14864409,1,1,2) [2025-04-08 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864409', 'tblTempUsageDetail_20' ) start [2025-04-08 19:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864409', 'tblTempUsageDetail_20' ) end [2025-04-08 19:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:42:24] Production.INFO: ==15918== Releasing lock... [2025-04-08 19:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:42:24] Production.INFO: 46 MB #Memory Used# [2025-04-08 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:43:05 [end_date_ymd] => 2025-04-08 19:43:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:43:05' and `end` < '2025-04-08 19: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-04-08 19:43:19] Production.INFO: count ==2357 [2025-04-08 19:43:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:43:05 - End Time 2025-04-08 19:43:05 [2025-04-08 19:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864414', 'tblTempUsageDetail_20' ) start [2025-04-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864414', 'tblTempUsageDetail_20' ) end [2025-04-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864414', 'tblTempVendorCDR_20' ) start [2025-04-08 19:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864414', 'tblTempVendorCDR_20' ) end [2025-04-08 19:43:19] Production.INFO: ProcessCDR(1,14864414,1,1,2) [2025-04-08 19:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864414', 'tblTempUsageDetail_20' ) start [2025-04-08 19:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864414', 'tblTempUsageDetail_20' ) end [2025-04-08 19:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:43:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:43:25] Production.INFO: ==15990== Releasing lock... [2025-04-08 19:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:43:25] Production.INFO: 45.75 MB #Memory Used# [2025-04-08 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:44:05 [end_date_ymd] => 2025-04-08 19:44:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:44:05' and `end` < '2025-04-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-04-08 19:44:18] Production.INFO: count ==2345 [2025-04-08 19:44:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:44:05 - End Time 2025-04-08 19:44:05 [2025-04-08 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864419', 'tblTempUsageDetail_20' ) start [2025-04-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864419', 'tblTempUsageDetail_20' ) end [2025-04-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864419', 'tblTempVendorCDR_20' ) start [2025-04-08 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864419', 'tblTempVendorCDR_20' ) end [2025-04-08 19:44:19] Production.INFO: ProcessCDR(1,14864419,1,1,2) [2025-04-08 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864419', 'tblTempUsageDetail_20' ) start [2025-04-08 19:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864419', 'tblTempUsageDetail_20' ) end [2025-04-08 19:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:44:22] Production.INFO: ==16062== Releasing lock... [2025-04-08 19:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:44:22] Production.INFO: 45.75 MB #Memory Used# [2025-04-08 19:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:45:06 [end_date_ymd] => 2025-04-08 19:45:06 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:45:06' and `end` < '2025-04-08 19: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-04-08 19:45:19] Production.INFO: count ==2326 [2025-04-08 19:45:20] Production.ERROR: pbx CDR StartTime 2025-04-08 16:45:06 - End Time 2025-04-08 19:45:06 [2025-04-08 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864424', 'tblTempUsageDetail_20' ) start [2025-04-08 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864424', 'tblTempUsageDetail_20' ) end [2025-04-08 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864424', 'tblTempVendorCDR_20' ) start [2025-04-08 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864424', 'tblTempVendorCDR_20' ) end [2025-04-08 19:45:20] Production.INFO: ProcessCDR(1,14864424,1,1,2) [2025-04-08 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864424', 'tblTempUsageDetail_20' ) start [2025-04-08 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864424', 'tblTempUsageDetail_20' ) end [2025-04-08 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:45:23] Production.INFO: ==16141== Releasing lock... [2025-04-08 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:45:23] Production.INFO: 45.25 MB #Memory Used# [2025-04-08 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:46:05 [end_date_ymd] => 2025-04-08 19:46:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:46:05' and `end` < '2025-04-08 19: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-04-08 19:46:18] Production.INFO: count ==2321 [2025-04-08 19:46:18] Production.ERROR: pbx CDR StartTime 2025-04-08 16:46:05 - End Time 2025-04-08 19:46:05 [2025-04-08 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864429', 'tblTempUsageDetail_20' ) start [2025-04-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864429', 'tblTempUsageDetail_20' ) end [2025-04-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864429', 'tblTempVendorCDR_20' ) start [2025-04-08 19:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864429', 'tblTempVendorCDR_20' ) end [2025-04-08 19:46:19] Production.INFO: ProcessCDR(1,14864429,1,1,2) [2025-04-08 19:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864429', 'tblTempUsageDetail_20' ) start [2025-04-08 19:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864429', 'tblTempUsageDetail_20' ) end [2025-04-08 19:46:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:46:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:46:24] Production.INFO: ==16210== Releasing lock... [2025-04-08 19:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:46:24] Production.INFO: 45.25 MB #Memory Used# [2025-04-08 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:47:05 [end_date_ymd] => 2025-04-08 19:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:47:05' and `end` < '2025-04-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-04-08 19:47:19] Production.INFO: count ==2281 [2025-04-08 19:47:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:47:05 - End Time 2025-04-08 19:47:05 [2025-04-08 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864434', 'tblTempUsageDetail_20' ) start [2025-04-08 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864434', 'tblTempUsageDetail_20' ) end [2025-04-08 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864434', 'tblTempVendorCDR_20' ) start [2025-04-08 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864434', 'tblTempVendorCDR_20' ) end [2025-04-08 19:47:19] Production.INFO: ProcessCDR(1,14864434,1,1,2) [2025-04-08 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864434', 'tblTempUsageDetail_20' ) start [2025-04-08 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864434', 'tblTempUsageDetail_20' ) end [2025-04-08 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:47:24] Production.INFO: ==16285== Releasing lock... [2025-04-08 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:47:24] Production.INFO: 45 MB #Memory Used# [2025-04-08 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:48:05 [end_date_ymd] => 2025-04-08 19:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:48:05' and `end` < '2025-04-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-04-08 19:48:18] Production.INFO: count ==2251 [2025-04-08 19:48:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:48:05 - End Time 2025-04-08 19:48:05 [2025-04-08 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864439', 'tblTempUsageDetail_20' ) start [2025-04-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864439', 'tblTempUsageDetail_20' ) end [2025-04-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864439', 'tblTempVendorCDR_20' ) start [2025-04-08 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864439', 'tblTempVendorCDR_20' ) end [2025-04-08 19:48:19] Production.INFO: ProcessCDR(1,14864439,1,1,2) [2025-04-08 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864439', 'tblTempUsageDetail_20' ) start [2025-04-08 19:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864439', 'tblTempUsageDetail_20' ) end [2025-04-08 19:48:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:48:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:48:24] Production.INFO: ==16357== Releasing lock... [2025-04-08 19:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:48:24] Production.INFO: 44.5 MB #Memory Used# [2025-04-08 19:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:49:06 [end_date_ymd] => 2025-04-08 19:49:06 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:49:06' and `end` < '2025-04-08 19: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-04-08 19:49:19] Production.INFO: count ==2233 [2025-04-08 19:49:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:49:06 - End Time 2025-04-08 19:49:06 [2025-04-08 19:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864444', 'tblTempUsageDetail_20' ) start [2025-04-08 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864444', 'tblTempUsageDetail_20' ) end [2025-04-08 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864444', 'tblTempVendorCDR_20' ) start [2025-04-08 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864444', 'tblTempVendorCDR_20' ) end [2025-04-08 19:49:20] Production.INFO: ProcessCDR(1,14864444,1,1,2) [2025-04-08 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864444', 'tblTempUsageDetail_20' ) start [2025-04-08 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864444', 'tblTempUsageDetail_20' ) end [2025-04-08 19:49:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:49:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:49:25] Production.INFO: ==16429== Releasing lock... [2025-04-08 19:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:49:25] Production.INFO: 44.75 MB #Memory Used# [2025-04-08 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:50:05 [end_date_ymd] => 2025-04-08 19:50:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:50:05' and `end` < '2025-04-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-04-08 19:50:18] Production.INFO: count ==2223 [2025-04-08 19:50:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:50:05 - End Time 2025-04-08 19:50:05 [2025-04-08 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864450', 'tblTempUsageDetail_20' ) start [2025-04-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864450', 'tblTempUsageDetail_20' ) end [2025-04-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864450', 'tblTempVendorCDR_20' ) start [2025-04-08 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864450', 'tblTempVendorCDR_20' ) end [2025-04-08 19:50:19] Production.INFO: ProcessCDR(1,14864450,1,1,2) [2025-04-08 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864450', 'tblTempUsageDetail_20' ) start [2025-04-08 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864450', 'tblTempUsageDetail_20' ) end [2025-04-08 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:50:22] Production.INFO: ==16503== Releasing lock... [2025-04-08 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:50:22] Production.INFO: 44.5 MB #Memory Used# [2025-04-08 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:51:05 [end_date_ymd] => 2025-04-08 19:51:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:51:05' and `end` < '2025-04-08 19: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-04-08 19:51:18] Production.INFO: count ==2131 [2025-04-08 19:51:18] Production.ERROR: pbx CDR StartTime 2025-04-08 16:51:05 - End Time 2025-04-08 19:51:05 [2025-04-08 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864455', 'tblTempUsageDetail_20' ) start [2025-04-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864455', 'tblTempUsageDetail_20' ) end [2025-04-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864455', 'tblTempVendorCDR_20' ) start [2025-04-08 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864455', 'tblTempVendorCDR_20' ) end [2025-04-08 19:51:18] Production.INFO: ProcessCDR(1,14864455,1,1,2) [2025-04-08 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864455', 'tblTempUsageDetail_20' ) start [2025-04-08 19:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864455', 'tblTempUsageDetail_20' ) end [2025-04-08 19:51:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:51:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:51:24] Production.INFO: ==16577== Releasing lock... [2025-04-08 19:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:51:24] Production.INFO: 44 MB #Memory Used# [2025-04-08 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:52:05 [end_date_ymd] => 2025-04-08 19:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:52:05' and `end` < '2025-04-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-04-08 19:52:18] Production.INFO: count ==2105 [2025-04-08 19:52:18] Production.ERROR: pbx CDR StartTime 2025-04-08 16:52:05 - End Time 2025-04-08 19:52:05 [2025-04-08 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864460', 'tblTempUsageDetail_20' ) start [2025-04-08 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864460', 'tblTempUsageDetail_20' ) end [2025-04-08 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864460', 'tblTempVendorCDR_20' ) start [2025-04-08 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864460', 'tblTempVendorCDR_20' ) end [2025-04-08 19:52:18] Production.INFO: ProcessCDR(1,14864460,1,1,2) [2025-04-08 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864460', 'tblTempUsageDetail_20' ) start [2025-04-08 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864460', 'tblTempUsageDetail_20' ) end [2025-04-08 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:52:24] Production.INFO: ==16655== Releasing lock... [2025-04-08 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:52:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-08 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:53:05 [end_date_ymd] => 2025-04-08 19:53:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:53:05' and `end` < '2025-04-08 19: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-04-08 19:53:18] Production.INFO: count ==2089 [2025-04-08 19:53:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:53:05 - End Time 2025-04-08 19:53:05 [2025-04-08 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864465', 'tblTempUsageDetail_20' ) start [2025-04-08 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864465', 'tblTempUsageDetail_20' ) end [2025-04-08 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864465', 'tblTempVendorCDR_20' ) start [2025-04-08 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864465', 'tblTempVendorCDR_20' ) end [2025-04-08 19:53:19] Production.INFO: ProcessCDR(1,14864465,1,1,2) [2025-04-08 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864465', 'tblTempUsageDetail_20' ) start [2025-04-08 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864465', 'tblTempUsageDetail_20' ) end [2025-04-08 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:53:22] Production.INFO: ==16736== Releasing lock... [2025-04-08 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:53:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-08 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:54:05 [end_date_ymd] => 2025-04-08 19:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:54:05' and `end` < '2025-04-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-04-08 19:54:18] Production.INFO: count ==2073 [2025-04-08 19:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 16:54:05 - End Time 2025-04-08 19:54:05 [2025-04-08 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864470', 'tblTempUsageDetail_20' ) start [2025-04-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864470', 'tblTempUsageDetail_20' ) end [2025-04-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864470', 'tblTempVendorCDR_20' ) start [2025-04-08 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864470', 'tblTempVendorCDR_20' ) end [2025-04-08 19:54:18] Production.INFO: ProcessCDR(1,14864470,1,1,2) [2025-04-08 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864470', 'tblTempUsageDetail_20' ) start [2025-04-08 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864470', 'tblTempUsageDetail_20' ) end [2025-04-08 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:54:22] Production.INFO: ==16806== Releasing lock... [2025-04-08 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:54:22] Production.INFO: 43.75 MB #Memory Used# [2025-04-08 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:55:05 [end_date_ymd] => 2025-04-08 19:55:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:55:05' and `end` < '2025-04-08 19: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-04-08 19:55:18] Production.INFO: count ==2069 [2025-04-08 19:55:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:55:05 - End Time 2025-04-08 19:55:05 [2025-04-08 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864475', 'tblTempUsageDetail_20' ) start [2025-04-08 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864475', 'tblTempUsageDetail_20' ) end [2025-04-08 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864475', 'tblTempVendorCDR_20' ) start [2025-04-08 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864475', 'tblTempVendorCDR_20' ) end [2025-04-08 19:55:19] Production.INFO: ProcessCDR(1,14864475,1,1,2) [2025-04-08 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864475', 'tblTempUsageDetail_20' ) start [2025-04-08 19:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864475', 'tblTempUsageDetail_20' ) end [2025-04-08 19:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:55:22] Production.INFO: ==16878== Releasing lock... [2025-04-08 19:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:55:22] Production.INFO: 43.5 MB #Memory Used# [2025-04-08 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:56:05 [end_date_ymd] => 2025-04-08 19:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:56:05' and `end` < '2025-04-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-04-08 19:56:18] Production.INFO: count ==2061 [2025-04-08 19:56:18] Production.ERROR: pbx CDR StartTime 2025-04-08 16:56:05 - End Time 2025-04-08 19:56:05 [2025-04-08 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864480', 'tblTempUsageDetail_20' ) start [2025-04-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864480', 'tblTempUsageDetail_20' ) end [2025-04-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864480', 'tblTempVendorCDR_20' ) start [2025-04-08 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864480', 'tblTempVendorCDR_20' ) end [2025-04-08 19:56:19] Production.INFO: ProcessCDR(1,14864480,1,1,2) [2025-04-08 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864480', 'tblTempUsageDetail_20' ) start [2025-04-08 19:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864480', 'tblTempUsageDetail_20' ) end [2025-04-08 19:56:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:56:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:56:24] Production.INFO: ==16954== Releasing lock... [2025-04-08 19:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:56:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-08 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:57:05 [end_date_ymd] => 2025-04-08 19:57:05 [RateCDR] => 1 ) [2025-04-08 19: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-04-08 16:57:05' and `end` < '2025-04-08 19: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-04-08 19:57:18] Production.INFO: count ==2049 [2025-04-08 19:57:19] Production.ERROR: pbx CDR StartTime 2025-04-08 16:57:05 - End Time 2025-04-08 19:57:05 [2025-04-08 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864485', 'tblTempUsageDetail_20' ) start [2025-04-08 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864485', 'tblTempUsageDetail_20' ) end [2025-04-08 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864485', 'tblTempVendorCDR_20' ) start [2025-04-08 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864485', 'tblTempVendorCDR_20' ) end [2025-04-08 19:57:19] Production.INFO: ProcessCDR(1,14864485,1,1,2) [2025-04-08 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864485', 'tblTempUsageDetail_20' ) start [2025-04-08 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864485', 'tblTempUsageDetail_20' ) end [2025-04-08 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:57:24] Production.INFO: ==17028== Releasing lock... [2025-04-08 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:57:24] Production.INFO: 43.5 MB #Memory Used# [2025-04-08 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:58:05 [end_date_ymd] => 2025-04-08 19:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:58:05' and `end` < '2025-04-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-04-08 19:58:18] Production.INFO: count ==2030 [2025-04-08 19:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 16:58:05 - End Time 2025-04-08 19:58:05 [2025-04-08 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864490', 'tblTempUsageDetail_20' ) start [2025-04-08 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864490', 'tblTempUsageDetail_20' ) end [2025-04-08 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864490', 'tblTempVendorCDR_20' ) start [2025-04-08 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864490', 'tblTempVendorCDR_20' ) end [2025-04-08 19:58:18] Production.INFO: ProcessCDR(1,14864490,1,1,2) [2025-04-08 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864490', 'tblTempUsageDetail_20' ) start [2025-04-08 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864490', 'tblTempUsageDetail_20' ) end [2025-04-08 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:58:24] Production.INFO: ==17141== Releasing lock... [2025-04-08 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:58:24] Production.INFO: 43.25 MB #Memory Used# [2025-04-08 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 16:59:05 [end_date_ymd] => 2025-04-08 19:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 16:59:05' and `end` < '2025-04-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-04-08 19:59:18] Production.INFO: count ==2018 [2025-04-08 19:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 16:59:05 - End Time 2025-04-08 19:59:05 [2025-04-08 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864495', 'tblTempUsageDetail_20' ) start [2025-04-08 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864495', 'tblTempUsageDetail_20' ) end [2025-04-08 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864495', 'tblTempVendorCDR_20' ) start [2025-04-08 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864495', 'tblTempVendorCDR_20' ) end [2025-04-08 19:59:19] Production.INFO: ProcessCDR(1,14864495,1,1,2) [2025-04-08 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 19:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864495', 'tblTempUsageDetail_20' ) start [2025-04-08 19:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864495', 'tblTempUsageDetail_20' ) end [2025-04-08 19:59:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 19:59:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 19:59:23] Production.INFO: ==17213== Releasing lock... [2025-04-08 19:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 19:59:23] Production.INFO: 43.25 MB #Memory Used# [2025-04-08 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:00:07 [end_date_ymd] => 2025-04-08 20:00:07 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:00:07' and `end` < '2025-04-08 20: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-04-08 20:00:20] Production.INFO: count ==2007 [2025-04-08 20:00:20] Production.ERROR: pbx CDR StartTime 2025-04-08 17:00:07 - End Time 2025-04-08 20:00:07 [2025-04-08 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864501', 'tblTempUsageDetail_20' ) start [2025-04-08 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864501', 'tblTempUsageDetail_20' ) end [2025-04-08 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864501', 'tblTempVendorCDR_20' ) start [2025-04-08 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864501', 'tblTempVendorCDR_20' ) end [2025-04-08 20:00:20] Production.INFO: ProcessCDR(1,14864501,1,1,2) [2025-04-08 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864501', 'tblTempUsageDetail_20' ) start [2025-04-08 20:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864501', 'tblTempUsageDetail_20' ) end [2025-04-08 20:00:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:00:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:00:25] Production.INFO: ==17288== Releasing lock... [2025-04-08 20:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:00:25] Production.INFO: 42.75 MB #Memory Used# [2025-04-08 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:01:05 [end_date_ymd] => 2025-04-08 20:01:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:01:05' and `end` < '2025-04-08 20: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-04-08 20:01:19] Production.INFO: count ==1917 [2025-04-08 20:01:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:01:05 - End Time 2025-04-08 20:01:05 [2025-04-08 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864506', 'tblTempUsageDetail_20' ) start [2025-04-08 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864506', 'tblTempUsageDetail_20' ) end [2025-04-08 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864506', 'tblTempVendorCDR_20' ) start [2025-04-08 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864506', 'tblTempVendorCDR_20' ) end [2025-04-08 20:01:19] Production.INFO: ProcessCDR(1,14864506,1,1,2) [2025-04-08 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864506', 'tblTempUsageDetail_20' ) start [2025-04-08 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864506', 'tblTempUsageDetail_20' ) end [2025-04-08 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:01:22] Production.INFO: ==17415== Releasing lock... [2025-04-08 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:01:22] Production.INFO: 42.5 MB #Memory Used# [2025-04-08 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:02:06 [end_date_ymd] => 2025-04-08 20:02:06 [RateCDR] => 1 ) [2025-04-08 20:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-04-08 17:02:06' and `end` < '2025-04-08 20:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-04-08 20:02:19] Production.INFO: count ==1907 [2025-04-08 20:02:20] Production.ERROR: pbx CDR StartTime 2025-04-08 17:02:06 - End Time 2025-04-08 20:02:06 [2025-04-08 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864511', 'tblTempUsageDetail_20' ) start [2025-04-08 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864511', 'tblTempUsageDetail_20' ) end [2025-04-08 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864511', 'tblTempVendorCDR_20' ) start [2025-04-08 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864511', 'tblTempVendorCDR_20' ) end [2025-04-08 20:02:20] Production.INFO: ProcessCDR(1,14864511,1,1,2) [2025-04-08 20:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864511', 'tblTempUsageDetail_20' ) start [2025-04-08 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864511', 'tblTempUsageDetail_20' ) end [2025-04-08 20:02:25] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:02:25] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:02:25] Production.INFO: ==17486== Releasing lock... [2025-04-08 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:02:25] Production.INFO: 42 MB #Memory Used# [2025-04-08 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:03:05 [end_date_ymd] => 2025-04-08 20:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:03:05' and `end` < '2025-04-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-04-08 20:03:18] Production.INFO: count ==1902 [2025-04-08 20:03:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:03:05 - End Time 2025-04-08 20:03:05 [2025-04-08 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864516', 'tblTempUsageDetail_20' ) start [2025-04-08 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864516', 'tblTempUsageDetail_20' ) end [2025-04-08 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864516', 'tblTempVendorCDR_20' ) start [2025-04-08 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864516', 'tblTempVendorCDR_20' ) end [2025-04-08 20:03:18] Production.INFO: ProcessCDR(1,14864516,1,1,2) [2025-04-08 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864516', 'tblTempUsageDetail_20' ) start [2025-04-08 20:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864516', 'tblTempUsageDetail_20' ) end [2025-04-08 20:03:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:03:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:03:23] Production.INFO: ==17558== Releasing lock... [2025-04-08 20:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:03:23] Production.INFO: 42 MB #Memory Used# [2025-04-08 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:04:05 [end_date_ymd] => 2025-04-08 20:04:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:04:05' and `end` < '2025-04-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-04-08 20:04:18] Production.INFO: count ==1895 [2025-04-08 20:04:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:04:05 - End Time 2025-04-08 20:04:05 [2025-04-08 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864521', 'tblTempUsageDetail_20' ) start [2025-04-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864521', 'tblTempUsageDetail_20' ) end [2025-04-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864521', 'tblTempVendorCDR_20' ) start [2025-04-08 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864521', 'tblTempVendorCDR_20' ) end [2025-04-08 20:04:19] Production.INFO: ProcessCDR(1,14864521,1,1,2) [2025-04-08 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864521', 'tblTempUsageDetail_20' ) start [2025-04-08 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864521', 'tblTempUsageDetail_20' ) end [2025-04-08 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:04:22] Production.INFO: ==17635== Releasing lock... [2025-04-08 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:04:22] Production.INFO: 42 MB #Memory Used# [2025-04-08 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:05:05 [end_date_ymd] => 2025-04-08 20:05:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:05:05' and `end` < '2025-04-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-04-08 20:05:18] Production.INFO: count ==1885 [2025-04-08 20:05:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:05:05 - End Time 2025-04-08 20:05:05 [2025-04-08 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864526', 'tblTempUsageDetail_20' ) start [2025-04-08 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864526', 'tblTempUsageDetail_20' ) end [2025-04-08 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864526', 'tblTempVendorCDR_20' ) start [2025-04-08 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864526', 'tblTempVendorCDR_20' ) end [2025-04-08 20:05:19] Production.INFO: ProcessCDR(1,14864526,1,1,2) [2025-04-08 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864526', 'tblTempUsageDetail_20' ) start [2025-04-08 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864526', 'tblTempUsageDetail_20' ) end [2025-04-08 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:05:24] Production.INFO: ==17704== Releasing lock... [2025-04-08 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:05:24] Production.INFO: 42.25 MB #Memory Used# [2025-04-08 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:06:06 [end_date_ymd] => 2025-04-08 20:06:06 [RateCDR] => 1 ) [2025-04-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-04-08 17:06:06' and `end` < '2025-04-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-04-08 20:06:19] Production.INFO: count ==1870 [2025-04-08 20:06:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:06:06 - End Time 2025-04-08 20:06:06 [2025-04-08 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864531', 'tblTempUsageDetail_20' ) start [2025-04-08 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864531', 'tblTempUsageDetail_20' ) end [2025-04-08 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864531', 'tblTempVendorCDR_20' ) start [2025-04-08 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864531', 'tblTempVendorCDR_20' ) end [2025-04-08 20:06:19] Production.INFO: ProcessCDR(1,14864531,1,1,2) [2025-04-08 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864531', 'tblTempUsageDetail_20' ) start [2025-04-08 20:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864531', 'tblTempUsageDetail_20' ) end [2025-04-08 20:06:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:06:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:06:24] Production.INFO: ==17777== Releasing lock... [2025-04-08 20:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:06:24] Production.INFO: 42 MB #Memory Used# [2025-04-08 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:07:05 [end_date_ymd] => 2025-04-08 20:07:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:07:05' and `end` < '2025-04-08 20: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-04-08 20:07:18] Production.INFO: count ==1856 [2025-04-08 20:07:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:07:05 - End Time 2025-04-08 20:07:05 [2025-04-08 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864536', 'tblTempUsageDetail_20' ) start [2025-04-08 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864536', 'tblTempUsageDetail_20' ) end [2025-04-08 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864536', 'tblTempVendorCDR_20' ) start [2025-04-08 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864536', 'tblTempVendorCDR_20' ) end [2025-04-08 20:07:18] Production.INFO: ProcessCDR(1,14864536,1,1,2) [2025-04-08 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864536', 'tblTempUsageDetail_20' ) start [2025-04-08 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864536', 'tblTempUsageDetail_20' ) end [2025-04-08 20:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:07:21] Production.INFO: ==17854== Releasing lock... [2025-04-08 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:07:21] Production.INFO: 41.75 MB #Memory Used# [2025-04-08 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:08:06 [end_date_ymd] => 2025-04-08 20:08:06 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:08:06' and `end` < '2025-04-08 20: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-04-08 20:08:19] Production.INFO: count ==1851 [2025-04-08 20:08:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:08:06 - End Time 2025-04-08 20:08:06 [2025-04-08 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864541', 'tblTempUsageDetail_20' ) start [2025-04-08 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864541', 'tblTempUsageDetail_20' ) end [2025-04-08 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864541', 'tblTempVendorCDR_20' ) start [2025-04-08 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864541', 'tblTempVendorCDR_20' ) end [2025-04-08 20:08:19] Production.INFO: ProcessCDR(1,14864541,1,1,2) [2025-04-08 20:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864541', 'tblTempUsageDetail_20' ) start [2025-04-08 20:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864541', 'tblTempUsageDetail_20' ) end [2025-04-08 20:08:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:08:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:08:24] Production.INFO: ==17927== Releasing lock... [2025-04-08 20:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:08:24] Production.INFO: 42 MB #Memory Used# [2025-04-08 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:09:05 [end_date_ymd] => 2025-04-08 20:09:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:09:05' and `end` < '2025-04-08 20: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-04-08 20:09:18] Production.INFO: count ==1848 [2025-04-08 20:09:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:09:05 - End Time 2025-04-08 20:09:05 [2025-04-08 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864546', 'tblTempUsageDetail_20' ) start [2025-04-08 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864546', 'tblTempUsageDetail_20' ) end [2025-04-08 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864546', 'tblTempVendorCDR_20' ) start [2025-04-08 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864546', 'tblTempVendorCDR_20' ) end [2025-04-08 20:09:18] Production.INFO: ProcessCDR(1,14864546,1,1,2) [2025-04-08 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864546', 'tblTempUsageDetail_20' ) start [2025-04-08 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864546', 'tblTempUsageDetail_20' ) end [2025-04-08 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:09:21] Production.INFO: ==18001== Releasing lock... [2025-04-08 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:09:21] Production.INFO: 42 MB #Memory Used# [2025-04-08 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:10:06 [end_date_ymd] => 2025-04-08 20:10:06 [RateCDR] => 1 ) [2025-04-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-04-08 17:10:06' and `end` < '2025-04-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-04-08 20:10:19] Production.INFO: count ==1848 [2025-04-08 20:10:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:10:06 - End Time 2025-04-08 20:10:06 [2025-04-08 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864552', 'tblTempUsageDetail_20' ) start [2025-04-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864552', 'tblTempUsageDetail_20' ) end [2025-04-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864552', 'tblTempVendorCDR_20' ) start [2025-04-08 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864552', 'tblTempVendorCDR_20' ) end [2025-04-08 20:10:19] Production.INFO: ProcessCDR(1,14864552,1,1,2) [2025-04-08 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864552', 'tblTempUsageDetail_20' ) start [2025-04-08 20:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864552', 'tblTempUsageDetail_20' ) end [2025-04-08 20:10:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:10:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:10:24] Production.INFO: ==18077== Releasing lock... [2025-04-08 20:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:10:24] Production.INFO: 41.75 MB #Memory Used# [2025-04-08 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:11:05 [end_date_ymd] => 2025-04-08 20:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:11:05' and `end` < '2025-04-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-04-08 20:11:18] Production.INFO: count ==1768 [2025-04-08 20:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:11:05 - End Time 2025-04-08 20:11:05 [2025-04-08 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864557', 'tblTempUsageDetail_20' ) start [2025-04-08 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864557', 'tblTempUsageDetail_20' ) end [2025-04-08 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864557', 'tblTempVendorCDR_20' ) start [2025-04-08 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864557', 'tblTempVendorCDR_20' ) end [2025-04-08 20:11:18] Production.INFO: ProcessCDR(1,14864557,1,1,2) [2025-04-08 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864557', 'tblTempUsageDetail_20' ) start [2025-04-08 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864557', 'tblTempUsageDetail_20' ) end [2025-04-08 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:11:22] Production.INFO: ==18151== Releasing lock... [2025-04-08 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-08 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:12:06 [end_date_ymd] => 2025-04-08 20:12:06 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:12:06' and `end` < '2025-04-08 20: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-04-08 20:12:19] Production.INFO: count ==1757 [2025-04-08 20:12:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:12:06 - End Time 2025-04-08 20:12:06 [2025-04-08 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864562', 'tblTempUsageDetail_20' ) start [2025-04-08 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864562', 'tblTempUsageDetail_20' ) end [2025-04-08 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864562', 'tblTempVendorCDR_20' ) start [2025-04-08 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864562', 'tblTempVendorCDR_20' ) end [2025-04-08 20:12:19] Production.INFO: ProcessCDR(1,14864562,1,1,2) [2025-04-08 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864562', 'tblTempUsageDetail_20' ) start [2025-04-08 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864562', 'tblTempUsageDetail_20' ) end [2025-04-08 20:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:12:22] Production.INFO: ==18230== Releasing lock... [2025-04-08 20:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:12:22] Production.INFO: 41 MB #Memory Used# [2025-04-08 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:13:05 [end_date_ymd] => 2025-04-08 20:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:13:05' and `end` < '2025-04-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-04-08 20:13:18] Production.INFO: count ==1753 [2025-04-08 20:13:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:13:05 - End Time 2025-04-08 20:13:05 [2025-04-08 20:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864567', 'tblTempUsageDetail_20' ) start [2025-04-08 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864567', 'tblTempUsageDetail_20' ) end [2025-04-08 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864567', 'tblTempVendorCDR_20' ) start [2025-04-08 20:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864567', 'tblTempVendorCDR_20' ) end [2025-04-08 20:13:19] Production.INFO: ProcessCDR(1,14864567,1,1,2) [2025-04-08 20:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864567', 'tblTempUsageDetail_20' ) start [2025-04-08 20:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864567', 'tblTempUsageDetail_20' ) end [2025-04-08 20:13:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:13:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:13:24] Production.INFO: ==18339== Releasing lock... [2025-04-08 20:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:13:24] Production.INFO: 41.25 MB #Memory Used# [2025-04-08 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:14:05 [end_date_ymd] => 2025-04-08 20:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:14:05' and `end` < '2025-04-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-04-08 20:14:18] Production.INFO: count ==1742 [2025-04-08 20:14:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:14:05 - End Time 2025-04-08 20:14:05 [2025-04-08 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864572', 'tblTempUsageDetail_20' ) start [2025-04-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864572', 'tblTempUsageDetail_20' ) end [2025-04-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864572', 'tblTempVendorCDR_20' ) start [2025-04-08 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864572', 'tblTempVendorCDR_20' ) end [2025-04-08 20:14:19] Production.INFO: ProcessCDR(1,14864572,1,1,2) [2025-04-08 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864572', 'tblTempUsageDetail_20' ) start [2025-04-08 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864572', 'tblTempUsageDetail_20' ) end [2025-04-08 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:14:22] Production.INFO: ==18415== Releasing lock... [2025-04-08 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:14:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-08 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:15:04 [end_date_ymd] => 2025-04-08 20:15:04 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:15:04' and `end` < '2025-04-08 20: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-04-08 20:15:17] Production.INFO: count ==1740 [2025-04-08 20:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:15:04 - End Time 2025-04-08 20:15:04 [2025-04-08 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864577', 'tblTempUsageDetail_20' ) start [2025-04-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864577', 'tblTempUsageDetail_20' ) end [2025-04-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864577', 'tblTempVendorCDR_20' ) start [2025-04-08 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864577', 'tblTempVendorCDR_20' ) end [2025-04-08 20:15:18] Production.INFO: ProcessCDR(1,14864577,1,1,2) [2025-04-08 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864577', 'tblTempUsageDetail_20' ) start [2025-04-08 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864577', 'tblTempUsageDetail_20' ) end [2025-04-08 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:15:21] Production.INFO: ==18489== Releasing lock... [2025-04-08 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:15:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-08 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:16:05 [end_date_ymd] => 2025-04-08 20:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:16:05' and `end` < '2025-04-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-04-08 20:16:18] Production.INFO: count ==1739 [2025-04-08 20:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:16:05 - End Time 2025-04-08 20:16:05 [2025-04-08 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864582', 'tblTempUsageDetail_20' ) start [2025-04-08 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864582', 'tblTempUsageDetail_20' ) end [2025-04-08 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864582', 'tblTempVendorCDR_20' ) start [2025-04-08 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864582', 'tblTempVendorCDR_20' ) end [2025-04-08 20:16:18] Production.INFO: ProcessCDR(1,14864582,1,1,2) [2025-04-08 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864582', 'tblTempUsageDetail_20' ) start [2025-04-08 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864582', 'tblTempUsageDetail_20' ) end [2025-04-08 20:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:16:21] Production.INFO: ==18569== Releasing lock... [2025-04-08 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:16:21] Production.INFO: 40.75 MB #Memory Used# [2025-04-08 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:17:06 [end_date_ymd] => 2025-04-08 20:17:06 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:17:06' and `end` < '2025-04-08 20: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-04-08 20:17:19] Production.INFO: count ==1734 [2025-04-08 20:17:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:17:06 - End Time 2025-04-08 20:17:06 [2025-04-08 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864587', 'tblTempUsageDetail_20' ) start [2025-04-08 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864587', 'tblTempUsageDetail_20' ) end [2025-04-08 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864587', 'tblTempVendorCDR_20' ) start [2025-04-08 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864587', 'tblTempVendorCDR_20' ) end [2025-04-08 20:17:19] Production.INFO: ProcessCDR(1,14864587,1,1,2) [2025-04-08 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864587', 'tblTempUsageDetail_20' ) start [2025-04-08 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864587', 'tblTempUsageDetail_20' ) end [2025-04-08 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:17:22] Production.INFO: ==18651== Releasing lock... [2025-04-08 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:17:22] Production.INFO: 41.25 MB #Memory Used# [2025-04-08 20:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:18:04 [end_date_ymd] => 2025-04-08 20:18:04 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:18:04' and `end` < '2025-04-08 20: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-04-08 20:18:17] Production.INFO: count ==1730 [2025-04-08 20:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:18:04 - End Time 2025-04-08 20:18:04 [2025-04-08 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864592', 'tblTempUsageDetail_20' ) start [2025-04-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864592', 'tblTempUsageDetail_20' ) end [2025-04-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864592', 'tblTempVendorCDR_20' ) start [2025-04-08 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864592', 'tblTempVendorCDR_20' ) end [2025-04-08 20:18:18] Production.INFO: ProcessCDR(1,14864592,1,1,2) [2025-04-08 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864592', 'tblTempUsageDetail_20' ) start [2025-04-08 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864592', 'tblTempUsageDetail_20' ) end [2025-04-08 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:18:23] Production.INFO: ==18736== Releasing lock... [2025-04-08 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:18:23] Production.INFO: 41.25 MB #Memory Used# [2025-04-08 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:19:05 [end_date_ymd] => 2025-04-08 20:19:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:19:05' and `end` < '2025-04-08 20: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-04-08 20:19:18] Production.INFO: count ==1726 [2025-04-08 20:19:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:19:05 - End Time 2025-04-08 20:19:05 [2025-04-08 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864597', 'tblTempUsageDetail_20' ) start [2025-04-08 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864597', 'tblTempUsageDetail_20' ) end [2025-04-08 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864597', 'tblTempVendorCDR_20' ) start [2025-04-08 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864597', 'tblTempVendorCDR_20' ) end [2025-04-08 20:19:19] Production.INFO: ProcessCDR(1,14864597,1,1,2) [2025-04-08 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864597', 'tblTempUsageDetail_20' ) start [2025-04-08 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864597', 'tblTempUsageDetail_20' ) end [2025-04-08 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:19:22] Production.INFO: ==18823== Releasing lock... [2025-04-08 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:19:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-08 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:20:06 [end_date_ymd] => 2025-04-08 20:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 17:20:06' and `end` < '2025-04-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-04-08 20:20:19] Production.INFO: count ==1720 [2025-04-08 20:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:20:06 - End Time 2025-04-08 20:20:06 [2025-04-08 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864602', 'tblTempUsageDetail_20' ) start [2025-04-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864602', 'tblTempUsageDetail_20' ) end [2025-04-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864602', 'tblTempVendorCDR_20' ) start [2025-04-08 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864602', 'tblTempVendorCDR_20' ) end [2025-04-08 20:20:19] Production.INFO: ProcessCDR(1,14864602,1,1,2) [2025-04-08 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864602', 'tblTempUsageDetail_20' ) start [2025-04-08 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864602', 'tblTempUsageDetail_20' ) end [2025-04-08 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:20:22] Production.INFO: ==18898== Releasing lock... [2025-04-08 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:20:22] Production.INFO: 41 MB #Memory Used# [2025-04-08 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:21:05 [end_date_ymd] => 2025-04-08 20:21:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:21:05' and `end` < '2025-04-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-04-08 20:21:19] Production.INFO: count ==1666 [2025-04-08 20:21:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:21:05 - End Time 2025-04-08 20:21:05 [2025-04-08 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864608', 'tblTempUsageDetail_20' ) start [2025-04-08 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864608', 'tblTempUsageDetail_20' ) end [2025-04-08 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864608', 'tblTempVendorCDR_20' ) start [2025-04-08 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864608', 'tblTempVendorCDR_20' ) end [2025-04-08 20:21:19] Production.INFO: ProcessCDR(1,14864608,1,1,2) [2025-04-08 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864608', 'tblTempUsageDetail_20' ) start [2025-04-08 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864608', 'tblTempUsageDetail_20' ) end [2025-04-08 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:21:22] Production.INFO: ==18974== Releasing lock... [2025-04-08 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:21:22] Production.INFO: 40.5 MB #Memory Used# [2025-04-08 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:22:05 [end_date_ymd] => 2025-04-08 20:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:22:05' and `end` < '2025-04-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-04-08 20:22:18] Production.INFO: count ==1663 [2025-04-08 20:22:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:22:05 - End Time 2025-04-08 20:22:05 [2025-04-08 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864613', 'tblTempUsageDetail_20' ) start [2025-04-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864613', 'tblTempUsageDetail_20' ) end [2025-04-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864613', 'tblTempVendorCDR_20' ) start [2025-04-08 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864613', 'tblTempVendorCDR_20' ) end [2025-04-08 20:22:18] Production.INFO: ProcessCDR(1,14864613,1,1,2) [2025-04-08 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864613', 'tblTempUsageDetail_20' ) start [2025-04-08 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864613', 'tblTempUsageDetail_20' ) end [2025-04-08 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:22:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:22:22] Production.INFO: ==19048== Releasing lock... [2025-04-08 20:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:22:22] Production.INFO: 40.75 MB #Memory Used# [2025-04-08 20:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:23:06 [end_date_ymd] => 2025-04-08 20:23:06 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:23:06' and `end` < '2025-04-08 20: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-04-08 20:23:19] Production.INFO: count ==1659 [2025-04-08 20:23:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:23:06 - End Time 2025-04-08 20:23:06 [2025-04-08 20:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864618', 'tblTempUsageDetail_20' ) start [2025-04-08 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864618', 'tblTempUsageDetail_20' ) end [2025-04-08 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864618', 'tblTempVendorCDR_20' ) start [2025-04-08 20:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864618', 'tblTempVendorCDR_20' ) end [2025-04-08 20:23:19] Production.INFO: ProcessCDR(1,14864618,1,1,2) [2025-04-08 20:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864618', 'tblTempUsageDetail_20' ) start [2025-04-08 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864618', 'tblTempUsageDetail_20' ) end [2025-04-08 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:23:22] Production.INFO: ==19126== Releasing lock... [2025-04-08 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:23:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-08 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:24:05 [end_date_ymd] => 2025-04-08 20:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:24:05' and `end` < '2025-04-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-04-08 20:24:18] Production.INFO: count ==1657 [2025-04-08 20:24:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:24:05 - End Time 2025-04-08 20:24:05 [2025-04-08 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864623', 'tblTempUsageDetail_20' ) start [2025-04-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864623', 'tblTempUsageDetail_20' ) end [2025-04-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864623', 'tblTempVendorCDR_20' ) start [2025-04-08 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864623', 'tblTempVendorCDR_20' ) end [2025-04-08 20:24:18] Production.INFO: ProcessCDR(1,14864623,1,1,2) [2025-04-08 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864623', 'tblTempUsageDetail_20' ) start [2025-04-08 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864623', 'tblTempUsageDetail_20' ) end [2025-04-08 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:24:21] Production.INFO: ==19196== Releasing lock... [2025-04-08 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:24:21] Production.INFO: 40.25 MB #Memory Used# [2025-04-08 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:25:05 [end_date_ymd] => 2025-04-08 20:25:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:25:05' and `end` < '2025-04-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-04-08 20:25:19] Production.INFO: count ==1655 [2025-04-08 20:25:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:25:05 - End Time 2025-04-08 20:25:05 [2025-04-08 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864628', 'tblTempUsageDetail_20' ) start [2025-04-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864628', 'tblTempUsageDetail_20' ) end [2025-04-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864628', 'tblTempVendorCDR_20' ) start [2025-04-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864628', 'tblTempVendorCDR_20' ) end [2025-04-08 20:25:19] Production.INFO: ProcessCDR(1,14864628,1,1,2) [2025-04-08 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864628', 'tblTempUsageDetail_20' ) start [2025-04-08 20:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864628', 'tblTempUsageDetail_20' ) end [2025-04-08 20:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:25:22] Production.INFO: ==19270== Releasing lock... [2025-04-08 20:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:25:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-08 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:26:05 [end_date_ymd] => 2025-04-08 20:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:26:05' and `end` < '2025-04-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-04-08 20:26:18] Production.INFO: count ==1655 [2025-04-08 20:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:26:05 - End Time 2025-04-08 20:26:05 [2025-04-08 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864633', 'tblTempUsageDetail_20' ) start [2025-04-08 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864633', 'tblTempUsageDetail_20' ) end [2025-04-08 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864633', 'tblTempVendorCDR_20' ) start [2025-04-08 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864633', 'tblTempVendorCDR_20' ) end [2025-04-08 20:26:18] Production.INFO: ProcessCDR(1,14864633,1,1,2) [2025-04-08 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864633', 'tblTempUsageDetail_20' ) start [2025-04-08 20:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864633', 'tblTempUsageDetail_20' ) end [2025-04-08 20:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:26:22] Production.INFO: ==19347== Releasing lock... [2025-04-08 20:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:26:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-08 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:27:05 [end_date_ymd] => 2025-04-08 20:27:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:27:05' and `end` < '2025-04-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-04-08 20:27:18] Production.INFO: count ==1643 [2025-04-08 20:27:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:27:05 - End Time 2025-04-08 20:27:05 [2025-04-08 20:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864638', 'tblTempUsageDetail_20' ) start [2025-04-08 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864638', 'tblTempUsageDetail_20' ) end [2025-04-08 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864638', 'tblTempVendorCDR_20' ) start [2025-04-08 20:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864638', 'tblTempVendorCDR_20' ) end [2025-04-08 20:27:19] Production.INFO: ProcessCDR(1,14864638,1,1,2) [2025-04-08 20:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864638', 'tblTempUsageDetail_20' ) start [2025-04-08 20:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864638', 'tblTempUsageDetail_20' ) end [2025-04-08 20:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:27:22] Production.INFO: ==19419== Releasing lock... [2025-04-08 20:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:27:22] Production.INFO: 40 MB #Memory Used# [2025-04-08 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:28:05 [end_date_ymd] => 2025-04-08 20:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:28:05' and `end` < '2025-04-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-04-08 20:28:18] Production.INFO: count ==1642 [2025-04-08 20:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:28:05 - End Time 2025-04-08 20:28:05 [2025-04-08 20:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864643', 'tblTempUsageDetail_20' ) start [2025-04-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864643', 'tblTempUsageDetail_20' ) end [2025-04-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864643', 'tblTempVendorCDR_20' ) start [2025-04-08 20:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864643', 'tblTempVendorCDR_20' ) end [2025-04-08 20:28:18] Production.INFO: ProcessCDR(1,14864643,1,1,2) [2025-04-08 20:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864643', 'tblTempUsageDetail_20' ) start [2025-04-08 20:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864643', 'tblTempUsageDetail_20' ) end [2025-04-08 20:28:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:28:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:28:21] Production.INFO: ==19495== Releasing lock... [2025-04-08 20:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:28:21] Production.INFO: 40 MB #Memory Used# [2025-04-08 20:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:29:04 [end_date_ymd] => 2025-04-08 20:29:04 [RateCDR] => 1 ) [2025-04-08 20:29: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-04-08 17:29:04' and `end` < '2025-04-08 20:29: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-04-08 20:29:18] Production.INFO: count ==1638 [2025-04-08 20:29:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:29:04 - End Time 2025-04-08 20:29:04 [2025-04-08 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864648', 'tblTempUsageDetail_20' ) start [2025-04-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864648', 'tblTempUsageDetail_20' ) end [2025-04-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864648', 'tblTempVendorCDR_20' ) start [2025-04-08 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864648', 'tblTempVendorCDR_20' ) end [2025-04-08 20:29:18] Production.INFO: ProcessCDR(1,14864648,1,1,2) [2025-04-08 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864648', 'tblTempUsageDetail_20' ) start [2025-04-08 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864648', 'tblTempUsageDetail_20' ) end [2025-04-08 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:29:21] Production.INFO: ==19603== Releasing lock... [2025-04-08 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:29:21] Production.INFO: 40 MB #Memory Used# [2025-04-08 20:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:30:05 [end_date_ymd] => 2025-04-08 20:30:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:30:05' and `end` < '2025-04-08 20: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-04-08 20:30:18] Production.INFO: count ==1634 [2025-04-08 20:30:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:30:05 - End Time 2025-04-08 20:30:05 [2025-04-08 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864654', 'tblTempUsageDetail_20' ) start [2025-04-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864654', 'tblTempUsageDetail_20' ) end [2025-04-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864654', 'tblTempVendorCDR_20' ) start [2025-04-08 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864654', 'tblTempVendorCDR_20' ) end [2025-04-08 20:30:19] Production.INFO: ProcessCDR(1,14864654,1,1,2) [2025-04-08 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864654', 'tblTempUsageDetail_20' ) start [2025-04-08 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864654', 'tblTempUsageDetail_20' ) end [2025-04-08 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:30:22] Production.INFO: ==19683== Releasing lock... [2025-04-08 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:30:22] Production.INFO: 40.25 MB #Memory Used# [2025-04-08 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:31:05 [end_date_ymd] => 2025-04-08 20:31:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:31:05' and `end` < '2025-04-08 20: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-04-08 20:31:18] Production.INFO: count ==1606 [2025-04-08 20:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:31:05 - End Time 2025-04-08 20:31:05 [2025-04-08 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864659', 'tblTempUsageDetail_20' ) start [2025-04-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864659', 'tblTempUsageDetail_20' ) end [2025-04-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864659', 'tblTempVendorCDR_20' ) start [2025-04-08 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864659', 'tblTempVendorCDR_20' ) end [2025-04-08 20:31:18] Production.INFO: ProcessCDR(1,14864659,1,1,2) [2025-04-08 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864659', 'tblTempUsageDetail_20' ) start [2025-04-08 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864659', 'tblTempUsageDetail_20' ) end [2025-04-08 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:31:22] Production.INFO: ==19761== Releasing lock... [2025-04-08 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:31:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-08 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:32:05 [end_date_ymd] => 2025-04-08 20:32:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:32:05' and `end` < '2025-04-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-04-08 20:32:19] Production.INFO: count ==1604 [2025-04-08 20:32:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:32:05 - End Time 2025-04-08 20:32:05 [2025-04-08 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864664', 'tblTempUsageDetail_20' ) start [2025-04-08 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864664', 'tblTempUsageDetail_20' ) end [2025-04-08 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864664', 'tblTempVendorCDR_20' ) start [2025-04-08 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864664', 'tblTempVendorCDR_20' ) end [2025-04-08 20:32:19] Production.INFO: ProcessCDR(1,14864664,1,1,2) [2025-04-08 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864664', 'tblTempUsageDetail_20' ) start [2025-04-08 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864664', 'tblTempUsageDetail_20' ) end [2025-04-08 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:32:22] Production.INFO: ==19833== Releasing lock... [2025-04-08 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:32:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-08 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:33:05 [end_date_ymd] => 2025-04-08 20:33:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:33:05' and `end` < '2025-04-08 20: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-04-08 20:33:18] Production.INFO: count ==1603 [2025-04-08 20:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:33:05 - End Time 2025-04-08 20:33:05 [2025-04-08 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864669', 'tblTempUsageDetail_20' ) start [2025-04-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864669', 'tblTempUsageDetail_20' ) end [2025-04-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864669', 'tblTempVendorCDR_20' ) start [2025-04-08 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864669', 'tblTempVendorCDR_20' ) end [2025-04-08 20:33:18] Production.INFO: ProcessCDR(1,14864669,1,1,2) [2025-04-08 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864669', 'tblTempUsageDetail_20' ) start [2025-04-08 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864669', 'tblTempUsageDetail_20' ) end [2025-04-08 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:33:22] Production.INFO: ==19905== Releasing lock... [2025-04-08 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-04-08 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:34:05 [end_date_ymd] => 2025-04-08 20:34:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:34:05' and `end` < '2025-04-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-04-08 20:34:18] Production.INFO: count ==1601 [2025-04-08 20:34:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:34:05 - End Time 2025-04-08 20:34:05 [2025-04-08 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864674', 'tblTempUsageDetail_20' ) start [2025-04-08 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864674', 'tblTempUsageDetail_20' ) end [2025-04-08 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864674', 'tblTempVendorCDR_20' ) start [2025-04-08 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864674', 'tblTempVendorCDR_20' ) end [2025-04-08 20:34:19] Production.INFO: ProcessCDR(1,14864674,1,1,2) [2025-04-08 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864674', 'tblTempUsageDetail_20' ) start [2025-04-08 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864674', 'tblTempUsageDetail_20' ) end [2025-04-08 20:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:34:24] Production.INFO: ==19979== Releasing lock... [2025-04-08 20:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:34:24] Production.INFO: 40 MB #Memory Used# [2025-04-08 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:35:05 [end_date_ymd] => 2025-04-08 20:35:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:35:05' and `end` < '2025-04-08 20: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-04-08 20:35:18] Production.INFO: count ==1586 [2025-04-08 20:35:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:35:05 - End Time 2025-04-08 20:35:05 [2025-04-08 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864679', 'tblTempUsageDetail_20' ) start [2025-04-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864679', 'tblTempUsageDetail_20' ) end [2025-04-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864679', 'tblTempVendorCDR_20' ) start [2025-04-08 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864679', 'tblTempVendorCDR_20' ) end [2025-04-08 20:35:18] Production.INFO: ProcessCDR(1,14864679,1,1,2) [2025-04-08 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864679', 'tblTempUsageDetail_20' ) start [2025-04-08 20:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864679', 'tblTempUsageDetail_20' ) end [2025-04-08 20:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:35:21] Production.INFO: ==20049== Releasing lock... [2025-04-08 20:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:35:21] Production.INFO: 40 MB #Memory Used# [2025-04-08 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:36:06 [end_date_ymd] => 2025-04-08 20:36:06 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:36:06' and `end` < '2025-04-08 20: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-04-08 20:36:19] Production.INFO: count ==1584 [2025-04-08 20:36:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:36:06 - End Time 2025-04-08 20:36:06 [2025-04-08 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864684', 'tblTempUsageDetail_20' ) start [2025-04-08 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864684', 'tblTempUsageDetail_20' ) end [2025-04-08 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864684', 'tblTempVendorCDR_20' ) start [2025-04-08 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864684', 'tblTempVendorCDR_20' ) end [2025-04-08 20:36:19] Production.INFO: ProcessCDR(1,14864684,1,1,2) [2025-04-08 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864684', 'tblTempUsageDetail_20' ) start [2025-04-08 20:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864684', 'tblTempUsageDetail_20' ) end [2025-04-08 20:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:36:22] Production.INFO: ==20125== Releasing lock... [2025-04-08 20:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:36:22] Production.INFO: 40 MB #Memory Used# [2025-04-08 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:37:05 [end_date_ymd] => 2025-04-08 20:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:37:05' and `end` < '2025-04-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-04-08 20:37:18] Production.INFO: count ==1577 [2025-04-08 20:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:37:05 - End Time 2025-04-08 20:37:05 [2025-04-08 20:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864689', 'tblTempUsageDetail_20' ) start [2025-04-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864689', 'tblTempUsageDetail_20' ) end [2025-04-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864689', 'tblTempVendorCDR_20' ) start [2025-04-08 20:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864689', 'tblTempVendorCDR_20' ) end [2025-04-08 20:37:18] Production.INFO: ProcessCDR(1,14864689,1,1,2) [2025-04-08 20:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864689', 'tblTempUsageDetail_20' ) start [2025-04-08 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864689', 'tblTempUsageDetail_20' ) end [2025-04-08 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:37:24] Production.INFO: ==20200== Releasing lock... [2025-04-08 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:37:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-08 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:38:05 [end_date_ymd] => 2025-04-08 20:38:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:38:05' and `end` < '2025-04-08 20: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-04-08 20:38:18] Production.INFO: count ==1571 [2025-04-08 20:38:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:38:05 - End Time 2025-04-08 20:38:05 [2025-04-08 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864694', 'tblTempUsageDetail_20' ) start [2025-04-08 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864694', 'tblTempUsageDetail_20' ) end [2025-04-08 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864694', 'tblTempVendorCDR_20' ) start [2025-04-08 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864694', 'tblTempVendorCDR_20' ) end [2025-04-08 20:38:19] Production.INFO: ProcessCDR(1,14864694,1,1,2) [2025-04-08 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864694', 'tblTempUsageDetail_20' ) start [2025-04-08 20:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864694', 'tblTempUsageDetail_20' ) end [2025-04-08 20:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:38:22] Production.INFO: ==20271== Releasing lock... [2025-04-08 20:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:38:22] Production.INFO: 39.5 MB #Memory Used# [2025-04-08 20:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:39:04 [end_date_ymd] => 2025-04-08 20:39:04 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:39:04' and `end` < '2025-04-08 20: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-04-08 20:39:18] Production.INFO: count ==1558 [2025-04-08 20:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:39:04 - End Time 2025-04-08 20:39:04 [2025-04-08 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864699', 'tblTempUsageDetail_20' ) start [2025-04-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864699', 'tblTempUsageDetail_20' ) end [2025-04-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864699', 'tblTempVendorCDR_20' ) start [2025-04-08 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864699', 'tblTempVendorCDR_20' ) end [2025-04-08 20:39:18] Production.INFO: ProcessCDR(1,14864699,1,1,2) [2025-04-08 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864699', 'tblTempUsageDetail_20' ) start [2025-04-08 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864699', 'tblTempUsageDetail_20' ) end [2025-04-08 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:39:21] Production.INFO: ==20347== Releasing lock... [2025-04-08 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:39:21] Production.INFO: 39.5 MB #Memory Used# [2025-04-08 20:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:40:06 [end_date_ymd] => 2025-04-08 20:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 17:40:06' and `end` < '2025-04-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-04-08 20:40:19] Production.INFO: count ==1553 [2025-04-08 20:40:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:40:06 - End Time 2025-04-08 20:40:06 [2025-04-08 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864705', 'tblTempUsageDetail_20' ) start [2025-04-08 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864705', 'tblTempUsageDetail_20' ) end [2025-04-08 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864705', 'tblTempVendorCDR_20' ) start [2025-04-08 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864705', 'tblTempVendorCDR_20' ) end [2025-04-08 20:40:19] Production.INFO: ProcessCDR(1,14864705,1,1,2) [2025-04-08 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864705', 'tblTempUsageDetail_20' ) start [2025-04-08 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864705', 'tblTempUsageDetail_20' ) end [2025-04-08 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:40:24] Production.INFO: ==20425== Releasing lock... [2025-04-08 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:40:24] Production.INFO: 39.5 MB #Memory Used# [2025-04-08 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:41:05 [end_date_ymd] => 2025-04-08 20:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:41:05' and `end` < '2025-04-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-04-08 20:41:18] Production.INFO: count ==1499 [2025-04-08 20:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:41:05 - End Time 2025-04-08 20:41:05 [2025-04-08 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864710', 'tblTempUsageDetail_20' ) start [2025-04-08 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864710', 'tblTempUsageDetail_20' ) end [2025-04-08 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864710', 'tblTempVendorCDR_20' ) start [2025-04-08 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864710', 'tblTempVendorCDR_20' ) end [2025-04-08 20:41:18] Production.INFO: ProcessCDR(1,14864710,1,1,2) [2025-04-08 20:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864710', 'tblTempUsageDetail_20' ) start [2025-04-08 20:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864710', 'tblTempUsageDetail_20' ) end [2025-04-08 20:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:41:23] Production.INFO: ==20498== Releasing lock... [2025-04-08 20:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:41:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-08 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:42:05 [end_date_ymd] => 2025-04-08 20:42:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:42:05' and `end` < '2025-04-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-04-08 20:42:18] Production.INFO: count ==1499 [2025-04-08 20:42:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:42:05 - End Time 2025-04-08 20:42:05 [2025-04-08 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864715', 'tblTempUsageDetail_20' ) start [2025-04-08 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864715', 'tblTempUsageDetail_20' ) end [2025-04-08 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864715', 'tblTempVendorCDR_20' ) start [2025-04-08 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864715', 'tblTempVendorCDR_20' ) end [2025-04-08 20:42:19] Production.INFO: ProcessCDR(1,14864715,1,1,2) [2025-04-08 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864715', 'tblTempUsageDetail_20' ) start [2025-04-08 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864715', 'tblTempUsageDetail_20' ) end [2025-04-08 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:42:24] Production.INFO: ==20572== Releasing lock... [2025-04-08 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:42:24] Production.INFO: 39.25 MB #Memory Used# [2025-04-08 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:43:05 [end_date_ymd] => 2025-04-08 20:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:43:05' and `end` < '2025-04-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-04-08 20:43:18] Production.INFO: count ==1497 [2025-04-08 20:43:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:43:05 - End Time 2025-04-08 20:43:05 [2025-04-08 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864720', 'tblTempUsageDetail_20' ) start [2025-04-08 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864720', 'tblTempUsageDetail_20' ) end [2025-04-08 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864720', 'tblTempVendorCDR_20' ) start [2025-04-08 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864720', 'tblTempVendorCDR_20' ) end [2025-04-08 20:43:18] Production.INFO: ProcessCDR(1,14864720,1,1,2) [2025-04-08 20:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864720', 'tblTempUsageDetail_20' ) start [2025-04-08 20:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864720', 'tblTempUsageDetail_20' ) end [2025-04-08 20:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:43:23] Production.INFO: ==20641== Releasing lock... [2025-04-08 20:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:43:23] Production.INFO: 39.25 MB #Memory Used# [2025-04-08 20:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:44:06 [end_date_ymd] => 2025-04-08 20:44:06 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:44:06' and `end` < '2025-04-08 20: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-04-08 20:44:19] Production.INFO: count ==1484 [2025-04-08 20:44:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:44:06 - End Time 2025-04-08 20:44:06 [2025-04-08 20:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864725', 'tblTempUsageDetail_20' ) start [2025-04-08 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864725', 'tblTempUsageDetail_20' ) end [2025-04-08 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864725', 'tblTempVendorCDR_20' ) start [2025-04-08 20:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864725', 'tblTempVendorCDR_20' ) end [2025-04-08 20:44:19] Production.INFO: ProcessCDR(1,14864725,1,1,2) [2025-04-08 20:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864725', 'tblTempUsageDetail_20' ) start [2025-04-08 20:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864725', 'tblTempUsageDetail_20' ) end [2025-04-08 20:44:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:44:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:44:22] Production.INFO: ==20755== Releasing lock... [2025-04-08 20:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:44:22] Production.INFO: 39 MB #Memory Used# [2025-04-08 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:45:04 [end_date_ymd] => 2025-04-08 20:45:04 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:45:04' and `end` < '2025-04-08 20: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-04-08 20:45:17] Production.INFO: count ==1480 [2025-04-08 20:45:17] Production.ERROR: pbx CDR StartTime 2025-04-08 17:45:04 - End Time 2025-04-08 20:45:04 [2025-04-08 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864730', 'tblTempUsageDetail_20' ) start [2025-04-08 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864730', 'tblTempUsageDetail_20' ) end [2025-04-08 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864730', 'tblTempVendorCDR_20' ) start [2025-04-08 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864730', 'tblTempVendorCDR_20' ) end [2025-04-08 20:45:17] Production.INFO: ProcessCDR(1,14864730,1,1,2) [2025-04-08 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864730', 'tblTempUsageDetail_20' ) start [2025-04-08 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864730', 'tblTempUsageDetail_20' ) end [2025-04-08 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:45:21] Production.INFO: ==20827== Releasing lock... [2025-04-08 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:45:21] Production.INFO: 39 MB #Memory Used# [2025-04-08 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:46:05 [end_date_ymd] => 2025-04-08 20:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:46:05' and `end` < '2025-04-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-04-08 20:46:18] Production.INFO: count ==1480 [2025-04-08 20:46:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:46:05 - End Time 2025-04-08 20:46:05 [2025-04-08 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864735', 'tblTempUsageDetail_20' ) start [2025-04-08 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864735', 'tblTempUsageDetail_20' ) end [2025-04-08 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864735', 'tblTempVendorCDR_20' ) start [2025-04-08 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864735', 'tblTempVendorCDR_20' ) end [2025-04-08 20:46:18] Production.INFO: ProcessCDR(1,14864735,1,1,2) [2025-04-08 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864735', 'tblTempUsageDetail_20' ) start [2025-04-08 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864735', 'tblTempUsageDetail_20' ) end [2025-04-08 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:46:23] Production.INFO: ==20900== Releasing lock... [2025-04-08 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:46:23] Production.INFO: 39 MB #Memory Used# [2025-04-08 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:47:05 [end_date_ymd] => 2025-04-08 20:47:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:47:05' and `end` < '2025-04-08 20: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-04-08 20:47:18] Production.INFO: count ==1479 [2025-04-08 20:47:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:47:05 - End Time 2025-04-08 20:47:05 [2025-04-08 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864740', 'tblTempUsageDetail_20' ) start [2025-04-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864740', 'tblTempUsageDetail_20' ) end [2025-04-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864740', 'tblTempVendorCDR_20' ) start [2025-04-08 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864740', 'tblTempVendorCDR_20' ) end [2025-04-08 20:47:19] Production.INFO: ProcessCDR(1,14864740,1,1,2) [2025-04-08 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864740', 'tblTempUsageDetail_20' ) start [2025-04-08 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864740', 'tblTempUsageDetail_20' ) end [2025-04-08 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:47:22] Production.INFO: ==20976== Releasing lock... [2025-04-08 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:47:22] Production.INFO: 39 MB #Memory Used# [2025-04-08 20:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:48:05 [end_date_ymd] => 2025-04-08 20:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:48:05' and `end` < '2025-04-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-04-08 20:48:17] Production.INFO: count ==1468 [2025-04-08 20:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:48:05 - End Time 2025-04-08 20:48:05 [2025-04-08 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864745', 'tblTempUsageDetail_20' ) start [2025-04-08 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864745', 'tblTempUsageDetail_20' ) end [2025-04-08 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864745', 'tblTempVendorCDR_20' ) start [2025-04-08 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864745', 'tblTempVendorCDR_20' ) end [2025-04-08 20:48:18] Production.INFO: ProcessCDR(1,14864745,1,1,2) [2025-04-08 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864745', 'tblTempUsageDetail_20' ) start [2025-04-08 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864745', 'tblTempUsageDetail_20' ) end [2025-04-08 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:48:22] Production.INFO: ==21049== Releasing lock... [2025-04-08 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:48:22] Production.INFO: 38.75 MB #Memory Used# [2025-04-08 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:49:05 [end_date_ymd] => 2025-04-08 20:49:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:49:05' and `end` < '2025-04-08 20: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-04-08 20:49:18] Production.INFO: count ==1461 [2025-04-08 20:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:49:05 - End Time 2025-04-08 20:49:05 [2025-04-08 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864750', 'tblTempUsageDetail_20' ) start [2025-04-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864750', 'tblTempUsageDetail_20' ) end [2025-04-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864750', 'tblTempVendorCDR_20' ) start [2025-04-08 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864750', 'tblTempVendorCDR_20' ) end [2025-04-08 20:49:18] Production.INFO: ProcessCDR(1,14864750,1,1,2) [2025-04-08 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864750', 'tblTempUsageDetail_20' ) start [2025-04-08 20:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864750', 'tblTempUsageDetail_20' ) end [2025-04-08 20:49:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:49:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:49:22] Production.INFO: ==21121== Releasing lock... [2025-04-08 20:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:49:22] Production.INFO: 39 MB #Memory Used# [2025-04-08 20:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:50:05 [end_date_ymd] => 2025-04-08 20:50:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:50:05' and `end` < '2025-04-08 20: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-04-08 20:50:18] Production.INFO: count ==1461 [2025-04-08 20:50:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:50:05 - End Time 2025-04-08 20:50:05 [2025-04-08 20:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864756', 'tblTempUsageDetail_20' ) start [2025-04-08 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864756', 'tblTempUsageDetail_20' ) end [2025-04-08 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864756', 'tblTempVendorCDR_20' ) start [2025-04-08 20:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864756', 'tblTempVendorCDR_20' ) end [2025-04-08 20:50:18] Production.INFO: ProcessCDR(1,14864756,1,1,2) [2025-04-08 20:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864756', 'tblTempUsageDetail_20' ) start [2025-04-08 20:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864756', 'tblTempUsageDetail_20' ) end [2025-04-08 20:50:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:50:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:50:21] Production.INFO: ==21197== Releasing lock... [2025-04-08 20:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:50:21] Production.INFO: 38.75 MB #Memory Used# [2025-04-08 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:51:05 [end_date_ymd] => 2025-04-08 20:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:51:05' and `end` < '2025-04-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-04-08 20:51:18] Production.INFO: count ==1416 [2025-04-08 20:51:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:51:05 - End Time 2025-04-08 20:51:05 [2025-04-08 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864761', 'tblTempUsageDetail_20' ) start [2025-04-08 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864761', 'tblTempUsageDetail_20' ) end [2025-04-08 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864761', 'tblTempVendorCDR_20' ) start [2025-04-08 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864761', 'tblTempVendorCDR_20' ) end [2025-04-08 20:51:19] Production.INFO: ProcessCDR(1,14864761,1,1,2) [2025-04-08 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864761', 'tblTempUsageDetail_20' ) start [2025-04-08 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864761', 'tblTempUsageDetail_20' ) end [2025-04-08 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:51:22] Production.INFO: ==21281== Releasing lock... [2025-04-08 20:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:51:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-08 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:52:06 [end_date_ymd] => 2025-04-08 20:52:06 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:52:06' and `end` < '2025-04-08 20: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-04-08 20:52:19] Production.INFO: count ==1415 [2025-04-08 20:52:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:52:06 - End Time 2025-04-08 20:52:06 [2025-04-08 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864766', 'tblTempUsageDetail_20' ) start [2025-04-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864766', 'tblTempUsageDetail_20' ) end [2025-04-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864766', 'tblTempVendorCDR_20' ) start [2025-04-08 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864766', 'tblTempVendorCDR_20' ) end [2025-04-08 20:52:19] Production.INFO: ProcessCDR(1,14864766,1,1,2) [2025-04-08 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864766', 'tblTempUsageDetail_20' ) start [2025-04-08 20:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864766', 'tblTempUsageDetail_20' ) end [2025-04-08 20:52:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:52:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:52:22] Production.INFO: ==21359== Releasing lock... [2025-04-08 20:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:52:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-08 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:53:05 [end_date_ymd] => 2025-04-08 20:53:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:53:05' and `end` < '2025-04-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-04-08 20:53:18] Production.INFO: count ==1413 [2025-04-08 20:53:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:53:05 - End Time 2025-04-08 20:53:05 [2025-04-08 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864771', 'tblTempUsageDetail_20' ) start [2025-04-08 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864771', 'tblTempUsageDetail_20' ) end [2025-04-08 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864771', 'tblTempVendorCDR_20' ) start [2025-04-08 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864771', 'tblTempVendorCDR_20' ) end [2025-04-08 20:53:18] Production.INFO: ProcessCDR(1,14864771,1,1,2) [2025-04-08 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864771', 'tblTempUsageDetail_20' ) start [2025-04-08 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864771', 'tblTempUsageDetail_20' ) end [2025-04-08 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:53:22] Production.INFO: ==21433== Releasing lock... [2025-04-08 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:53:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-08 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:54:05 [end_date_ymd] => 2025-04-08 20:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:54:05' and `end` < '2025-04-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-04-08 20:54:19] Production.INFO: count ==1415 [2025-04-08 20:54:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:54:05 - End Time 2025-04-08 20:54:05 [2025-04-08 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864776', 'tblTempUsageDetail_20' ) start [2025-04-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864776', 'tblTempUsageDetail_20' ) end [2025-04-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864776', 'tblTempVendorCDR_20' ) start [2025-04-08 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864776', 'tblTempVendorCDR_20' ) end [2025-04-08 20:54:19] Production.INFO: ProcessCDR(1,14864776,1,1,2) [2025-04-08 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864776', 'tblTempUsageDetail_20' ) start [2025-04-08 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864776', 'tblTempUsageDetail_20' ) end [2025-04-08 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:54:22] Production.INFO: ==21507== Releasing lock... [2025-04-08 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:54:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-08 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:55:05 [end_date_ymd] => 2025-04-08 20:55:05 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:55:05' and `end` < '2025-04-08 20: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-04-08 20:55:18] Production.INFO: count ==1415 [2025-04-08 20:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:55:05 - End Time 2025-04-08 20:55:05 [2025-04-08 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864781', 'tblTempUsageDetail_20' ) start [2025-04-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864781', 'tblTempUsageDetail_20' ) end [2025-04-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864781', 'tblTempVendorCDR_20' ) start [2025-04-08 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864781', 'tblTempVendorCDR_20' ) end [2025-04-08 20:55:18] Production.INFO: ProcessCDR(1,14864781,1,1,2) [2025-04-08 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864781', 'tblTempUsageDetail_20' ) start [2025-04-08 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864781', 'tblTempUsageDetail_20' ) end [2025-04-08 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:55:22] Production.INFO: ==21583== Releasing lock... [2025-04-08 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:55:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-08 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:56:05 [end_date_ymd] => 2025-04-08 20:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:56:05' and `end` < '2025-04-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-04-08 20:56:18] Production.INFO: count ==1413 [2025-04-08 20:56:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:56:05 - End Time 2025-04-08 20:56:05 [2025-04-08 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864786', 'tblTempUsageDetail_20' ) start [2025-04-08 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864786', 'tblTempUsageDetail_20' ) end [2025-04-08 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864786', 'tblTempVendorCDR_20' ) start [2025-04-08 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864786', 'tblTempVendorCDR_20' ) end [2025-04-08 20:56:19] Production.INFO: ProcessCDR(1,14864786,1,1,2) [2025-04-08 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864786', 'tblTempUsageDetail_20' ) start [2025-04-08 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864786', 'tblTempUsageDetail_20' ) end [2025-04-08 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:56:22] Production.INFO: ==21657== Releasing lock... [2025-04-08 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:56:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-08 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:57:05 [end_date_ymd] => 2025-04-08 20:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:57:05' and `end` < '2025-04-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-04-08 20:57:18] Production.INFO: count ==1412 [2025-04-08 20:57:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:57:05 - End Time 2025-04-08 20:57:05 [2025-04-08 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864791', 'tblTempUsageDetail_20' ) start [2025-04-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864791', 'tblTempUsageDetail_20' ) end [2025-04-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864791', 'tblTempVendorCDR_20' ) start [2025-04-08 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864791', 'tblTempVendorCDR_20' ) end [2025-04-08 20:57:19] Production.INFO: ProcessCDR(1,14864791,1,1,2) [2025-04-08 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864791', 'tblTempUsageDetail_20' ) start [2025-04-08 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864791', 'tblTempUsageDetail_20' ) end [2025-04-08 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:57:22] Production.INFO: ==21727== Releasing lock... [2025-04-08 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:57:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-08 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:58:06 [end_date_ymd] => 2025-04-08 20:58:06 [RateCDR] => 1 ) [2025-04-08 20: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-04-08 17:58:06' and `end` < '2025-04-08 20: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-04-08 20:58:19] Production.INFO: count ==1412 [2025-04-08 20:58:19] Production.ERROR: pbx CDR StartTime 2025-04-08 17:58:06 - End Time 2025-04-08 20:58:06 [2025-04-08 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864796', 'tblTempUsageDetail_20' ) start [2025-04-08 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864796', 'tblTempUsageDetail_20' ) end [2025-04-08 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864796', 'tblTempVendorCDR_20' ) start [2025-04-08 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864796', 'tblTempVendorCDR_20' ) end [2025-04-08 20:58:19] Production.INFO: ProcessCDR(1,14864796,1,1,2) [2025-04-08 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864796', 'tblTempUsageDetail_20' ) start [2025-04-08 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864796', 'tblTempUsageDetail_20' ) end [2025-04-08 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:58:22] Production.INFO: ==21803== Releasing lock... [2025-04-08 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:58:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-08 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 17:59:05 [end_date_ymd] => 2025-04-08 20:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 17:59:05' and `end` < '2025-04-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-04-08 20:59:18] Production.INFO: count ==1411 [2025-04-08 20:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 17:59:05 - End Time 2025-04-08 20:59:05 [2025-04-08 20:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864801', 'tblTempUsageDetail_20' ) start [2025-04-08 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864801', 'tblTempUsageDetail_20' ) end [2025-04-08 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864801', 'tblTempVendorCDR_20' ) start [2025-04-08 20:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864801', 'tblTempVendorCDR_20' ) end [2025-04-08 20:59:18] Production.INFO: ProcessCDR(1,14864801,1,1,2) [2025-04-08 20:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 20:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864801', 'tblTempUsageDetail_20' ) start [2025-04-08 20:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864801', 'tblTempUsageDetail_20' ) end [2025-04-08 20:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 20:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 20:59:22] Production.INFO: ==21915== Releasing lock... [2025-04-08 20:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 20:59:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-08 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:00:05 [end_date_ymd] => 2025-04-08 21:00:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:00:05' and `end` < '2025-04-08 21: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-04-08 21:00:18] Production.INFO: count ==1410 [2025-04-08 21:00:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:00:05 - End Time 2025-04-08 21:00:05 [2025-04-08 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864807', 'tblTempUsageDetail_20' ) start [2025-04-08 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864807', 'tblTempUsageDetail_20' ) end [2025-04-08 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864807', 'tblTempVendorCDR_20' ) start [2025-04-08 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864807', 'tblTempVendorCDR_20' ) end [2025-04-08 21:00:19] Production.INFO: ProcessCDR(1,14864807,1,1,2) [2025-04-08 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864807', 'tblTempUsageDetail_20' ) start [2025-04-08 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864807', 'tblTempUsageDetail_20' ) end [2025-04-08 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:00:22] Production.INFO: ==21988== Releasing lock... [2025-04-08 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:00:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-08 21:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:01:04 [end_date_ymd] => 2025-04-08 21:01:04 [RateCDR] => 1 ) [2025-04-08 21:01: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-04-08 18:01:04' and `end` < '2025-04-08 21:01: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-04-08 21:01:17] Production.INFO: count ==1367 [2025-04-08 21:01:17] Production.ERROR: pbx CDR StartTime 2025-04-08 18:01:04 - End Time 2025-04-08 21:01:04 [2025-04-08 21:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864812', 'tblTempUsageDetail_20' ) start [2025-04-08 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864812', 'tblTempUsageDetail_20' ) end [2025-04-08 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864812', 'tblTempVendorCDR_20' ) start [2025-04-08 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864812', 'tblTempVendorCDR_20' ) end [2025-04-08 21:01:18] Production.INFO: ProcessCDR(1,14864812,1,1,2) [2025-04-08 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864812', 'tblTempUsageDetail_20' ) start [2025-04-08 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864812', 'tblTempUsageDetail_20' ) end [2025-04-08 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:01:22] Production.INFO: ==22077== Releasing lock... [2025-04-08 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:01:22] Production.INFO: 38.5 MB #Memory Used# [2025-04-08 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:02:05 [end_date_ymd] => 2025-04-08 21:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:02:05' and `end` < '2025-04-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-04-08 21:02:18] Production.INFO: count ==1366 [2025-04-08 21:02:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:02:05 - End Time 2025-04-08 21:02:05 [2025-04-08 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864817', 'tblTempUsageDetail_20' ) start [2025-04-08 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864817', 'tblTempUsageDetail_20' ) end [2025-04-08 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864817', 'tblTempVendorCDR_20' ) start [2025-04-08 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864817', 'tblTempVendorCDR_20' ) end [2025-04-08 21:02:18] Production.INFO: ProcessCDR(1,14864817,1,1,2) [2025-04-08 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864817', 'tblTempUsageDetail_20' ) start [2025-04-08 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864817', 'tblTempUsageDetail_20' ) end [2025-04-08 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:02:23] Production.INFO: ==22152== Releasing lock... [2025-04-08 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:02:23] Production.INFO: 38 MB #Memory Used# [2025-04-08 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:03:05 [end_date_ymd] => 2025-04-08 21:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:03:05' and `end` < '2025-04-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-04-08 21:03:17] Production.INFO: count ==1365 [2025-04-08 21:03:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:03:05 - End Time 2025-04-08 21:03:05 [2025-04-08 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864822', 'tblTempUsageDetail_20' ) start [2025-04-08 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864822', 'tblTempUsageDetail_20' ) end [2025-04-08 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864822', 'tblTempVendorCDR_20' ) start [2025-04-08 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864822', 'tblTempVendorCDR_20' ) end [2025-04-08 21:03:18] Production.INFO: ProcessCDR(1,14864822,1,1,2) [2025-04-08 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864822', 'tblTempUsageDetail_20' ) start [2025-04-08 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864822', 'tblTempUsageDetail_20' ) end [2025-04-08 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:03:21] Production.INFO: ==22223== Releasing lock... [2025-04-08 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:03:21] Production.INFO: 38 MB #Memory Used# [2025-04-08 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:04:05 [end_date_ymd] => 2025-04-08 21:04:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:04:05' and `end` < '2025-04-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-04-08 21:04:18] Production.INFO: count ==1350 [2025-04-08 21:04:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:04:05 - End Time 2025-04-08 21:04:05 [2025-04-08 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864827', 'tblTempUsageDetail_20' ) start [2025-04-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864827', 'tblTempUsageDetail_20' ) end [2025-04-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864827', 'tblTempVendorCDR_20' ) start [2025-04-08 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864827', 'tblTempVendorCDR_20' ) end [2025-04-08 21:04:18] Production.INFO: ProcessCDR(1,14864827,1,1,2) [2025-04-08 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864827', 'tblTempUsageDetail_20' ) start [2025-04-08 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864827', 'tblTempUsageDetail_20' ) end [2025-04-08 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:04:22] Production.INFO: ==22297== Releasing lock... [2025-04-08 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:04:22] Production.INFO: 38.25 MB #Memory Used# [2025-04-08 21:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:05:06 [end_date_ymd] => 2025-04-08 21:05:06 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:05:06' and `end` < '2025-04-08 21: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-04-08 21:05:19] Production.INFO: count ==1351 [2025-04-08 21:05:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:05:06 - End Time 2025-04-08 21:05:06 [2025-04-08 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864832', 'tblTempUsageDetail_20' ) start [2025-04-08 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864832', 'tblTempUsageDetail_20' ) end [2025-04-08 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864832', 'tblTempVendorCDR_20' ) start [2025-04-08 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864832', 'tblTempVendorCDR_20' ) end [2025-04-08 21:05:19] Production.INFO: ProcessCDR(1,14864832,1,1,2) [2025-04-08 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864832', 'tblTempUsageDetail_20' ) start [2025-04-08 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864832', 'tblTempUsageDetail_20' ) end [2025-04-08 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:05:22] Production.INFO: ==22379== Releasing lock... [2025-04-08 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:05:22] Production.INFO: 38 MB #Memory Used# [2025-04-08 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:06:05 [end_date_ymd] => 2025-04-08 21:06:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:06:05' and `end` < '2025-04-08 21: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-04-08 21:06:18] Production.INFO: count ==1350 [2025-04-08 21:06:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:06:05 - End Time 2025-04-08 21:06:05 [2025-04-08 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864837', 'tblTempUsageDetail_20' ) start [2025-04-08 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864837', 'tblTempUsageDetail_20' ) end [2025-04-08 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864837', 'tblTempVendorCDR_20' ) start [2025-04-08 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864837', 'tblTempVendorCDR_20' ) end [2025-04-08 21:06:19] Production.INFO: ProcessCDR(1,14864837,1,1,2) [2025-04-08 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864837', 'tblTempUsageDetail_20' ) start [2025-04-08 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864837', 'tblTempUsageDetail_20' ) end [2025-04-08 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:06:22] Production.INFO: ==22474== Releasing lock... [2025-04-08 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:06:22] Production.INFO: 38 MB #Memory Used# [2025-04-08 21:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:07:04 [end_date_ymd] => 2025-04-08 21:07:04 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:07:04' and `end` < '2025-04-08 21: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-04-08 21:07:17] Production.INFO: count ==1351 [2025-04-08 21:07:17] Production.ERROR: pbx CDR StartTime 2025-04-08 18:07:04 - End Time 2025-04-08 21:07:04 [2025-04-08 21:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864842', 'tblTempUsageDetail_20' ) start [2025-04-08 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864842', 'tblTempUsageDetail_20' ) end [2025-04-08 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864842', 'tblTempVendorCDR_20' ) start [2025-04-08 21:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864842', 'tblTempVendorCDR_20' ) end [2025-04-08 21:07:17] Production.INFO: ProcessCDR(1,14864842,1,1,2) [2025-04-08 21:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864842', 'tblTempUsageDetail_20' ) start [2025-04-08 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864842', 'tblTempUsageDetail_20' ) end [2025-04-08 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:07:22] Production.INFO: ==22552== Releasing lock... [2025-04-08 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:07:22] Production.INFO: 38 MB #Memory Used# [2025-04-08 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:08:05 [end_date_ymd] => 2025-04-08 21:08:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:08:05' and `end` < '2025-04-08 21: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-04-08 21:08:18] Production.INFO: count ==1353 [2025-04-08 21:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:08:05 - End Time 2025-04-08 21:08:05 [2025-04-08 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864847', 'tblTempUsageDetail_20' ) start [2025-04-08 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864847', 'tblTempUsageDetail_20' ) end [2025-04-08 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864847', 'tblTempVendorCDR_20' ) start [2025-04-08 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864847', 'tblTempVendorCDR_20' ) end [2025-04-08 21:08:18] Production.INFO: ProcessCDR(1,14864847,1,1,2) [2025-04-08 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864847', 'tblTempUsageDetail_20' ) start [2025-04-08 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864847', 'tblTempUsageDetail_20' ) end [2025-04-08 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:08:22] Production.INFO: ==22622== Releasing lock... [2025-04-08 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:08:22] Production.INFO: 38 MB #Memory Used# [2025-04-08 21:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:09:04 [end_date_ymd] => 2025-04-08 21:09:04 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:09:04' and `end` < '2025-04-08 21: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-04-08 21:09:17] Production.INFO: count ==1355 [2025-04-08 21:09:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:09:04 - End Time 2025-04-08 21:09:04 [2025-04-08 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864852', 'tblTempUsageDetail_20' ) start [2025-04-08 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864852', 'tblTempUsageDetail_20' ) end [2025-04-08 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864852', 'tblTempVendorCDR_20' ) start [2025-04-08 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864852', 'tblTempVendorCDR_20' ) end [2025-04-08 21:09:18] Production.INFO: ProcessCDR(1,14864852,1,1,2) [2025-04-08 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864852', 'tblTempUsageDetail_20' ) start [2025-04-08 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864852', 'tblTempUsageDetail_20' ) end [2025-04-08 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:09:21] Production.INFO: ==22697== Releasing lock... [2025-04-08 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:09:21] Production.INFO: 38 MB #Memory Used# [2025-04-08 21:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:10:06 [end_date_ymd] => 2025-04-08 21:10:06 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:10:06' and `end` < '2025-04-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-04-08 21:10:19] Production.INFO: count ==1351 [2025-04-08 21:10:20] Production.ERROR: pbx CDR StartTime 2025-04-08 18:10:06 - End Time 2025-04-08 21:10:06 [2025-04-08 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864858', 'tblTempUsageDetail_20' ) start [2025-04-08 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864858', 'tblTempUsageDetail_20' ) end [2025-04-08 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864858', 'tblTempVendorCDR_20' ) start [2025-04-08 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864858', 'tblTempVendorCDR_20' ) end [2025-04-08 21:10:20] Production.INFO: ProcessCDR(1,14864858,1,1,2) [2025-04-08 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864858', 'tblTempUsageDetail_20' ) start [2025-04-08 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864858', 'tblTempUsageDetail_20' ) end [2025-04-08 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:10:23] Production.INFO: ==22777== Releasing lock... [2025-04-08 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:10:23] Production.INFO: 38 MB #Memory Used# [2025-04-08 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:11:05 [end_date_ymd] => 2025-04-08 21:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:11:05' and `end` < '2025-04-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-04-08 21:11:19] Production.INFO: count ==1289 [2025-04-08 21:11:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:11:05 - End Time 2025-04-08 21:11:05 [2025-04-08 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864863', 'tblTempUsageDetail_20' ) start [2025-04-08 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864863', 'tblTempUsageDetail_20' ) end [2025-04-08 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864863', 'tblTempVendorCDR_20' ) start [2025-04-08 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864863', 'tblTempVendorCDR_20' ) end [2025-04-08 21:11:19] Production.INFO: ProcessCDR(1,14864863,1,1,2) [2025-04-08 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864863', 'tblTempUsageDetail_20' ) start [2025-04-08 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864863', 'tblTempUsageDetail_20' ) end [2025-04-08 21:11:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:11:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:11:22] Production.INFO: ==22851== Releasing lock... [2025-04-08 21:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:11:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-08 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:12:05 [end_date_ymd] => 2025-04-08 21:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:12:05' and `end` < '2025-04-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-04-08 21:12:18] Production.INFO: count ==1288 [2025-04-08 21:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:12:05 - End Time 2025-04-08 21:12:05 [2025-04-08 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864868', 'tblTempUsageDetail_20' ) start [2025-04-08 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864868', 'tblTempUsageDetail_20' ) end [2025-04-08 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864868', 'tblTempVendorCDR_20' ) start [2025-04-08 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864868', 'tblTempVendorCDR_20' ) end [2025-04-08 21:12:18] Production.INFO: ProcessCDR(1,14864868,1,1,2) [2025-04-08 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864868', 'tblTempUsageDetail_20' ) start [2025-04-08 21:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864868', 'tblTempUsageDetail_20' ) end [2025-04-08 21:12:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:12:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:12:22] Production.INFO: ==22924== Releasing lock... [2025-04-08 21:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:12:22] Production.INFO: 37.75 MB #Memory Used# [2025-04-08 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:13:05 [end_date_ymd] => 2025-04-08 21:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:13:05' and `end` < '2025-04-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-04-08 21:13:18] Production.INFO: count ==1282 [2025-04-08 21:13:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:13:05 - End Time 2025-04-08 21:13:05 [2025-04-08 21:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864873', 'tblTempUsageDetail_20' ) start [2025-04-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864873', 'tblTempUsageDetail_20' ) end [2025-04-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864873', 'tblTempVendorCDR_20' ) start [2025-04-08 21:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864873', 'tblTempVendorCDR_20' ) end [2025-04-08 21:13:18] Production.INFO: ProcessCDR(1,14864873,1,1,2) [2025-04-08 21:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864873', 'tblTempUsageDetail_20' ) start [2025-04-08 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864873', 'tblTempUsageDetail_20' ) end [2025-04-08 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:13:22] Production.INFO: ==22999== Releasing lock... [2025-04-08 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:13:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-08 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:14:05 [end_date_ymd] => 2025-04-08 21:14:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:14:05' and `end` < '2025-04-08 21: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-04-08 21:14:18] Production.INFO: count ==1277 [2025-04-08 21:14:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:14:05 - End Time 2025-04-08 21:14:05 [2025-04-08 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864878', 'tblTempUsageDetail_20' ) start [2025-04-08 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864878', 'tblTempUsageDetail_20' ) end [2025-04-08 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864878', 'tblTempVendorCDR_20' ) start [2025-04-08 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864878', 'tblTempVendorCDR_20' ) end [2025-04-08 21:14:18] Production.INFO: ProcessCDR(1,14864878,1,1,2) [2025-04-08 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864878', 'tblTempUsageDetail_20' ) start [2025-04-08 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864878', 'tblTempUsageDetail_20' ) end [2025-04-08 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:14:22] Production.INFO: ==23070== Releasing lock... [2025-04-08 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:14:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-08 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:15:05 [end_date_ymd] => 2025-04-08 21:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:15:05' and `end` < '2025-04-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-04-08 21:15:18] Production.INFO: count ==1273 [2025-04-08 21:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:15:05 - End Time 2025-04-08 21:15:05 [2025-04-08 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864883', 'tblTempUsageDetail_20' ) start [2025-04-08 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864883', 'tblTempUsageDetail_20' ) end [2025-04-08 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864883', 'tblTempVendorCDR_20' ) start [2025-04-08 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864883', 'tblTempVendorCDR_20' ) end [2025-04-08 21:15:19] Production.INFO: ProcessCDR(1,14864883,1,1,2) [2025-04-08 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864883', 'tblTempUsageDetail_20' ) start [2025-04-08 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864883', 'tblTempUsageDetail_20' ) end [2025-04-08 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:15:22] Production.INFO: ==23183== Releasing lock... [2025-04-08 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:15:22] Production.INFO: 37.25 MB #Memory Used# [2025-04-08 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:16:05 [end_date_ymd] => 2025-04-08 21:16:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:16:05' and `end` < '2025-04-08 21: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-04-08 21:16:18] Production.INFO: count ==1278 [2025-04-08 21:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:16:05 - End Time 2025-04-08 21:16:05 [2025-04-08 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864888', 'tblTempUsageDetail_20' ) start [2025-04-08 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864888', 'tblTempUsageDetail_20' ) end [2025-04-08 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864888', 'tblTempVendorCDR_20' ) start [2025-04-08 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864888', 'tblTempVendorCDR_20' ) end [2025-04-08 21:16:18] Production.INFO: ProcessCDR(1,14864888,1,1,2) [2025-04-08 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864888', 'tblTempUsageDetail_20' ) start [2025-04-08 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864888', 'tblTempUsageDetail_20' ) end [2025-04-08 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:16:23] Production.INFO: ==23257== Releasing lock... [2025-04-08 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:16:23] Production.INFO: 37.75 MB #Memory Used# [2025-04-08 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:17:05 [end_date_ymd] => 2025-04-08 21:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:17:05' and `end` < '2025-04-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-04-08 21:17:18] Production.INFO: count ==1272 [2025-04-08 21:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:17:05 - End Time 2025-04-08 21:17:05 [2025-04-08 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864893', 'tblTempUsageDetail_20' ) start [2025-04-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864893', 'tblTempUsageDetail_20' ) end [2025-04-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864893', 'tblTempVendorCDR_20' ) start [2025-04-08 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864893', 'tblTempVendorCDR_20' ) end [2025-04-08 21:17:18] Production.INFO: ProcessCDR(1,14864893,1,1,2) [2025-04-08 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864893', 'tblTempUsageDetail_20' ) start [2025-04-08 21:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864893', 'tblTempUsageDetail_20' ) end [2025-04-08 21:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:17:22] Production.INFO: ==23330== Releasing lock... [2025-04-08 21:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:17:22] Production.INFO: 37.5 MB #Memory Used# [2025-04-08 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:18:05 [end_date_ymd] => 2025-04-08 21:18:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:18:05' and `end` < '2025-04-08 21: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-04-08 21:18:18] Production.INFO: count ==1264 [2025-04-08 21:18:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:18:05 - End Time 2025-04-08 21:18:05 [2025-04-08 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864898', 'tblTempUsageDetail_20' ) start [2025-04-08 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864898', 'tblTempUsageDetail_20' ) end [2025-04-08 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864898', 'tblTempVendorCDR_20' ) start [2025-04-08 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864898', 'tblTempVendorCDR_20' ) end [2025-04-08 21:18:18] Production.INFO: ProcessCDR(1,14864898,1,1,2) [2025-04-08 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864898', 'tblTempUsageDetail_20' ) start [2025-04-08 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864898', 'tblTempUsageDetail_20' ) end [2025-04-08 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:18:23] Production.INFO: ==23412== Releasing lock... [2025-04-08 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:18:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-08 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:19:05 [end_date_ymd] => 2025-04-08 21:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:19:05' and `end` < '2025-04-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-04-08 21:19:18] Production.INFO: count ==1261 [2025-04-08 21:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:19:05 - End Time 2025-04-08 21:19:05 [2025-04-08 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864903', 'tblTempUsageDetail_20' ) start [2025-04-08 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864903', 'tblTempUsageDetail_20' ) end [2025-04-08 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864903', 'tblTempVendorCDR_20' ) start [2025-04-08 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864903', 'tblTempVendorCDR_20' ) end [2025-04-08 21:19:18] Production.INFO: ProcessCDR(1,14864903,1,1,2) [2025-04-08 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864903', 'tblTempUsageDetail_20' ) start [2025-04-08 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864903', 'tblTempUsageDetail_20' ) end [2025-04-08 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:19:21] Production.INFO: ==23484== Releasing lock... [2025-04-08 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:19:21] Production.INFO: 37.25 MB #Memory Used# [2025-04-08 21:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:20:07 [end_date_ymd] => 2025-04-08 21:20:07 [RateCDR] => 1 ) [2025-04-08 21:20: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-04-08 18:20:07' and `end` < '2025-04-08 21:20: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-04-08 21:20:20] Production.INFO: count ==1260 [2025-04-08 21:20:20] Production.ERROR: pbx CDR StartTime 2025-04-08 18:20:07 - End Time 2025-04-08 21:20:07 [2025-04-08 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864909', 'tblTempUsageDetail_20' ) start [2025-04-08 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864909', 'tblTempUsageDetail_20' ) end [2025-04-08 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864909', 'tblTempVendorCDR_20' ) start [2025-04-08 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864909', 'tblTempVendorCDR_20' ) end [2025-04-08 21:20:20] Production.INFO: ProcessCDR(1,14864909,1,1,2) [2025-04-08 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864909', 'tblTempUsageDetail_20' ) start [2025-04-08 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864909', 'tblTempUsageDetail_20' ) end [2025-04-08 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:20:23] Production.INFO: ==23561== Releasing lock... [2025-04-08 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:20:23] Production.INFO: 37.25 MB #Memory Used# [2025-04-08 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:21:05 [end_date_ymd] => 2025-04-08 21:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:21:05' and `end` < '2025-04-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-04-08 21:21:18] Production.INFO: count ==1196 [2025-04-08 21:21:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:21:05 - End Time 2025-04-08 21:21:05 [2025-04-08 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864914', 'tblTempUsageDetail_20' ) start [2025-04-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864914', 'tblTempUsageDetail_20' ) end [2025-04-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864914', 'tblTempVendorCDR_20' ) start [2025-04-08 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864914', 'tblTempVendorCDR_20' ) end [2025-04-08 21:21:18] Production.INFO: ProcessCDR(1,14864914,1,1,2) [2025-04-08 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864914', 'tblTempUsageDetail_20' ) start [2025-04-08 21:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864914', 'tblTempUsageDetail_20' ) end [2025-04-08 21:21:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:21:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:21:23] Production.INFO: ==23641== Releasing lock... [2025-04-08 21:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:21:23] Production.INFO: 37 MB #Memory Used# [2025-04-08 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:22:05 [end_date_ymd] => 2025-04-08 21:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:22:05' and `end` < '2025-04-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-04-08 21:22:18] Production.INFO: count ==1187 [2025-04-08 21:22:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:22:05 - End Time 2025-04-08 21:22:05 [2025-04-08 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864919', 'tblTempUsageDetail_20' ) start [2025-04-08 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864919', 'tblTempUsageDetail_20' ) end [2025-04-08 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864919', 'tblTempVendorCDR_20' ) start [2025-04-08 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864919', 'tblTempVendorCDR_20' ) end [2025-04-08 21:22:18] Production.INFO: ProcessCDR(1,14864919,1,1,2) [2025-04-08 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864919', 'tblTempUsageDetail_20' ) start [2025-04-08 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864919', 'tblTempUsageDetail_20' ) end [2025-04-08 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:22:21] Production.INFO: ==23717== Releasing lock... [2025-04-08 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:22:21] Production.INFO: 36.75 MB #Memory Used# [2025-04-08 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:23:05 [end_date_ymd] => 2025-04-08 21:23:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:23:05' and `end` < '2025-04-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-04-08 21:23:18] Production.INFO: count ==1188 [2025-04-08 21:23:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:23:05 - End Time 2025-04-08 21:23:05 [2025-04-08 21:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864924', 'tblTempUsageDetail_20' ) start [2025-04-08 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864924', 'tblTempUsageDetail_20' ) end [2025-04-08 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864924', 'tblTempVendorCDR_20' ) start [2025-04-08 21:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864924', 'tblTempVendorCDR_20' ) end [2025-04-08 21:23:18] Production.INFO: ProcessCDR(1,14864924,1,1,2) [2025-04-08 21:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864924', 'tblTempUsageDetail_20' ) start [2025-04-08 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864924', 'tblTempUsageDetail_20' ) end [2025-04-08 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:23:23] Production.INFO: ==23792== Releasing lock... [2025-04-08 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:23:23] Production.INFO: 37 MB #Memory Used# [2025-04-08 21:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:24:06 [end_date_ymd] => 2025-04-08 21:24:06 [RateCDR] => 1 ) [2025-04-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-04-08 18:24:06' and `end` < '2025-04-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-04-08 21:24:19] Production.INFO: count ==1186 [2025-04-08 21:24:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:24:06 - End Time 2025-04-08 21:24:06 [2025-04-08 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864929', 'tblTempUsageDetail_20' ) start [2025-04-08 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864929', 'tblTempUsageDetail_20' ) end [2025-04-08 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864929', 'tblTempVendorCDR_20' ) start [2025-04-08 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864929', 'tblTempVendorCDR_20' ) end [2025-04-08 21:24:19] Production.INFO: ProcessCDR(1,14864929,1,1,2) [2025-04-08 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864929', 'tblTempUsageDetail_20' ) start [2025-04-08 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864929', 'tblTempUsageDetail_20' ) end [2025-04-08 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:24:23] Production.INFO: ==23866== Releasing lock... [2025-04-08 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:24:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-08 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:25:05 [end_date_ymd] => 2025-04-08 21:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:25:05' and `end` < '2025-04-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-04-08 21:25:18] Production.INFO: count ==1178 [2025-04-08 21:25:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:25:05 - End Time 2025-04-08 21:25:05 [2025-04-08 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864934', 'tblTempUsageDetail_20' ) start [2025-04-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864934', 'tblTempUsageDetail_20' ) end [2025-04-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864934', 'tblTempVendorCDR_20' ) start [2025-04-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864934', 'tblTempVendorCDR_20' ) end [2025-04-08 21:25:18] Production.INFO: ProcessCDR(1,14864934,1,1,2) [2025-04-08 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864934', 'tblTempUsageDetail_20' ) start [2025-04-08 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864934', 'tblTempUsageDetail_20' ) end [2025-04-08 21:25:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:25:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:25:23] Production.INFO: ==23938== Releasing lock... [2025-04-08 21:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:25:23] Production.INFO: 36.75 MB #Memory Used# [2025-04-08 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:26:05 [end_date_ymd] => 2025-04-08 21:26:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:26:05' and `end` < '2025-04-08 21: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-04-08 21:26:18] Production.INFO: count ==1171 [2025-04-08 21:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:26:05 - End Time 2025-04-08 21:26:05 [2025-04-08 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864939', 'tblTempUsageDetail_20' ) start [2025-04-08 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864939', 'tblTempUsageDetail_20' ) end [2025-04-08 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864939', 'tblTempVendorCDR_20' ) start [2025-04-08 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864939', 'tblTempVendorCDR_20' ) end [2025-04-08 21:26:18] Production.INFO: ProcessCDR(1,14864939,1,1,2) [2025-04-08 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864939', 'tblTempUsageDetail_20' ) start [2025-04-08 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864939', 'tblTempUsageDetail_20' ) end [2025-04-08 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:26:22] Production.INFO: ==24010== Releasing lock... [2025-04-08 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:26:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-08 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:27:05 [end_date_ymd] => 2025-04-08 21:27:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:27:05' and `end` < '2025-04-08 21: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-04-08 21:27:18] Production.INFO: count ==1169 [2025-04-08 21:27:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:27:05 - End Time 2025-04-08 21:27:05 [2025-04-08 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864944', 'tblTempUsageDetail_20' ) start [2025-04-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864944', 'tblTempUsageDetail_20' ) end [2025-04-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864944', 'tblTempVendorCDR_20' ) start [2025-04-08 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864944', 'tblTempVendorCDR_20' ) end [2025-04-08 21:27:18] Production.INFO: ProcessCDR(1,14864944,1,1,2) [2025-04-08 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864944', 'tblTempUsageDetail_20' ) start [2025-04-08 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864944', 'tblTempUsageDetail_20' ) end [2025-04-08 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:27:23] Production.INFO: ==24082== Releasing lock... [2025-04-08 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:27:23] Production.INFO: 36.5 MB #Memory Used# [2025-04-08 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:28:05 [end_date_ymd] => 2025-04-08 21:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:28:05' and `end` < '2025-04-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-04-08 21:28:18] Production.INFO: count ==1150 [2025-04-08 21:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:28:05 - End Time 2025-04-08 21:28:05 [2025-04-08 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864949', 'tblTempUsageDetail_20' ) start [2025-04-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864949', 'tblTempUsageDetail_20' ) end [2025-04-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864949', 'tblTempVendorCDR_20' ) start [2025-04-08 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864949', 'tblTempVendorCDR_20' ) end [2025-04-08 21:28:18] Production.INFO: ProcessCDR(1,14864949,1,1,2) [2025-04-08 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864949', 'tblTempUsageDetail_20' ) start [2025-04-08 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864949', 'tblTempUsageDetail_20' ) end [2025-04-08 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:28:22] Production.INFO: ==24154== Releasing lock... [2025-04-08 21:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:28:22] Production.INFO: 36.5 MB #Memory Used# [2025-04-08 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:29:05 [end_date_ymd] => 2025-04-08 21:29:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:29:05' and `end` < '2025-04-08 21: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-04-08 21:29:18] Production.INFO: count ==1140 [2025-04-08 21:29:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:29:05 - End Time 2025-04-08 21:29:05 [2025-04-08 21:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864954', 'tblTempUsageDetail_20' ) start [2025-04-08 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864954', 'tblTempUsageDetail_20' ) end [2025-04-08 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864954', 'tblTempVendorCDR_20' ) start [2025-04-08 21:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864954', 'tblTempVendorCDR_20' ) end [2025-04-08 21:29:18] Production.INFO: ProcessCDR(1,14864954,1,1,2) [2025-04-08 21:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864954', 'tblTempUsageDetail_20' ) start [2025-04-08 21:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864954', 'tblTempUsageDetail_20' ) end [2025-04-08 21:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:29:21] Production.INFO: ==24231== Releasing lock... [2025-04-08 21:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:29:21] Production.INFO: 36.25 MB #Memory Used# [2025-04-08 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:30:06 [end_date_ymd] => 2025-04-08 21:30:06 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:30:06' and `end` < '2025-04-08 21: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-04-08 21:30:19] Production.INFO: count ==1134 [2025-04-08 21:30:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:30:06 - End Time 2025-04-08 21:30:06 [2025-04-08 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864960', 'tblTempUsageDetail_20' ) start [2025-04-08 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864960', 'tblTempUsageDetail_20' ) end [2025-04-08 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864960', 'tblTempVendorCDR_20' ) start [2025-04-08 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864960', 'tblTempVendorCDR_20' ) end [2025-04-08 21:30:19] Production.INFO: ProcessCDR(1,14864960,1,1,2) [2025-04-08 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864960', 'tblTempUsageDetail_20' ) start [2025-04-08 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864960', 'tblTempUsageDetail_20' ) end [2025-04-08 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:30:24] Production.INFO: ==24346== Releasing lock... [2025-04-08 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:30:24] Production.INFO: 36 MB #Memory Used# [2025-04-08 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:31:05 [end_date_ymd] => 2025-04-08 21:31:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:31:05' and `end` < '2025-04-08 21: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-04-08 21:31:18] Production.INFO: count ==1060 [2025-04-08 21:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:31:05 - End Time 2025-04-08 21:31:05 [2025-04-08 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864965', 'tblTempUsageDetail_20' ) start [2025-04-08 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864965', 'tblTempUsageDetail_20' ) end [2025-04-08 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864965', 'tblTempVendorCDR_20' ) start [2025-04-08 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864965', 'tblTempVendorCDR_20' ) end [2025-04-08 21:31:18] Production.INFO: ProcessCDR(1,14864965,1,1,2) [2025-04-08 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864965', 'tblTempUsageDetail_20' ) start [2025-04-08 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864965', 'tblTempUsageDetail_20' ) end [2025-04-08 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:31:21] Production.INFO: ==24421== Releasing lock... [2025-04-08 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:31:21] Production.INFO: 35.75 MB #Memory Used# [2025-04-08 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:32:05 [end_date_ymd] => 2025-04-08 21:32:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:32:05' and `end` < '2025-04-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-04-08 21:32:18] Production.INFO: count ==1059 [2025-04-08 21:32:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:32:05 - End Time 2025-04-08 21:32:05 [2025-04-08 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864970', 'tblTempUsageDetail_20' ) start [2025-04-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864970', 'tblTempUsageDetail_20' ) end [2025-04-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864970', 'tblTempVendorCDR_20' ) start [2025-04-08 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864970', 'tblTempVendorCDR_20' ) end [2025-04-08 21:32:19] Production.INFO: ProcessCDR(1,14864970,1,1,2) [2025-04-08 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864970', 'tblTempUsageDetail_20' ) start [2025-04-08 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864970', 'tblTempUsageDetail_20' ) end [2025-04-08 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:32:22] Production.INFO: ==24494== Releasing lock... [2025-04-08 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:32:22] Production.INFO: 36 MB #Memory Used# [2025-04-08 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:33:05 [end_date_ymd] => 2025-04-08 21:33:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:33:05' and `end` < '2025-04-08 21: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-04-08 21:33:18] Production.INFO: count ==1057 [2025-04-08 21:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:33:05 - End Time 2025-04-08 21:33:05 [2025-04-08 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864975', 'tblTempUsageDetail_20' ) start [2025-04-08 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864975', 'tblTempUsageDetail_20' ) end [2025-04-08 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864975', 'tblTempVendorCDR_20' ) start [2025-04-08 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864975', 'tblTempVendorCDR_20' ) end [2025-04-08 21:33:18] Production.INFO: ProcessCDR(1,14864975,1,1,2) [2025-04-08 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864975', 'tblTempUsageDetail_20' ) start [2025-04-08 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864975', 'tblTempUsageDetail_20' ) end [2025-04-08 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:33:22] Production.INFO: ==24564== Releasing lock... [2025-04-08 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:33:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-08 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:34:06 [end_date_ymd] => 2025-04-08 21:34:06 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:34:06' and `end` < '2025-04-08 21: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-04-08 21:34:19] Production.INFO: count ==1051 [2025-04-08 21:34:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:34:06 - End Time 2025-04-08 21:34:06 [2025-04-08 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864980', 'tblTempUsageDetail_20' ) start [2025-04-08 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864980', 'tblTempUsageDetail_20' ) end [2025-04-08 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864980', 'tblTempVendorCDR_20' ) start [2025-04-08 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864980', 'tblTempVendorCDR_20' ) end [2025-04-08 21:34:19] Production.INFO: ProcessCDR(1,14864980,1,1,2) [2025-04-08 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864980', 'tblTempUsageDetail_20' ) start [2025-04-08 21:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864980', 'tblTempUsageDetail_20' ) end [2025-04-08 21:34:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:34:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:34:23] Production.INFO: ==24641== Releasing lock... [2025-04-08 21:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:34:23] Production.INFO: 35.75 MB #Memory Used# [2025-04-08 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:35:05 [end_date_ymd] => 2025-04-08 21:35:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:35:05' and `end` < '2025-04-08 21: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-04-08 21:35:18] Production.INFO: count ==1049 [2025-04-08 21:35:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:35:05 - End Time 2025-04-08 21:35:05 [2025-04-08 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864985', 'tblTempUsageDetail_20' ) start [2025-04-08 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864985', 'tblTempUsageDetail_20' ) end [2025-04-08 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864985', 'tblTempVendorCDR_20' ) start [2025-04-08 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864985', 'tblTempVendorCDR_20' ) end [2025-04-08 21:35:18] Production.INFO: ProcessCDR(1,14864985,1,1,2) [2025-04-08 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864985', 'tblTempUsageDetail_20' ) start [2025-04-08 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864985', 'tblTempUsageDetail_20' ) end [2025-04-08 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:35:21] Production.INFO: ==24711== Releasing lock... [2025-04-08 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:35:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-08 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:36:05 [end_date_ymd] => 2025-04-08 21:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:36:05' and `end` < '2025-04-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-04-08 21:36:18] Production.INFO: count ==1047 [2025-04-08 21:36:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:36:05 - End Time 2025-04-08 21:36:05 [2025-04-08 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864990', 'tblTempUsageDetail_20' ) start [2025-04-08 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864990', 'tblTempUsageDetail_20' ) end [2025-04-08 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864990', 'tblTempVendorCDR_20' ) start [2025-04-08 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864990', 'tblTempVendorCDR_20' ) end [2025-04-08 21:36:19] Production.INFO: ProcessCDR(1,14864990,1,1,2) [2025-04-08 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864990', 'tblTempUsageDetail_20' ) start [2025-04-08 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864990', 'tblTempUsageDetail_20' ) end [2025-04-08 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:36:22] Production.INFO: ==24790== Releasing lock... [2025-04-08 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:36:22] Production.INFO: 35.5 MB #Memory Used# [2025-04-08 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:37:05 [end_date_ymd] => 2025-04-08 21:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:37:05' and `end` < '2025-04-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-04-08 21:37:18] Production.INFO: count ==1048 [2025-04-08 21:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:37:05 - End Time 2025-04-08 21:37:05 [2025-04-08 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864995', 'tblTempUsageDetail_20' ) start [2025-04-08 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14864995', 'tblTempUsageDetail_20' ) end [2025-04-08 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864995', 'tblTempVendorCDR_20' ) start [2025-04-08 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14864995', 'tblTempVendorCDR_20' ) end [2025-04-08 21:37:18] Production.INFO: ProcessCDR(1,14864995,1,1,2) [2025-04-08 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14864995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14864995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14864995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14864995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864995', 'tblTempUsageDetail_20' ) start [2025-04-08 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14864995', 'tblTempUsageDetail_20' ) end [2025-04-08 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:37:21] Production.INFO: ==24864== Releasing lock... [2025-04-08 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:37:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-08 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:38:05 [end_date_ymd] => 2025-04-08 21:38:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:38:05' and `end` < '2025-04-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-04-08 21:38:18] Production.INFO: count ==1048 [2025-04-08 21:38:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:38:05 - End Time 2025-04-08 21:38:05 [2025-04-08 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865000', 'tblTempUsageDetail_20' ) start [2025-04-08 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865000', 'tblTempUsageDetail_20' ) end [2025-04-08 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865000', 'tblTempVendorCDR_20' ) start [2025-04-08 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865000', 'tblTempVendorCDR_20' ) end [2025-04-08 21:38:18] Production.INFO: ProcessCDR(1,14865000,1,1,2) [2025-04-08 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865000', 'tblTempUsageDetail_20' ) start [2025-04-08 21:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865000', 'tblTempUsageDetail_20' ) end [2025-04-08 21:38:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:38:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:38:23] Production.INFO: ==24936== Releasing lock... [2025-04-08 21:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:38:23] Production.INFO: 35.5 MB #Memory Used# [2025-04-08 21:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:39:04 [end_date_ymd] => 2025-04-08 21:39:04 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:39:04' and `end` < '2025-04-08 21: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-04-08 21:39:17] Production.INFO: count ==1034 [2025-04-08 21:39:17] Production.ERROR: pbx CDR StartTime 2025-04-08 18:39:04 - End Time 2025-04-08 21:39:04 [2025-04-08 21:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865005', 'tblTempUsageDetail_20' ) start [2025-04-08 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865005', 'tblTempUsageDetail_20' ) end [2025-04-08 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865005', 'tblTempVendorCDR_20' ) start [2025-04-08 21:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865005', 'tblTempVendorCDR_20' ) end [2025-04-08 21:39:17] Production.INFO: ProcessCDR(1,14865005,1,1,2) [2025-04-08 21:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865005', 'tblTempUsageDetail_20' ) start [2025-04-08 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865005', 'tblTempUsageDetail_20' ) end [2025-04-08 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:39:21] Production.INFO: ==25010== Releasing lock... [2025-04-08 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:39:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-08 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:40:06 [end_date_ymd] => 2025-04-08 21:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 18:40:06' and `end` < '2025-04-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-04-08 21:40:19] Production.INFO: count ==1035 [2025-04-08 21:40:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:40:06 - End Time 2025-04-08 21:40:06 [2025-04-08 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865011', 'tblTempUsageDetail_20' ) start [2025-04-08 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865011', 'tblTempUsageDetail_20' ) end [2025-04-08 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865011', 'tblTempVendorCDR_20' ) start [2025-04-08 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865011', 'tblTempVendorCDR_20' ) end [2025-04-08 21:40:19] Production.INFO: ProcessCDR(1,14865011,1,1,2) [2025-04-08 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865011', 'tblTempUsageDetail_20' ) start [2025-04-08 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865011', 'tblTempUsageDetail_20' ) end [2025-04-08 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:40:22] Production.INFO: ==25084== Releasing lock... [2025-04-08 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:40:22] Production.INFO: 35.25 MB #Memory Used# [2025-04-08 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:41:05 [end_date_ymd] => 2025-04-08 21:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:41:05' and `end` < '2025-04-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-04-08 21:41:17] Production.INFO: count ==987 [2025-04-08 21:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:41:05 - End Time 2025-04-08 21:41:05 [2025-04-08 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865016', 'tblTempUsageDetail_20' ) start [2025-04-08 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865016', 'tblTempUsageDetail_20' ) end [2025-04-08 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865016', 'tblTempVendorCDR_20' ) start [2025-04-08 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865016', 'tblTempVendorCDR_20' ) end [2025-04-08 21:41:18] Production.INFO: ProcessCDR(1,14865016,1,1,2) [2025-04-08 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865016', 'tblTempUsageDetail_20' ) start [2025-04-08 21:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865016', 'tblTempUsageDetail_20' ) end [2025-04-08 21:41:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:41:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:41:21] Production.INFO: ==25163== Releasing lock... [2025-04-08 21:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:41:21] Production.INFO: 35.5 MB #Memory Used# [2025-04-08 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:42:05 [end_date_ymd] => 2025-04-08 21:42:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:42:05' and `end` < '2025-04-08 21: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-04-08 21:42:18] Production.INFO: count ==987 [2025-04-08 21:42:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:42:05 - End Time 2025-04-08 21:42:05 [2025-04-08 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865021', 'tblTempUsageDetail_20' ) start [2025-04-08 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865021', 'tblTempUsageDetail_20' ) end [2025-04-08 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865021', 'tblTempVendorCDR_20' ) start [2025-04-08 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865021', 'tblTempVendorCDR_20' ) end [2025-04-08 21:42:18] Production.INFO: ProcessCDR(1,14865021,1,1,2) [2025-04-08 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865021', 'tblTempUsageDetail_20' ) start [2025-04-08 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865021', 'tblTempUsageDetail_20' ) end [2025-04-08 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:42:23] Production.INFO: ==25235== Releasing lock... [2025-04-08 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:42:23] Production.INFO: 35 MB #Memory Used# [2025-04-08 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:43:06 [end_date_ymd] => 2025-04-08 21:43:06 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:43:06' and `end` < '2025-04-08 21: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-04-08 21:43:19] Production.INFO: count ==962 [2025-04-08 21:43:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:43:06 - End Time 2025-04-08 21:43:06 [2025-04-08 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865026', 'tblTempUsageDetail_20' ) start [2025-04-08 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865026', 'tblTempUsageDetail_20' ) end [2025-04-08 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865026', 'tblTempVendorCDR_20' ) start [2025-04-08 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865026', 'tblTempVendorCDR_20' ) end [2025-04-08 21:43:19] Production.INFO: ProcessCDR(1,14865026,1,1,2) [2025-04-08 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865026', 'tblTempUsageDetail_20' ) start [2025-04-08 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865026', 'tblTempUsageDetail_20' ) end [2025-04-08 21:43:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:43:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:43:24] Production.INFO: ==25310== Releasing lock... [2025-04-08 21:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:43:24] Production.INFO: 34.75 MB #Memory Used# [2025-04-08 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:44:05 [end_date_ymd] => 2025-04-08 21:44:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:44:05' and `end` < '2025-04-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-04-08 21:44:18] Production.INFO: count ==945 [2025-04-08 21:44:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:44:05 - End Time 2025-04-08 21:44:05 [2025-04-08 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865031', 'tblTempUsageDetail_20' ) start [2025-04-08 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865031', 'tblTempUsageDetail_20' ) end [2025-04-08 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865031', 'tblTempVendorCDR_20' ) start [2025-04-08 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865031', 'tblTempVendorCDR_20' ) end [2025-04-08 21:44:18] Production.INFO: ProcessCDR(1,14865031,1,1,2) [2025-04-08 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865031', 'tblTempUsageDetail_20' ) start [2025-04-08 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865031', 'tblTempUsageDetail_20' ) end [2025-04-08 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:44:21] Production.INFO: ==25383== Releasing lock... [2025-04-08 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:44:21] Production.INFO: 34.75 MB #Memory Used# [2025-04-08 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:45:05 [end_date_ymd] => 2025-04-08 21:45:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:45:05' and `end` < '2025-04-08 21: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-04-08 21:45:18] Production.INFO: count ==939 [2025-04-08 21:45:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:45:05 - End Time 2025-04-08 21:45:05 [2025-04-08 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865036', 'tblTempUsageDetail_20' ) start [2025-04-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865036', 'tblTempUsageDetail_20' ) end [2025-04-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865036', 'tblTempVendorCDR_20' ) start [2025-04-08 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865036', 'tblTempVendorCDR_20' ) end [2025-04-08 21:45:18] Production.INFO: ProcessCDR(1,14865036,1,1,2) [2025-04-08 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865036', 'tblTempUsageDetail_20' ) start [2025-04-08 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865036', 'tblTempUsageDetail_20' ) end [2025-04-08 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:45:21] Production.INFO: ==25455== Releasing lock... [2025-04-08 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:45:21] Production.INFO: 34.5 MB #Memory Used# [2025-04-08 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:46:05 [end_date_ymd] => 2025-04-08 21:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:46:05' and `end` < '2025-04-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-04-08 21:46:18] Production.INFO: count ==934 [2025-04-08 21:46:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:46:05 - End Time 2025-04-08 21:46:05 [2025-04-08 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865041', 'tblTempUsageDetail_20' ) start [2025-04-08 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865041', 'tblTempUsageDetail_20' ) end [2025-04-08 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865041', 'tblTempVendorCDR_20' ) start [2025-04-08 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865041', 'tblTempVendorCDR_20' ) end [2025-04-08 21:46:18] Production.INFO: ProcessCDR(1,14865041,1,1,2) [2025-04-08 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865041', 'tblTempUsageDetail_20' ) start [2025-04-08 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865041', 'tblTempUsageDetail_20' ) end [2025-04-08 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:46:23] Production.INFO: ==25565== Releasing lock... [2025-04-08 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:46:23] Production.INFO: 34.5 MB #Memory Used# [2025-04-08 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:47:05 [end_date_ymd] => 2025-04-08 21:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:47:05' and `end` < '2025-04-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-04-08 21:47:18] Production.INFO: count ==929 [2025-04-08 21:47:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:47:05 - End Time 2025-04-08 21:47:05 [2025-04-08 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865046', 'tblTempUsageDetail_20' ) start [2025-04-08 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865046', 'tblTempUsageDetail_20' ) end [2025-04-08 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865046', 'tblTempVendorCDR_20' ) start [2025-04-08 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865046', 'tblTempVendorCDR_20' ) end [2025-04-08 21:47:18] Production.INFO: ProcessCDR(1,14865046,1,1,2) [2025-04-08 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865046', 'tblTempUsageDetail_20' ) start [2025-04-08 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865046', 'tblTempUsageDetail_20' ) end [2025-04-08 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:47:21] Production.INFO: ==25637== Releasing lock... [2025-04-08 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:47:21] Production.INFO: 34.25 MB #Memory Used# [2025-04-08 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:48:05 [end_date_ymd] => 2025-04-08 21:48:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:48:05' and `end` < '2025-04-08 21: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-04-08 21:48:18] Production.INFO: count ==929 [2025-04-08 21:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:48:05 - End Time 2025-04-08 21:48:05 [2025-04-08 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865051', 'tblTempUsageDetail_20' ) start [2025-04-08 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865051', 'tblTempUsageDetail_20' ) end [2025-04-08 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865051', 'tblTempVendorCDR_20' ) start [2025-04-08 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865051', 'tblTempVendorCDR_20' ) end [2025-04-08 21:48:18] Production.INFO: ProcessCDR(1,14865051,1,1,2) [2025-04-08 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865051', 'tblTempUsageDetail_20' ) start [2025-04-08 21:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865051', 'tblTempUsageDetail_20' ) end [2025-04-08 21:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:48:22] Production.INFO: ==25713== Releasing lock... [2025-04-08 21:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:48:22] Production.INFO: 34.25 MB #Memory Used# [2025-04-08 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:49:05 [end_date_ymd] => 2025-04-08 21:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:49:05' and `end` < '2025-04-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-04-08 21:49:18] Production.INFO: count ==925 [2025-04-08 21:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:49:05 - End Time 2025-04-08 21:49:05 [2025-04-08 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865056', 'tblTempUsageDetail_20' ) start [2025-04-08 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865056', 'tblTempUsageDetail_20' ) end [2025-04-08 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865056', 'tblTempVendorCDR_20' ) start [2025-04-08 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865056', 'tblTempVendorCDR_20' ) end [2025-04-08 21:49:18] Production.INFO: ProcessCDR(1,14865056,1,1,2) [2025-04-08 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865056', 'tblTempUsageDetail_20' ) start [2025-04-08 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865056', 'tblTempUsageDetail_20' ) end [2025-04-08 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:49:23] Production.INFO: ==25788== Releasing lock... [2025-04-08 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:49:23] Production.INFO: 34.25 MB #Memory Used# [2025-04-08 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:50:06 [end_date_ymd] => 2025-04-08 21:50:06 [RateCDR] => 1 ) [2025-04-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-04-08 18:50:06' and `end` < '2025-04-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-04-08 21:50:19] Production.INFO: count ==925 [2025-04-08 21:50:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:50:06 - End Time 2025-04-08 21:50:06 [2025-04-08 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865062', 'tblTempUsageDetail_20' ) start [2025-04-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865062', 'tblTempUsageDetail_20' ) end [2025-04-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865062', 'tblTempVendorCDR_20' ) start [2025-04-08 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865062', 'tblTempVendorCDR_20' ) end [2025-04-08 21:50:19] Production.INFO: ProcessCDR(1,14865062,1,1,2) [2025-04-08 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865062', 'tblTempUsageDetail_20' ) start [2025-04-08 21:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865062', 'tblTempUsageDetail_20' ) end [2025-04-08 21:50:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:50:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:50:24] Production.INFO: ==25865== Releasing lock... [2025-04-08 21:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:50:24] Production.INFO: 34.25 MB #Memory Used# [2025-04-08 21:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:51:06 [end_date_ymd] => 2025-04-08 21:51:06 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:51:06' and `end` < '2025-04-08 21: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-04-08 21:51:19] Production.INFO: count ==892 [2025-04-08 21:51:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:51:06 - End Time 2025-04-08 21:51:06 [2025-04-08 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865067', 'tblTempUsageDetail_20' ) start [2025-04-08 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865067', 'tblTempUsageDetail_20' ) end [2025-04-08 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865067', 'tblTempVendorCDR_20' ) start [2025-04-08 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865067', 'tblTempVendorCDR_20' ) end [2025-04-08 21:51:19] Production.INFO: ProcessCDR(1,14865067,1,1,2) [2025-04-08 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865067', 'tblTempUsageDetail_20' ) start [2025-04-08 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865067', 'tblTempUsageDetail_20' ) end [2025-04-08 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:51:22] Production.INFO: ==25944== Releasing lock... [2025-04-08 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:51:22] Production.INFO: 34 MB #Memory Used# [2025-04-08 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:52:05 [end_date_ymd] => 2025-04-08 21:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:52:05' and `end` < '2025-04-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-04-08 21:52:18] Production.INFO: count ==890 [2025-04-08 21:52:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:52:05 - End Time 2025-04-08 21:52:05 [2025-04-08 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865072', 'tblTempUsageDetail_20' ) start [2025-04-08 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865072', 'tblTempUsageDetail_20' ) end [2025-04-08 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865072', 'tblTempVendorCDR_20' ) start [2025-04-08 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865072', 'tblTempVendorCDR_20' ) end [2025-04-08 21:52:18] Production.INFO: ProcessCDR(1,14865072,1,1,2) [2025-04-08 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865072', 'tblTempUsageDetail_20' ) start [2025-04-08 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865072', 'tblTempUsageDetail_20' ) end [2025-04-08 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:52:21] Production.INFO: ==26015== Releasing lock... [2025-04-08 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:52:21] Production.INFO: 34 MB #Memory Used# [2025-04-08 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:53:06 [end_date_ymd] => 2025-04-08 21:53:06 [RateCDR] => 1 ) [2025-04-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-04-08 18:53:06' and `end` < '2025-04-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-04-08 21:53:19] Production.INFO: count ==893 [2025-04-08 21:53:19] Production.ERROR: pbx CDR StartTime 2025-04-08 18:53:06 - End Time 2025-04-08 21:53:06 [2025-04-08 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865077', 'tblTempUsageDetail_20' ) start [2025-04-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865077', 'tblTempUsageDetail_20' ) end [2025-04-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865077', 'tblTempVendorCDR_20' ) start [2025-04-08 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865077', 'tblTempVendorCDR_20' ) end [2025-04-08 21:53:19] Production.INFO: ProcessCDR(1,14865077,1,1,2) [2025-04-08 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865077', 'tblTempUsageDetail_20' ) start [2025-04-08 21:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865077', 'tblTempUsageDetail_20' ) end [2025-04-08 21:53:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:53:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:53:24] Production.INFO: ==26088== Releasing lock... [2025-04-08 21:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:53:24] Production.INFO: 34 MB #Memory Used# [2025-04-08 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:54:05 [end_date_ymd] => 2025-04-08 21:54:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:54:05' and `end` < '2025-04-08 21: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-04-08 21:54:18] Production.INFO: count ==892 [2025-04-08 21:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:54:05 - End Time 2025-04-08 21:54:05 [2025-04-08 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865082', 'tblTempUsageDetail_20' ) start [2025-04-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865082', 'tblTempUsageDetail_20' ) end [2025-04-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865082', 'tblTempVendorCDR_20' ) start [2025-04-08 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865082', 'tblTempVendorCDR_20' ) end [2025-04-08 21:54:18] Production.INFO: ProcessCDR(1,14865082,1,1,2) [2025-04-08 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865082', 'tblTempUsageDetail_20' ) start [2025-04-08 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865082', 'tblTempUsageDetail_20' ) end [2025-04-08 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:54:23] Production.INFO: ==26160== Releasing lock... [2025-04-08 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:54:23] Production.INFO: 34 MB #Memory Used# [2025-04-08 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:55:05 [end_date_ymd] => 2025-04-08 21:55:05 [RateCDR] => 1 ) [2025-04-08 21: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-04-08 18:55:05' and `end` < '2025-04-08 21: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-04-08 21:55:18] Production.INFO: count ==889 [2025-04-08 21:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:55:05 - End Time 2025-04-08 21:55:05 [2025-04-08 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865087', 'tblTempUsageDetail_20' ) start [2025-04-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865087', 'tblTempUsageDetail_20' ) end [2025-04-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865087', 'tblTempVendorCDR_20' ) start [2025-04-08 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865087', 'tblTempVendorCDR_20' ) end [2025-04-08 21:55:18] Production.INFO: ProcessCDR(1,14865087,1,1,2) [2025-04-08 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865087', 'tblTempUsageDetail_20' ) start [2025-04-08 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865087', 'tblTempUsageDetail_20' ) end [2025-04-08 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:55:22] Production.INFO: ==26233== Releasing lock... [2025-04-08 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:55:22] Production.INFO: 34 MB #Memory Used# [2025-04-08 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:56:05 [end_date_ymd] => 2025-04-08 21:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:56:05' and `end` < '2025-04-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-04-08 21:56:17] Production.INFO: count ==887 [2025-04-08 21:56:17] Production.ERROR: pbx CDR StartTime 2025-04-08 18:56:05 - End Time 2025-04-08 21:56:05 [2025-04-08 21:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865092', 'tblTempUsageDetail_20' ) start [2025-04-08 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865092', 'tblTempUsageDetail_20' ) end [2025-04-08 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865092', 'tblTempVendorCDR_20' ) start [2025-04-08 21:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865092', 'tblTempVendorCDR_20' ) end [2025-04-08 21:56:17] Production.INFO: ProcessCDR(1,14865092,1,1,2) [2025-04-08 21:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865092', 'tblTempUsageDetail_20' ) start [2025-04-08 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865092', 'tblTempUsageDetail_20' ) end [2025-04-08 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:56:21] Production.INFO: ==26308== Releasing lock... [2025-04-08 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:56:21] Production.INFO: 34 MB #Memory Used# [2025-04-08 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:57:05 [end_date_ymd] => 2025-04-08 21:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:57:05' and `end` < '2025-04-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-04-08 21:57:18] Production.INFO: count ==883 [2025-04-08 21:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:57:05 - End Time 2025-04-08 21:57:05 [2025-04-08 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865097', 'tblTempUsageDetail_20' ) start [2025-04-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865097', 'tblTempUsageDetail_20' ) end [2025-04-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865097', 'tblTempVendorCDR_20' ) start [2025-04-08 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865097', 'tblTempVendorCDR_20' ) end [2025-04-08 21:57:18] Production.INFO: ProcessCDR(1,14865097,1,1,2) [2025-04-08 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865097', 'tblTempUsageDetail_20' ) start [2025-04-08 21:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865097', 'tblTempUsageDetail_20' ) end [2025-04-08 21:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:57:22] Production.INFO: ==26378== Releasing lock... [2025-04-08 21:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:58:05 [end_date_ymd] => 2025-04-08 21:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:58:05' and `end` < '2025-04-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-04-08 21:58:18] Production.INFO: count ==877 [2025-04-08 21:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:58:05 - End Time 2025-04-08 21:58:05 [2025-04-08 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865102', 'tblTempUsageDetail_20' ) start [2025-04-08 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865102', 'tblTempUsageDetail_20' ) end [2025-04-08 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865102', 'tblTempVendorCDR_20' ) start [2025-04-08 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865102', 'tblTempVendorCDR_20' ) end [2025-04-08 21:58:18] Production.INFO: ProcessCDR(1,14865102,1,1,2) [2025-04-08 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865102', 'tblTempUsageDetail_20' ) start [2025-04-08 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865102', 'tblTempUsageDetail_20' ) end [2025-04-08 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:58:21] Production.INFO: ==26449== Releasing lock... [2025-04-08 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:58:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 18:59:05 [end_date_ymd] => 2025-04-08 21:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 18:59:05' and `end` < '2025-04-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-04-08 21:59:18] Production.INFO: count ==876 [2025-04-08 21:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 18:59:05 - End Time 2025-04-08 21:59:05 [2025-04-08 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865107', 'tblTempUsageDetail_20' ) start [2025-04-08 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865107', 'tblTempUsageDetail_20' ) end [2025-04-08 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865107', 'tblTempVendorCDR_20' ) start [2025-04-08 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865107', 'tblTempVendorCDR_20' ) end [2025-04-08 21:59:18] Production.INFO: ProcessCDR(1,14865107,1,1,2) [2025-04-08 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865107', 'tblTempUsageDetail_20' ) start [2025-04-08 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865107', 'tblTempUsageDetail_20' ) end [2025-04-08 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 21:59:21] Production.INFO: ==26524== Releasing lock... [2025-04-08 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 21:59:21] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:00:06 [end_date_ymd] => 2025-04-08 22:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 19:00:06' and `end` < '2025-04-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-04-08 22:00:18] Production.INFO: count ==874 [2025-04-08 22:00:19] Production.ERROR: pbx CDR StartTime 2025-04-08 19:00:06 - End Time 2025-04-08 22:00:06 [2025-04-08 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865113', 'tblTempUsageDetail_20' ) start [2025-04-08 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865113', 'tblTempUsageDetail_20' ) end [2025-04-08 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865113', 'tblTempVendorCDR_20' ) start [2025-04-08 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865113', 'tblTempVendorCDR_20' ) end [2025-04-08 22:00:19] Production.INFO: ProcessCDR(1,14865113,1,1,2) [2025-04-08 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865113', 'tblTempUsageDetail_20' ) start [2025-04-08 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865113', 'tblTempUsageDetail_20' ) end [2025-04-08 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:00:22] Production.INFO: ==26597== Releasing lock... [2025-04-08 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:00:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:01:05 [end_date_ymd] => 2025-04-08 22:01:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:01:05' and `end` < '2025-04-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-04-08 22:01:18] Production.INFO: count ==844 [2025-04-08 22:01:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:01:05 - End Time 2025-04-08 22:01:05 [2025-04-08 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865118', 'tblTempUsageDetail_20' ) start [2025-04-08 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865118', 'tblTempUsageDetail_20' ) end [2025-04-08 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865118', 'tblTempVendorCDR_20' ) start [2025-04-08 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865118', 'tblTempVendorCDR_20' ) end [2025-04-08 22:01:18] Production.INFO: ProcessCDR(1,14865118,1,1,2) [2025-04-08 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865118', 'tblTempUsageDetail_20' ) start [2025-04-08 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865118', 'tblTempUsageDetail_20' ) end [2025-04-08 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:01:21] Production.INFO: ==26724== Releasing lock... [2025-04-08 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:01:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-08 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:02:05 [end_date_ymd] => 2025-04-08 22:02:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:02:05' and `end` < '2025-04-08 22: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-04-08 22:02:18] Production.INFO: count ==838 [2025-04-08 22:02:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:02:05 - End Time 2025-04-08 22:02:05 [2025-04-08 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865123', 'tblTempUsageDetail_20' ) start [2025-04-08 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865123', 'tblTempUsageDetail_20' ) end [2025-04-08 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865123', 'tblTempVendorCDR_20' ) start [2025-04-08 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865123', 'tblTempVendorCDR_20' ) end [2025-04-08 22:02:18] Production.INFO: ProcessCDR(1,14865123,1,1,2) [2025-04-08 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865123', 'tblTempUsageDetail_20' ) start [2025-04-08 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865123', 'tblTempUsageDetail_20' ) end [2025-04-08 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:02:22] Production.INFO: ==26797== Releasing lock... [2025-04-08 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:02:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:03:05 [end_date_ymd] => 2025-04-08 22:03:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:03:05' and `end` < '2025-04-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-04-08 22:03:17] Production.INFO: count ==832 [2025-04-08 22:03:17] Production.ERROR: pbx CDR StartTime 2025-04-08 19:03:05 - End Time 2025-04-08 22:03:05 [2025-04-08 22:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865128', 'tblTempUsageDetail_20' ) start [2025-04-08 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865128', 'tblTempUsageDetail_20' ) end [2025-04-08 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865128', 'tblTempVendorCDR_20' ) start [2025-04-08 22:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865128', 'tblTempVendorCDR_20' ) end [2025-04-08 22:03:17] Production.INFO: ProcessCDR(1,14865128,1,1,2) [2025-04-08 22:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865128', 'tblTempUsageDetail_20' ) start [2025-04-08 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865128', 'tblTempUsageDetail_20' ) end [2025-04-08 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:03:21] Production.INFO: ==26867== Releasing lock... [2025-04-08 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:03:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-08 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:04:05 [end_date_ymd] => 2025-04-08 22:04:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:04:05' and `end` < '2025-04-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-04-08 22:04:18] Production.INFO: count ==841 [2025-04-08 22:04:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:04:05 - End Time 2025-04-08 22:04:05 [2025-04-08 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865133', 'tblTempUsageDetail_20' ) start [2025-04-08 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865133', 'tblTempUsageDetail_20' ) end [2025-04-08 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865133', 'tblTempVendorCDR_20' ) start [2025-04-08 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865133', 'tblTempVendorCDR_20' ) end [2025-04-08 22:04:18] Production.INFO: ProcessCDR(1,14865133,1,1,2) [2025-04-08 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865133', 'tblTempUsageDetail_20' ) start [2025-04-08 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865133', 'tblTempUsageDetail_20' ) end [2025-04-08 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:04:22] Production.INFO: ==26941== Releasing lock... [2025-04-08 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:04:22] Production.INFO: 33.75 MB #Memory Used# [2025-04-08 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:05:05 [end_date_ymd] => 2025-04-08 22:05:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:05:05' and `end` < '2025-04-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-04-08 22:05:18] Production.INFO: count ==837 [2025-04-08 22:05:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:05:05 - End Time 2025-04-08 22:05:05 [2025-04-08 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865138', 'tblTempUsageDetail_20' ) start [2025-04-08 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865138', 'tblTempUsageDetail_20' ) end [2025-04-08 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865138', 'tblTempVendorCDR_20' ) start [2025-04-08 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865138', 'tblTempVendorCDR_20' ) end [2025-04-08 22:05:18] Production.INFO: ProcessCDR(1,14865138,1,1,2) [2025-04-08 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865138', 'tblTempUsageDetail_20' ) start [2025-04-08 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865138', 'tblTempUsageDetail_20' ) end [2025-04-08 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:05:22] Production.INFO: ==27013== Releasing lock... [2025-04-08 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:05:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-08 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:06:05 [end_date_ymd] => 2025-04-08 22:06:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:06:05' and `end` < '2025-04-08 22: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-04-08 22:06:18] Production.INFO: count ==835 [2025-04-08 22:06:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:06:05 - End Time 2025-04-08 22:06:05 [2025-04-08 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865143', 'tblTempUsageDetail_20' ) start [2025-04-08 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865143', 'tblTempUsageDetail_20' ) end [2025-04-08 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865143', 'tblTempVendorCDR_20' ) start [2025-04-08 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865143', 'tblTempVendorCDR_20' ) end [2025-04-08 22:06:18] Production.INFO: ProcessCDR(1,14865143,1,1,2) [2025-04-08 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865143', 'tblTempUsageDetail_20' ) start [2025-04-08 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865143', 'tblTempUsageDetail_20' ) end [2025-04-08 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:06:22] Production.INFO: ==27087== Releasing lock... [2025-04-08 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:06:22] Production.INFO: 33.5 MB #Memory Used# [2025-04-08 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:07:04 [end_date_ymd] => 2025-04-08 22:07:04 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:07:04' and `end` < '2025-04-08 22: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-04-08 22:07:17] Production.INFO: count ==835 [2025-04-08 22:07:17] Production.ERROR: pbx CDR StartTime 2025-04-08 19:07:04 - End Time 2025-04-08 22:07:04 [2025-04-08 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865148', 'tblTempUsageDetail_20' ) start [2025-04-08 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865148', 'tblTempUsageDetail_20' ) end [2025-04-08 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865148', 'tblTempVendorCDR_20' ) start [2025-04-08 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865148', 'tblTempVendorCDR_20' ) end [2025-04-08 22:07:17] Production.INFO: ProcessCDR(1,14865148,1,1,2) [2025-04-08 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865148', 'tblTempUsageDetail_20' ) start [2025-04-08 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865148', 'tblTempUsageDetail_20' ) end [2025-04-08 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:07:21] Production.INFO: ==27159== Releasing lock... [2025-04-08 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:07:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-08 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:08:05 [end_date_ymd] => 2025-04-08 22:08:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:08:05' and `end` < '2025-04-08 22: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-04-08 22:08:18] Production.INFO: count ==834 [2025-04-08 22:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:08:05 - End Time 2025-04-08 22:08:05 [2025-04-08 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865153', 'tblTempUsageDetail_20' ) start [2025-04-08 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865153', 'tblTempUsageDetail_20' ) end [2025-04-08 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865153', 'tblTempVendorCDR_20' ) start [2025-04-08 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865153', 'tblTempVendorCDR_20' ) end [2025-04-08 22:08:18] Production.INFO: ProcessCDR(1,14865153,1,1,2) [2025-04-08 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865153', 'tblTempUsageDetail_20' ) start [2025-04-08 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865153', 'tblTempUsageDetail_20' ) end [2025-04-08 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:08:21] Production.INFO: ==27236== Releasing lock... [2025-04-08 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:08:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-08 22:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:09:04 [end_date_ymd] => 2025-04-08 22:09:04 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:09:04' and `end` < '2025-04-08 22: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-04-08 22:09:17] Production.INFO: count ==826 [2025-04-08 22:09:17] Production.ERROR: pbx CDR StartTime 2025-04-08 19:09:04 - End Time 2025-04-08 22:09:04 [2025-04-08 22:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865158', 'tblTempUsageDetail_20' ) start [2025-04-08 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865158', 'tblTempUsageDetail_20' ) end [2025-04-08 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865158', 'tblTempVendorCDR_20' ) start [2025-04-08 22:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865158', 'tblTempVendorCDR_20' ) end [2025-04-08 22:09:17] Production.INFO: ProcessCDR(1,14865158,1,1,2) [2025-04-08 22:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865158', 'tblTempUsageDetail_20' ) start [2025-04-08 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865158', 'tblTempUsageDetail_20' ) end [2025-04-08 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:09:21] Production.INFO: ==27306== Releasing lock... [2025-04-08 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:09:21] Production.INFO: 33.5 MB #Memory Used# [2025-04-08 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:10:06 [end_date_ymd] => 2025-04-08 22:10:06 [RateCDR] => 1 ) [2025-04-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-04-08 19:10:06' and `end` < '2025-04-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-04-08 22:10:19] Production.INFO: count ==816 [2025-04-08 22:10:19] Production.ERROR: pbx CDR StartTime 2025-04-08 19:10:06 - End Time 2025-04-08 22:10:06 [2025-04-08 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865164', 'tblTempUsageDetail_20' ) start [2025-04-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865164', 'tblTempUsageDetail_20' ) end [2025-04-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865164', 'tblTempVendorCDR_20' ) start [2025-04-08 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865164', 'tblTempVendorCDR_20' ) end [2025-04-08 22:10:19] Production.INFO: ProcessCDR(1,14865164,1,1,2) [2025-04-08 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865164', 'tblTempUsageDetail_20' ) start [2025-04-08 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865164', 'tblTempUsageDetail_20' ) end [2025-04-08 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:10:23] Production.INFO: ==27379== Releasing lock... [2025-04-08 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:10:23] Production.INFO: 33.5 MB #Memory Used# [2025-04-08 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:11:05 [end_date_ymd] => 2025-04-08 22:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:11:05' and `end` < '2025-04-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-04-08 22:11:17] Production.INFO: count ==771 [2025-04-08 22:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:11:05 - End Time 2025-04-08 22:11:05 [2025-04-08 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865169', 'tblTempUsageDetail_20' ) start [2025-04-08 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865169', 'tblTempUsageDetail_20' ) end [2025-04-08 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865169', 'tblTempVendorCDR_20' ) start [2025-04-08 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865169', 'tblTempVendorCDR_20' ) end [2025-04-08 22:11:18] Production.INFO: ProcessCDR(1,14865169,1,1,2) [2025-04-08 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865169', 'tblTempUsageDetail_20' ) start [2025-04-08 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865169', 'tblTempUsageDetail_20' ) end [2025-04-08 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:11:21] Production.INFO: ==27454== Releasing lock... [2025-04-08 22:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:11:21] Production.INFO: 33.25 MB #Memory Used# [2025-04-08 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:12:05 [end_date_ymd] => 2025-04-08 22:12:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:12:05' and `end` < '2025-04-08 22: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-04-08 22:12:18] Production.INFO: count ==767 [2025-04-08 22:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:12:05 - End Time 2025-04-08 22:12:05 [2025-04-08 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865174', 'tblTempUsageDetail_20' ) start [2025-04-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865174', 'tblTempUsageDetail_20' ) end [2025-04-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865174', 'tblTempVendorCDR_20' ) start [2025-04-08 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865174', 'tblTempVendorCDR_20' ) end [2025-04-08 22:12:18] Production.INFO: ProcessCDR(1,14865174,1,1,2) [2025-04-08 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865174', 'tblTempUsageDetail_20' ) start [2025-04-08 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865174', 'tblTempUsageDetail_20' ) end [2025-04-08 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:12:21] Production.INFO: ==27524== Releasing lock... [2025-04-08 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:12:21] Production.INFO: 33 MB #Memory Used# [2025-04-08 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:13:04 [end_date_ymd] => 2025-04-08 22:13:04 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:13:04' and `end` < '2025-04-08 22: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-04-08 22:13:17] Production.INFO: count ==761 [2025-04-08 22:13:17] Production.ERROR: pbx CDR StartTime 2025-04-08 19:13:04 - End Time 2025-04-08 22:13:04 [2025-04-08 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865179', 'tblTempUsageDetail_20' ) start [2025-04-08 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865179', 'tblTempUsageDetail_20' ) end [2025-04-08 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865179', 'tblTempVendorCDR_20' ) start [2025-04-08 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865179', 'tblTempVendorCDR_20' ) end [2025-04-08 22:13:17] Production.INFO: ProcessCDR(1,14865179,1,1,2) [2025-04-08 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865179', 'tblTempUsageDetail_20' ) start [2025-04-08 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865179', 'tblTempUsageDetail_20' ) end [2025-04-08 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:13:21] Production.INFO: ==27595== Releasing lock... [2025-04-08 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:13:21] Production.INFO: 33 MB #Memory Used# [2025-04-08 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:14:05 [end_date_ymd] => 2025-04-08 22:14:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:14:05' and `end` < '2025-04-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-04-08 22:14:18] Production.INFO: count ==760 [2025-04-08 22:14:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:14:05 - End Time 2025-04-08 22:14:05 [2025-04-08 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865184', 'tblTempUsageDetail_20' ) start [2025-04-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865184', 'tblTempUsageDetail_20' ) end [2025-04-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865184', 'tblTempVendorCDR_20' ) start [2025-04-08 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865184', 'tblTempVendorCDR_20' ) end [2025-04-08 22:14:18] Production.INFO: ProcessCDR(1,14865184,1,1,2) [2025-04-08 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865184', 'tblTempUsageDetail_20' ) start [2025-04-08 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865184', 'tblTempUsageDetail_20' ) end [2025-04-08 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:14:22] Production.INFO: ==27668== Releasing lock... [2025-04-08 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:14:22] Production.INFO: 33 MB #Memory Used# [2025-04-08 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:15:05 [end_date_ymd] => 2025-04-08 22:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:15:05' and `end` < '2025-04-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-04-08 22:15:18] Production.INFO: count ==758 [2025-04-08 22:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:15:05 - End Time 2025-04-08 22:15:05 [2025-04-08 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865189', 'tblTempUsageDetail_20' ) start [2025-04-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865189', 'tblTempUsageDetail_20' ) end [2025-04-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865189', 'tblTempVendorCDR_20' ) start [2025-04-08 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865189', 'tblTempVendorCDR_20' ) end [2025-04-08 22:15:18] Production.INFO: ProcessCDR(1,14865189,1,1,2) [2025-04-08 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865189', 'tblTempUsageDetail_20' ) start [2025-04-08 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865189', 'tblTempUsageDetail_20' ) end [2025-04-08 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:15:21] Production.INFO: ==27741== Releasing lock... [2025-04-08 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:15:21] Production.INFO: 33 MB #Memory Used# [2025-04-08 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:16:05 [end_date_ymd] => 2025-04-08 22:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:16:05' and `end` < '2025-04-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-04-08 22:16:18] Production.INFO: count ==755 [2025-04-08 22:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:16:05 - End Time 2025-04-08 22:16:05 [2025-04-08 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865194', 'tblTempUsageDetail_20' ) start [2025-04-08 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865194', 'tblTempUsageDetail_20' ) end [2025-04-08 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865194', 'tblTempVendorCDR_20' ) start [2025-04-08 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865194', 'tblTempVendorCDR_20' ) end [2025-04-08 22:16:18] Production.INFO: ProcessCDR(1,14865194,1,1,2) [2025-04-08 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865194', 'tblTempUsageDetail_20' ) start [2025-04-08 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865194', 'tblTempUsageDetail_20' ) end [2025-04-08 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:16:21] Production.INFO: ==27814== Releasing lock... [2025-04-08 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:16:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:17:04 [end_date_ymd] => 2025-04-08 22:17:04 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:17:04' and `end` < '2025-04-08 22: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-04-08 22:17:17] Production.INFO: count ==755 [2025-04-08 22:17:17] Production.ERROR: pbx CDR StartTime 2025-04-08 19:17:04 - End Time 2025-04-08 22:17:04 [2025-04-08 22:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865199', 'tblTempUsageDetail_20' ) start [2025-04-08 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865199', 'tblTempUsageDetail_20' ) end [2025-04-08 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865199', 'tblTempVendorCDR_20' ) start [2025-04-08 22:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865199', 'tblTempVendorCDR_20' ) end [2025-04-08 22:17:17] Production.INFO: ProcessCDR(1,14865199,1,1,2) [2025-04-08 22:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865199', 'tblTempUsageDetail_20' ) start [2025-04-08 22:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865199', 'tblTempUsageDetail_20' ) end [2025-04-08 22:17:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:17:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:17:22] Production.INFO: ==27922== Releasing lock... [2025-04-08 22:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:17:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:18:06 [end_date_ymd] => 2025-04-08 22:18:06 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:18:06' and `end` < '2025-04-08 22: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-04-08 22:18:18] Production.INFO: count ==754 [2025-04-08 22:18:19] Production.ERROR: pbx CDR StartTime 2025-04-08 19:18:06 - End Time 2025-04-08 22:18:06 [2025-04-08 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865204', 'tblTempUsageDetail_20' ) start [2025-04-08 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865204', 'tblTempUsageDetail_20' ) end [2025-04-08 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865204', 'tblTempVendorCDR_20' ) start [2025-04-08 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865204', 'tblTempVendorCDR_20' ) end [2025-04-08 22:18:19] Production.INFO: ProcessCDR(1,14865204,1,1,2) [2025-04-08 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865204', 'tblTempUsageDetail_20' ) start [2025-04-08 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865204', 'tblTempUsageDetail_20' ) end [2025-04-08 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:18:22] Production.INFO: ==27994== Releasing lock... [2025-04-08 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:18:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:19:05 [end_date_ymd] => 2025-04-08 22:19:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:19:05' and `end` < '2025-04-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-04-08 22:19:17] Production.INFO: count ==752 [2025-04-08 22:19:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:19:05 - End Time 2025-04-08 22:19:05 [2025-04-08 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865209', 'tblTempUsageDetail_20' ) start [2025-04-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865209', 'tblTempUsageDetail_20' ) end [2025-04-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865209', 'tblTempVendorCDR_20' ) start [2025-04-08 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865209', 'tblTempVendorCDR_20' ) end [2025-04-08 22:19:18] Production.INFO: ProcessCDR(1,14865209,1,1,2) [2025-04-08 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865209', 'tblTempUsageDetail_20' ) start [2025-04-08 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865209', 'tblTempUsageDetail_20' ) end [2025-04-08 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:19:21] Production.INFO: ==28069== Releasing lock... [2025-04-08 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:19:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:20:06 [end_date_ymd] => 2025-04-08 22:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 19:20:06' and `end` < '2025-04-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-04-08 22:20:19] Production.INFO: count ==752 [2025-04-08 22:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 19:20:06 - End Time 2025-04-08 22:20:06 [2025-04-08 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865215', 'tblTempUsageDetail_20' ) start [2025-04-08 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865215', 'tblTempUsageDetail_20' ) end [2025-04-08 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865215', 'tblTempVendorCDR_20' ) start [2025-04-08 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865215', 'tblTempVendorCDR_20' ) end [2025-04-08 22:20:19] Production.INFO: ProcessCDR(1,14865215,1,1,2) [2025-04-08 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865215', 'tblTempUsageDetail_20' ) start [2025-04-08 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865215', 'tblTempUsageDetail_20' ) end [2025-04-08 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:20:22] Production.INFO: ==28145== Releasing lock... [2025-04-08 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:20:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:21:05 [end_date_ymd] => 2025-04-08 22:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:21:05' and `end` < '2025-04-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-04-08 22:21:18] Production.INFO: count ==718 [2025-04-08 22:21:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:21:05 - End Time 2025-04-08 22:21:05 [2025-04-08 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865220', 'tblTempUsageDetail_20' ) start [2025-04-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865220', 'tblTempUsageDetail_20' ) end [2025-04-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865220', 'tblTempVendorCDR_20' ) start [2025-04-08 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865220', 'tblTempVendorCDR_20' ) end [2025-04-08 22:21:18] Production.INFO: ProcessCDR(1,14865220,1,1,2) [2025-04-08 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865220', 'tblTempUsageDetail_20' ) start [2025-04-08 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865220', 'tblTempUsageDetail_20' ) end [2025-04-08 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:21:22] Production.INFO: ==28220== Releasing lock... [2025-04-08 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:21:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:22:05 [end_date_ymd] => 2025-04-08 22:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:22:05' and `end` < '2025-04-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-04-08 22:22:18] Production.INFO: count ==718 [2025-04-08 22:22:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:22:05 - End Time 2025-04-08 22:22:05 [2025-04-08 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865225', 'tblTempUsageDetail_20' ) start [2025-04-08 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865225', 'tblTempUsageDetail_20' ) end [2025-04-08 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865225', 'tblTempVendorCDR_20' ) start [2025-04-08 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865225', 'tblTempVendorCDR_20' ) end [2025-04-08 22:22:18] Production.INFO: ProcessCDR(1,14865225,1,1,2) [2025-04-08 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865225', 'tblTempUsageDetail_20' ) start [2025-04-08 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865225', 'tblTempUsageDetail_20' ) end [2025-04-08 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:22:21] Production.INFO: ==28292== Releasing lock... [2025-04-08 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:22:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:23:05 [end_date_ymd] => 2025-04-08 22:23:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:23:05' and `end` < '2025-04-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-04-08 22:23:18] Production.INFO: count ==716 [2025-04-08 22:23:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:23:05 - End Time 2025-04-08 22:23:05 [2025-04-08 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865230', 'tblTempUsageDetail_20' ) start [2025-04-08 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865230', 'tblTempUsageDetail_20' ) end [2025-04-08 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865230', 'tblTempVendorCDR_20' ) start [2025-04-08 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865230', 'tblTempVendorCDR_20' ) end [2025-04-08 22:23:18] Production.INFO: ProcessCDR(1,14865230,1,1,2) [2025-04-08 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865230', 'tblTempUsageDetail_20' ) start [2025-04-08 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865230', 'tblTempUsageDetail_20' ) end [2025-04-08 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:23:22] Production.INFO: ==28363== Releasing lock... [2025-04-08 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:23:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:24:05 [end_date_ymd] => 2025-04-08 22:24:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:24:05' and `end` < '2025-04-08 22: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-04-08 22:24:17] Production.INFO: count ==715 [2025-04-08 22:24:17] Production.ERROR: pbx CDR StartTime 2025-04-08 19:24:05 - End Time 2025-04-08 22:24:05 [2025-04-08 22:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865235', 'tblTempUsageDetail_20' ) start [2025-04-08 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865235', 'tblTempUsageDetail_20' ) end [2025-04-08 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865235', 'tblTempVendorCDR_20' ) start [2025-04-08 22:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865235', 'tblTempVendorCDR_20' ) end [2025-04-08 22:24:17] Production.INFO: ProcessCDR(1,14865235,1,1,2) [2025-04-08 22:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865235', 'tblTempUsageDetail_20' ) start [2025-04-08 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865235', 'tblTempUsageDetail_20' ) end [2025-04-08 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:24:21] Production.INFO: ==28436== Releasing lock... [2025-04-08 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:24:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:25:05 [end_date_ymd] => 2025-04-08 22:25:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:25:05' and `end` < '2025-04-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-04-08 22:25:18] Production.INFO: count ==715 [2025-04-08 22:25:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:25:05 - End Time 2025-04-08 22:25:05 [2025-04-08 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865240', 'tblTempUsageDetail_20' ) start [2025-04-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865240', 'tblTempUsageDetail_20' ) end [2025-04-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865240', 'tblTempVendorCDR_20' ) start [2025-04-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865240', 'tblTempVendorCDR_20' ) end [2025-04-08 22:25:18] Production.INFO: ProcessCDR(1,14865240,1,1,2) [2025-04-08 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865240', 'tblTempUsageDetail_20' ) start [2025-04-08 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865240', 'tblTempUsageDetail_20' ) end [2025-04-08 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:25:22] Production.INFO: ==28509== Releasing lock... [2025-04-08 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:25:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:26:05 [end_date_ymd] => 2025-04-08 22:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:26:05' and `end` < '2025-04-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-04-08 22:26:17] Production.INFO: count ==711 [2025-04-08 22:26:17] Production.ERROR: pbx CDR StartTime 2025-04-08 19:26:05 - End Time 2025-04-08 22:26:05 [2025-04-08 22:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865245', 'tblTempUsageDetail_20' ) start [2025-04-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865245', 'tblTempUsageDetail_20' ) end [2025-04-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865245', 'tblTempVendorCDR_20' ) start [2025-04-08 22:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865245', 'tblTempVendorCDR_20' ) end [2025-04-08 22:26:17] Production.INFO: ProcessCDR(1,14865245,1,1,2) [2025-04-08 22:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865245', 'tblTempUsageDetail_20' ) start [2025-04-08 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865245', 'tblTempUsageDetail_20' ) end [2025-04-08 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:26:21] Production.INFO: ==28579== Releasing lock... [2025-04-08 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:26:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:27:05 [end_date_ymd] => 2025-04-08 22:27:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:27:05' and `end` < '2025-04-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-04-08 22:27:18] Production.INFO: count ==710 [2025-04-08 22:27:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:27:05 - End Time 2025-04-08 22:27:05 [2025-04-08 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865250', 'tblTempUsageDetail_20' ) start [2025-04-08 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865250', 'tblTempUsageDetail_20' ) end [2025-04-08 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865250', 'tblTempVendorCDR_20' ) start [2025-04-08 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865250', 'tblTempVendorCDR_20' ) end [2025-04-08 22:27:18] Production.INFO: ProcessCDR(1,14865250,1,1,2) [2025-04-08 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865250', 'tblTempUsageDetail_20' ) start [2025-04-08 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865250', 'tblTempUsageDetail_20' ) end [2025-04-08 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:27:22] Production.INFO: ==28655== Releasing lock... [2025-04-08 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:27:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:28:05 [end_date_ymd] => 2025-04-08 22:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:28:05' and `end` < '2025-04-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-04-08 22:28:18] Production.INFO: count ==709 [2025-04-08 22:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:28:05 - End Time 2025-04-08 22:28:05 [2025-04-08 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865255', 'tblTempUsageDetail_20' ) start [2025-04-08 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865255', 'tblTempUsageDetail_20' ) end [2025-04-08 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865255', 'tblTempVendorCDR_20' ) start [2025-04-08 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865255', 'tblTempVendorCDR_20' ) end [2025-04-08 22:28:18] Production.INFO: ProcessCDR(1,14865255,1,1,2) [2025-04-08 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865255', 'tblTempUsageDetail_20' ) start [2025-04-08 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865255', 'tblTempUsageDetail_20' ) end [2025-04-08 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:28:22] Production.INFO: ==28727== Releasing lock... [2025-04-08 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:28:22] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:29:05 [end_date_ymd] => 2025-04-08 22:29:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:29:05' and `end` < '2025-04-08 22: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-04-08 22:29:18] Production.INFO: count ==707 [2025-04-08 22:29:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:29:05 - End Time 2025-04-08 22:29:05 [2025-04-08 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865260', 'tblTempUsageDetail_20' ) start [2025-04-08 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865260', 'tblTempUsageDetail_20' ) end [2025-04-08 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865260', 'tblTempVendorCDR_20' ) start [2025-04-08 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865260', 'tblTempVendorCDR_20' ) end [2025-04-08 22:29:18] Production.INFO: ProcessCDR(1,14865260,1,1,2) [2025-04-08 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865260', 'tblTempUsageDetail_20' ) start [2025-04-08 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865260', 'tblTempUsageDetail_20' ) end [2025-04-08 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:29:21] Production.INFO: ==28799== Releasing lock... [2025-04-08 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:29:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:30:05 [end_date_ymd] => 2025-04-08 22:30:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:30:05' and `end` < '2025-04-08 22: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-04-08 22:30:18] Production.INFO: count ==707 [2025-04-08 22:30:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:30:05 - End Time 2025-04-08 22:30:05 [2025-04-08 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865265', 'tblTempUsageDetail_20' ) start [2025-04-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865265', 'tblTempUsageDetail_20' ) end [2025-04-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865265', 'tblTempVendorCDR_20' ) start [2025-04-08 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865265', 'tblTempVendorCDR_20' ) end [2025-04-08 22:30:18] Production.INFO: ProcessCDR(1,14865265,1,1,2) [2025-04-08 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865265', 'tblTempUsageDetail_20' ) start [2025-04-08 22:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865265', 'tblTempUsageDetail_20' ) end [2025-04-08 22:30:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:30:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:30:21] Production.INFO: ==28874== Releasing lock... [2025-04-08 22:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:30:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:31:05 [end_date_ymd] => 2025-04-08 22:31:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:31:05' and `end` < '2025-04-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-04-08 22:31:18] Production.INFO: count ==679 [2025-04-08 22:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:31:05 - End Time 2025-04-08 22:31:05 [2025-04-08 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865271', 'tblTempUsageDetail_20' ) start [2025-04-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865271', 'tblTempUsageDetail_20' ) end [2025-04-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865271', 'tblTempVendorCDR_20' ) start [2025-04-08 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865271', 'tblTempVendorCDR_20' ) end [2025-04-08 22:31:18] Production.INFO: ProcessCDR(1,14865271,1,1,2) [2025-04-08 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865271', 'tblTempUsageDetail_20' ) start [2025-04-08 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865271', 'tblTempUsageDetail_20' ) end [2025-04-08 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:31:21] Production.INFO: ==28946== Releasing lock... [2025-04-08 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:31:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:32:06 [end_date_ymd] => 2025-04-08 22:32:06 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:32:06' and `end` < '2025-04-08 22: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-04-08 22:32:19] Production.INFO: count ==678 [2025-04-08 22:32:19] Production.ERROR: pbx CDR StartTime 2025-04-08 19:32:06 - End Time 2025-04-08 22:32:06 [2025-04-08 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865276', 'tblTempUsageDetail_20' ) start [2025-04-08 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865276', 'tblTempUsageDetail_20' ) end [2025-04-08 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865276', 'tblTempVendorCDR_20' ) start [2025-04-08 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865276', 'tblTempVendorCDR_20' ) end [2025-04-08 22:32:19] Production.INFO: ProcessCDR(1,14865276,1,1,2) [2025-04-08 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865276', 'tblTempUsageDetail_20' ) start [2025-04-08 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865276', 'tblTempUsageDetail_20' ) end [2025-04-08 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:32:23] Production.INFO: ==29057== Releasing lock... [2025-04-08 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:32:23] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:33:05 [end_date_ymd] => 2025-04-08 22:33:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:33:05' and `end` < '2025-04-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-04-08 22:33:18] Production.INFO: count ==678 [2025-04-08 22:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:33:05 - End Time 2025-04-08 22:33:05 [2025-04-08 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865281', 'tblTempUsageDetail_20' ) start [2025-04-08 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865281', 'tblTempUsageDetail_20' ) end [2025-04-08 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865281', 'tblTempVendorCDR_20' ) start [2025-04-08 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865281', 'tblTempVendorCDR_20' ) end [2025-04-08 22:33:18] Production.INFO: ProcessCDR(1,14865281,1,1,2) [2025-04-08 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865281', 'tblTempUsageDetail_20' ) start [2025-04-08 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865281', 'tblTempUsageDetail_20' ) end [2025-04-08 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:33:22] Production.INFO: ==29130== Releasing lock... [2025-04-08 22:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:33:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:34:05 [end_date_ymd] => 2025-04-08 22:34:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:34:05' and `end` < '2025-04-08 22: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-04-08 22:34:18] Production.INFO: count ==679 [2025-04-08 22:34:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:34:05 - End Time 2025-04-08 22:34:05 [2025-04-08 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865286', 'tblTempUsageDetail_20' ) start [2025-04-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865286', 'tblTempUsageDetail_20' ) end [2025-04-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865286', 'tblTempVendorCDR_20' ) start [2025-04-08 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865286', 'tblTempVendorCDR_20' ) end [2025-04-08 22:34:18] Production.INFO: ProcessCDR(1,14865286,1,1,2) [2025-04-08 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865286', 'tblTempUsageDetail_20' ) start [2025-04-08 22:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865286', 'tblTempUsageDetail_20' ) end [2025-04-08 22:34:24] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:34:24] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:34:24] Production.INFO: ==29207== Releasing lock... [2025-04-08 22:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:34:24] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:35:05 [end_date_ymd] => 2025-04-08 22:35:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:35:05' and `end` < '2025-04-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-04-08 22:35:18] Production.INFO: count ==678 [2025-04-08 22:35:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:35:05 - End Time 2025-04-08 22:35:05 [2025-04-08 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865291', 'tblTempUsageDetail_20' ) start [2025-04-08 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865291', 'tblTempUsageDetail_20' ) end [2025-04-08 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865291', 'tblTempVendorCDR_20' ) start [2025-04-08 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865291', 'tblTempVendorCDR_20' ) end [2025-04-08 22:35:18] Production.INFO: ProcessCDR(1,14865291,1,1,2) [2025-04-08 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865291', 'tblTempUsageDetail_20' ) start [2025-04-08 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865291', 'tblTempUsageDetail_20' ) end [2025-04-08 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:35:21] Production.INFO: ==29279== Releasing lock... [2025-04-08 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:35:21] Production.INFO: 32.75 MB #Memory Used# [2025-04-08 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:36:06 [end_date_ymd] => 2025-04-08 22:36:06 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:36:06' and `end` < '2025-04-08 22: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-04-08 22:36:19] Production.INFO: count ==677 [2025-04-08 22:36:19] Production.ERROR: pbx CDR StartTime 2025-04-08 19:36:06 - End Time 2025-04-08 22:36:06 [2025-04-08 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865296', 'tblTempUsageDetail_20' ) start [2025-04-08 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865296', 'tblTempUsageDetail_20' ) end [2025-04-08 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865296', 'tblTempVendorCDR_20' ) start [2025-04-08 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865296', 'tblTempVendorCDR_20' ) end [2025-04-08 22:36:19] Production.INFO: ProcessCDR(1,14865296,1,1,2) [2025-04-08 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865296', 'tblTempUsageDetail_20' ) start [2025-04-08 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865296', 'tblTempUsageDetail_20' ) end [2025-04-08 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:36:22] Production.INFO: ==29352== Releasing lock... [2025-04-08 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:36:22] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:37:05 [end_date_ymd] => 2025-04-08 22:37:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:37:05' and `end` < '2025-04-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-04-08 22:37:18] Production.INFO: count ==675 [2025-04-08 22:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:37:05 - End Time 2025-04-08 22:37:05 [2025-04-08 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865301', 'tblTempUsageDetail_20' ) start [2025-04-08 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865301', 'tblTempUsageDetail_20' ) end [2025-04-08 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865301', 'tblTempVendorCDR_20' ) start [2025-04-08 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865301', 'tblTempVendorCDR_20' ) end [2025-04-08 22:37:18] Production.INFO: ProcessCDR(1,14865301,1,1,2) [2025-04-08 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865301', 'tblTempUsageDetail_20' ) start [2025-04-08 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865301', 'tblTempUsageDetail_20' ) end [2025-04-08 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:37:21] Production.INFO: ==29420== Releasing lock... [2025-04-08 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-04-08 22:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:38:06 [end_date_ymd] => 2025-04-08 22:38:06 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:38:06' and `end` < '2025-04-08 22: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-04-08 22:38:18] Production.INFO: count ==662 [2025-04-08 22:38:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:38:06 - End Time 2025-04-08 22:38:06 [2025-04-08 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865306', 'tblTempUsageDetail_20' ) start [2025-04-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865306', 'tblTempUsageDetail_20' ) end [2025-04-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865306', 'tblTempVendorCDR_20' ) start [2025-04-08 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865306', 'tblTempVendorCDR_20' ) end [2025-04-08 22:38:18] Production.INFO: ProcessCDR(1,14865306,1,1,2) [2025-04-08 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865306', 'tblTempUsageDetail_20' ) start [2025-04-08 22:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865306', 'tblTempUsageDetail_20' ) end [2025-04-08 22:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:38:22] Production.INFO: ==29493== Releasing lock... [2025-04-08 22:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:38:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:39:05 [end_date_ymd] => 2025-04-08 22:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:39:05' and `end` < '2025-04-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-04-08 22:39:18] Production.INFO: count ==661 [2025-04-08 22:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:39:05 - End Time 2025-04-08 22:39:05 [2025-04-08 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865311', 'tblTempUsageDetail_20' ) start [2025-04-08 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865311', 'tblTempUsageDetail_20' ) end [2025-04-08 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865311', 'tblTempVendorCDR_20' ) start [2025-04-08 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865311', 'tblTempVendorCDR_20' ) end [2025-04-08 22:39:18] Production.INFO: ProcessCDR(1,14865311,1,1,2) [2025-04-08 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865311', 'tblTempUsageDetail_20' ) start [2025-04-08 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865311', 'tblTempUsageDetail_20' ) end [2025-04-08 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:39:21] Production.INFO: ==29562== Releasing lock... [2025-04-08 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:39:21] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:40:06 [end_date_ymd] => 2025-04-08 22:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 19:40:06' and `end` < '2025-04-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-04-08 22:40:18] Production.INFO: count ==660 [2025-04-08 22:40:19] Production.ERROR: pbx CDR StartTime 2025-04-08 19:40:06 - End Time 2025-04-08 22:40:06 [2025-04-08 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865317', 'tblTempUsageDetail_20' ) start [2025-04-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865317', 'tblTempUsageDetail_20' ) end [2025-04-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865317', 'tblTempVendorCDR_20' ) start [2025-04-08 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865317', 'tblTempVendorCDR_20' ) end [2025-04-08 22:40:19] Production.INFO: ProcessCDR(1,14865317,1,1,2) [2025-04-08 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865317', 'tblTempUsageDetail_20' ) start [2025-04-08 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865317', 'tblTempUsageDetail_20' ) end [2025-04-08 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:40:22] Production.INFO: ==29636== Releasing lock... [2025-04-08 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:40:22] Production.INFO: 32.25 MB #Memory Used# [2025-04-08 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:41:05 [end_date_ymd] => 2025-04-08 22:41:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:41:05' and `end` < '2025-04-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-04-08 22:41:18] Production.INFO: count ==626 [2025-04-08 22:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:41:05 - End Time 2025-04-08 22:41:05 [2025-04-08 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865322', 'tblTempUsageDetail_20' ) start [2025-04-08 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865322', 'tblTempUsageDetail_20' ) end [2025-04-08 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865322', 'tblTempVendorCDR_20' ) start [2025-04-08 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865322', 'tblTempVendorCDR_20' ) end [2025-04-08 22:41:18] Production.INFO: ProcessCDR(1,14865322,1,1,2) [2025-04-08 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865322', 'tblTempUsageDetail_20' ) start [2025-04-08 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865322', 'tblTempUsageDetail_20' ) end [2025-04-08 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:41:23] Production.INFO: ==29711== Releasing lock... [2025-04-08 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:41:23] Production.INFO: 32 MB #Memory Used# [2025-04-08 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:42:06 [end_date_ymd] => 2025-04-08 22:42:06 [RateCDR] => 1 ) [2025-04-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-04-08 19:42:06' and `end` < '2025-04-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-04-08 22:42:19] Production.INFO: count ==623 [2025-04-08 22:42:19] Production.ERROR: pbx CDR StartTime 2025-04-08 19:42:06 - End Time 2025-04-08 22:42:06 [2025-04-08 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865327', 'tblTempUsageDetail_20' ) start [2025-04-08 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865327', 'tblTempUsageDetail_20' ) end [2025-04-08 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865327', 'tblTempVendorCDR_20' ) start [2025-04-08 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865327', 'tblTempVendorCDR_20' ) end [2025-04-08 22:42:19] Production.INFO: ProcessCDR(1,14865327,1,1,2) [2025-04-08 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865327', 'tblTempUsageDetail_20' ) start [2025-04-08 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865327', 'tblTempUsageDetail_20' ) end [2025-04-08 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:42:22] Production.INFO: ==29781== Releasing lock... [2025-04-08 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:42:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:43:05 [end_date_ymd] => 2025-04-08 22:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:43:05' and `end` < '2025-04-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-04-08 22:43:18] Production.INFO: count ==622 [2025-04-08 22:43:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:43:05 - End Time 2025-04-08 22:43:05 [2025-04-08 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865332', 'tblTempUsageDetail_20' ) start [2025-04-08 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865332', 'tblTempUsageDetail_20' ) end [2025-04-08 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865332', 'tblTempVendorCDR_20' ) start [2025-04-08 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865332', 'tblTempVendorCDR_20' ) end [2025-04-08 22:43:18] Production.INFO: ProcessCDR(1,14865332,1,1,2) [2025-04-08 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865332', 'tblTempUsageDetail_20' ) start [2025-04-08 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865332', 'tblTempUsageDetail_20' ) end [2025-04-08 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:43:22] Production.INFO: ==29856== Releasing lock... [2025-04-08 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:43:22] Production.INFO: 32 MB #Memory Used# [2025-04-08 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:44:06 [end_date_ymd] => 2025-04-08 22:44:06 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:44:06' and `end` < '2025-04-08 22: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-04-08 22:44:18] Production.INFO: count ==623 [2025-04-08 22:44:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:44:06 - End Time 2025-04-08 22:44:06 [2025-04-08 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865337', 'tblTempUsageDetail_20' ) start [2025-04-08 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865337', 'tblTempUsageDetail_20' ) end [2025-04-08 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865337', 'tblTempVendorCDR_20' ) start [2025-04-08 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865337', 'tblTempVendorCDR_20' ) end [2025-04-08 22:44:19] Production.INFO: ProcessCDR(1,14865337,1,1,2) [2025-04-08 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865337', 'tblTempUsageDetail_20' ) start [2025-04-08 22:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865337', 'tblTempUsageDetail_20' ) end [2025-04-08 22:44:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:44:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:44:24] Production.INFO: ==29933== Releasing lock... [2025-04-08 22:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:44:24] Production.INFO: 32 MB #Memory Used# [2025-04-08 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:45:05 [end_date_ymd] => 2025-04-08 22:45:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:45:05' and `end` < '2025-04-08 22: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-04-08 22:45:18] Production.INFO: count ==623 [2025-04-08 22:45:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:45:05 - End Time 2025-04-08 22:45:05 [2025-04-08 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865342', 'tblTempUsageDetail_20' ) start [2025-04-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865342', 'tblTempUsageDetail_20' ) end [2025-04-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865342', 'tblTempVendorCDR_20' ) start [2025-04-08 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865342', 'tblTempVendorCDR_20' ) end [2025-04-08 22:45:18] Production.INFO: ProcessCDR(1,14865342,1,1,2) [2025-04-08 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865342', 'tblTempUsageDetail_20' ) start [2025-04-08 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865342', 'tblTempUsageDetail_20' ) end [2025-04-08 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:45:21] Production.INFO: ==30004== Releasing lock... [2025-04-08 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:45:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:46:05 [end_date_ymd] => 2025-04-08 22:46:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:46:05' and `end` < '2025-04-08 22: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-04-08 22:46:18] Production.INFO: count ==616 [2025-04-08 22:46:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:46:05 - End Time 2025-04-08 22:46:05 [2025-04-08 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865347', 'tblTempUsageDetail_20' ) start [2025-04-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865347', 'tblTempUsageDetail_20' ) end [2025-04-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865347', 'tblTempVendorCDR_20' ) start [2025-04-08 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865347', 'tblTempVendorCDR_20' ) end [2025-04-08 22:46:18] Production.INFO: ProcessCDR(1,14865347,1,1,2) [2025-04-08 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865347', 'tblTempUsageDetail_20' ) start [2025-04-08 22:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865347', 'tblTempUsageDetail_20' ) end [2025-04-08 22:46:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:46:23] Production.INFO: ==30076== Releasing lock... [2025-04-08 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:46:23] Production.INFO: 32 MB #Memory Used# [2025-04-08 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:47:05 [end_date_ymd] => 2025-04-08 22:47:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:47:05' and `end` < '2025-04-08 22: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-04-08 22:47:18] Production.INFO: count ==615 [2025-04-08 22:47:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:47:05 - End Time 2025-04-08 22:47:05 [2025-04-08 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865352', 'tblTempUsageDetail_20' ) start [2025-04-08 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865352', 'tblTempUsageDetail_20' ) end [2025-04-08 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865352', 'tblTempVendorCDR_20' ) start [2025-04-08 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865352', 'tblTempVendorCDR_20' ) end [2025-04-08 22:47:18] Production.INFO: ProcessCDR(1,14865352,1,1,2) [2025-04-08 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865352', 'tblTempUsageDetail_20' ) start [2025-04-08 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865352', 'tblTempUsageDetail_20' ) end [2025-04-08 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:47:23] Production.INFO: ==30153== Releasing lock... [2025-04-08 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:47:23] Production.INFO: 32 MB #Memory Used# [2025-04-08 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:48:05 [end_date_ymd] => 2025-04-08 22:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:48:05' and `end` < '2025-04-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-04-08 22:48:18] Production.INFO: count ==611 [2025-04-08 22:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:48:05 - End Time 2025-04-08 22:48:05 [2025-04-08 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865357', 'tblTempUsageDetail_20' ) start [2025-04-08 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865357', 'tblTempUsageDetail_20' ) end [2025-04-08 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865357', 'tblTempVendorCDR_20' ) start [2025-04-08 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865357', 'tblTempVendorCDR_20' ) end [2025-04-08 22:48:18] Production.INFO: ProcessCDR(1,14865357,1,1,2) [2025-04-08 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865357', 'tblTempUsageDetail_20' ) start [2025-04-08 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865357', 'tblTempUsageDetail_20' ) end [2025-04-08 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:48:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:48:21] Production.INFO: ==30264== Releasing lock... [2025-04-08 22:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:48:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:49:05 [end_date_ymd] => 2025-04-08 22:49:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:49:05' and `end` < '2025-04-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-04-08 22:49:18] Production.INFO: count ==608 [2025-04-08 22:49:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:49:05 - End Time 2025-04-08 22:49:05 [2025-04-08 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865362', 'tblTempUsageDetail_20' ) start [2025-04-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865362', 'tblTempUsageDetail_20' ) end [2025-04-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865362', 'tblTempVendorCDR_20' ) start [2025-04-08 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865362', 'tblTempVendorCDR_20' ) end [2025-04-08 22:49:18] Production.INFO: ProcessCDR(1,14865362,1,1,2) [2025-04-08 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865362', 'tblTempUsageDetail_20' ) start [2025-04-08 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865362', 'tblTempUsageDetail_20' ) end [2025-04-08 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:49:21] Production.INFO: ==30343== Releasing lock... [2025-04-08 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:49:21] Production.INFO: 32 MB #Memory Used# [2025-04-08 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:50:06 [end_date_ymd] => 2025-04-08 22:50:06 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:50:06' and `end` < '2025-04-08 22: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-04-08 22:50:19] Production.INFO: count ==598 [2025-04-08 22:50:19] Production.ERROR: pbx CDR StartTime 2025-04-08 19:50:06 - End Time 2025-04-08 22:50:06 [2025-04-08 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865368', 'tblTempUsageDetail_20' ) start [2025-04-08 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865368', 'tblTempUsageDetail_20' ) end [2025-04-08 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865368', 'tblTempVendorCDR_20' ) start [2025-04-08 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865368', 'tblTempVendorCDR_20' ) end [2025-04-08 22:50:19] Production.INFO: ProcessCDR(1,14865368,1,1,2) [2025-04-08 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865368', 'tblTempUsageDetail_20' ) start [2025-04-08 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865368', 'tblTempUsageDetail_20' ) end [2025-04-08 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:50:22] Production.INFO: ==30417== Releasing lock... [2025-04-08 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-04-08 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:51:05 [end_date_ymd] => 2025-04-08 22:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:51:05' and `end` < '2025-04-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-04-08 22:51:17] Production.INFO: count ==561 [2025-04-08 22:51:17] Production.ERROR: pbx CDR StartTime 2025-04-08 19:51:05 - End Time 2025-04-08 22:51:05 [2025-04-08 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865373', 'tblTempUsageDetail_20' ) start [2025-04-08 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865373', 'tblTempUsageDetail_20' ) end [2025-04-08 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865373', 'tblTempVendorCDR_20' ) start [2025-04-08 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865373', 'tblTempVendorCDR_20' ) end [2025-04-08 22:51:17] Production.INFO: ProcessCDR(1,14865373,1,1,2) [2025-04-08 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865373', 'tblTempUsageDetail_20' ) start [2025-04-08 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865373', 'tblTempUsageDetail_20' ) end [2025-04-08 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:51:21] Production.INFO: ==30490== Releasing lock... [2025-04-08 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:51:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:52:05 [end_date_ymd] => 2025-04-08 22:52:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:52:05' and `end` < '2025-04-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-04-08 22:52:18] Production.INFO: count ==558 [2025-04-08 22:52:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:52:05 - End Time 2025-04-08 22:52:05 [2025-04-08 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865378', 'tblTempUsageDetail_20' ) start [2025-04-08 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865378', 'tblTempUsageDetail_20' ) end [2025-04-08 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865378', 'tblTempVendorCDR_20' ) start [2025-04-08 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865378', 'tblTempVendorCDR_20' ) end [2025-04-08 22:52:18] Production.INFO: ProcessCDR(1,14865378,1,1,2) [2025-04-08 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865378', 'tblTempUsageDetail_20' ) start [2025-04-08 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865378', 'tblTempUsageDetail_20' ) end [2025-04-08 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:52:21] Production.INFO: ==30562== Releasing lock... [2025-04-08 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:52:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 22:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:53:06 [end_date_ymd] => 2025-04-08 22:53:06 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:53:06' and `end` < '2025-04-08 22: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-04-08 22:53:19] Production.INFO: count ==556 [2025-04-08 22:53:19] Production.ERROR: pbx CDR StartTime 2025-04-08 19:53:06 - End Time 2025-04-08 22:53:06 [2025-04-08 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865383', 'tblTempUsageDetail_20' ) start [2025-04-08 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865383', 'tblTempUsageDetail_20' ) end [2025-04-08 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865383', 'tblTempVendorCDR_20' ) start [2025-04-08 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865383', 'tblTempVendorCDR_20' ) end [2025-04-08 22:53:19] Production.INFO: ProcessCDR(1,14865383,1,1,2) [2025-04-08 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865383', 'tblTempUsageDetail_20' ) start [2025-04-08 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865383', 'tblTempUsageDetail_20' ) end [2025-04-08 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:53:22] Production.INFO: ==30640== Releasing lock... [2025-04-08 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:53:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:54:05 [end_date_ymd] => 2025-04-08 22:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:54:05' and `end` < '2025-04-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-04-08 22:54:18] Production.INFO: count ==555 [2025-04-08 22:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:54:05 - End Time 2025-04-08 22:54:05 [2025-04-08 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865388', 'tblTempUsageDetail_20' ) start [2025-04-08 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865388', 'tblTempUsageDetail_20' ) end [2025-04-08 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865388', 'tblTempVendorCDR_20' ) start [2025-04-08 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865388', 'tblTempVendorCDR_20' ) end [2025-04-08 22:54:18] Production.INFO: ProcessCDR(1,14865388,1,1,2) [2025-04-08 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865388', 'tblTempUsageDetail_20' ) start [2025-04-08 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865388', 'tblTempUsageDetail_20' ) end [2025-04-08 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:54:21] Production.INFO: ==30712== Releasing lock... [2025-04-08 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:54:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:55:05 [end_date_ymd] => 2025-04-08 22:55:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:55:05' and `end` < '2025-04-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-04-08 22:55:18] Production.INFO: count ==552 [2025-04-08 22:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:55:05 - End Time 2025-04-08 22:55:05 [2025-04-08 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865393', 'tblTempUsageDetail_20' ) start [2025-04-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865393', 'tblTempUsageDetail_20' ) end [2025-04-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865393', 'tblTempVendorCDR_20' ) start [2025-04-08 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865393', 'tblTempVendorCDR_20' ) end [2025-04-08 22:55:18] Production.INFO: ProcessCDR(1,14865393,1,1,2) [2025-04-08 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865393', 'tblTempUsageDetail_20' ) start [2025-04-08 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865393', 'tblTempUsageDetail_20' ) end [2025-04-08 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:55:22] Production.INFO: ==30787== Releasing lock... [2025-04-08 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:55:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:56:05 [end_date_ymd] => 2025-04-08 22:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:56:05' and `end` < '2025-04-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-04-08 22:56:18] Production.INFO: count ==553 [2025-04-08 22:56:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:56:05 - End Time 2025-04-08 22:56:05 [2025-04-08 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865398', 'tblTempUsageDetail_20' ) start [2025-04-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865398', 'tblTempUsageDetail_20' ) end [2025-04-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865398', 'tblTempVendorCDR_20' ) start [2025-04-08 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865398', 'tblTempVendorCDR_20' ) end [2025-04-08 22:56:18] Production.INFO: ProcessCDR(1,14865398,1,1,2) [2025-04-08 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865398', 'tblTempUsageDetail_20' ) start [2025-04-08 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865398', 'tblTempUsageDetail_20' ) end [2025-04-08 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:56:21] Production.INFO: ==30857== Releasing lock... [2025-04-08 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:56:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:57:05 [end_date_ymd] => 2025-04-08 22:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:57:05' and `end` < '2025-04-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-04-08 22:57:18] Production.INFO: count ==552 [2025-04-08 22:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:57:05 - End Time 2025-04-08 22:57:05 [2025-04-08 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865403', 'tblTempUsageDetail_20' ) start [2025-04-08 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865403', 'tblTempUsageDetail_20' ) end [2025-04-08 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865403', 'tblTempVendorCDR_20' ) start [2025-04-08 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865403', 'tblTempVendorCDR_20' ) end [2025-04-08 22:57:18] Production.INFO: ProcessCDR(1,14865403,1,1,2) [2025-04-08 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865403', 'tblTempUsageDetail_20' ) start [2025-04-08 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865403', 'tblTempUsageDetail_20' ) end [2025-04-08 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:57:22] Production.INFO: ==30930== Releasing lock... [2025-04-08 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:57:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:58:05 [end_date_ymd] => 2025-04-08 22:58:05 [RateCDR] => 1 ) [2025-04-08 22: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-04-08 19:58:05' and `end` < '2025-04-08 22: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-04-08 22:58:18] Production.INFO: count ==550 [2025-04-08 22:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:58:05 - End Time 2025-04-08 22:58:05 [2025-04-08 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865408', 'tblTempUsageDetail_20' ) start [2025-04-08 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865408', 'tblTempUsageDetail_20' ) end [2025-04-08 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865408', 'tblTempVendorCDR_20' ) start [2025-04-08 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865408', 'tblTempVendorCDR_20' ) end [2025-04-08 22:58:18] Production.INFO: ProcessCDR(1,14865408,1,1,2) [2025-04-08 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865408', 'tblTempUsageDetail_20' ) start [2025-04-08 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865408', 'tblTempUsageDetail_20' ) end [2025-04-08 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:58:21] Production.INFO: ==31002== Releasing lock... [2025-04-08 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:58:21] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 19:59:05 [end_date_ymd] => 2025-04-08 22:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 19:59:05' and `end` < '2025-04-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-04-08 22:59:18] Production.INFO: count ==549 [2025-04-08 22:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 19:59:05 - End Time 2025-04-08 22:59:05 [2025-04-08 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865413', 'tblTempUsageDetail_20' ) start [2025-04-08 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865413', 'tblTempUsageDetail_20' ) end [2025-04-08 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865413', 'tblTempVendorCDR_20' ) start [2025-04-08 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865413', 'tblTempVendorCDR_20' ) end [2025-04-08 22:59:18] Production.INFO: ProcessCDR(1,14865413,1,1,2) [2025-04-08 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 22:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865413', 'tblTempUsageDetail_20' ) start [2025-04-08 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865413', 'tblTempUsageDetail_20' ) end [2025-04-08 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 22:59:22] Production.INFO: ==31073== Releasing lock... [2025-04-08 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 22:59:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:00:06 [end_date_ymd] => 2025-04-08 23:00:06 [RateCDR] => 1 ) [2025-04-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-04-08 20:00:06' and `end` < '2025-04-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-04-08 23:00:19] Production.INFO: count ==545 [2025-04-08 23:00:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:00:06 - End Time 2025-04-08 23:00:06 [2025-04-08 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865418', 'tblTempUsageDetail_20' ) start [2025-04-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865418', 'tblTempUsageDetail_20' ) end [2025-04-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865418', 'tblTempVendorCDR_20' ) start [2025-04-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865418', 'tblTempVendorCDR_20' ) end [2025-04-08 23:00:19] Production.INFO: ProcessCDR(1,14865418,1,1,2) [2025-04-08 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865418', 'tblTempUsageDetail_20' ) start [2025-04-08 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865418', 'tblTempUsageDetail_20' ) end [2025-04-08 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:00:22] Production.INFO: ==31153== Releasing lock... [2025-04-08 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:00:22] Production.INFO: 31.5 MB #Memory Used# [2025-04-08 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:01:05 [end_date_ymd] => 2025-04-08 23:01:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:01:05' and `end` < '2025-04-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-04-08 23:01:18] Production.INFO: count ==534 [2025-04-08 23:01:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:01:05 - End Time 2025-04-08 23:01:05 [2025-04-08 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865424', 'tblTempUsageDetail_20' ) start [2025-04-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865424', 'tblTempUsageDetail_20' ) end [2025-04-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865424', 'tblTempVendorCDR_20' ) start [2025-04-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865424', 'tblTempVendorCDR_20' ) end [2025-04-08 23:01:18] Production.INFO: ProcessCDR(1,14865424,1,1,2) [2025-04-08 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865424', 'tblTempUsageDetail_20' ) start [2025-04-08 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865424', 'tblTempUsageDetail_20' ) end [2025-04-08 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:01:22] Production.INFO: ==31238== Releasing lock... [2025-04-08 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:01:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:02:05 [end_date_ymd] => 2025-04-08 23:02:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:02:05' and `end` < '2025-04-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-04-08 23:02:18] Production.INFO: count ==531 [2025-04-08 23:02:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:02:05 - End Time 2025-04-08 23:02:05 [2025-04-08 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865429', 'tblTempUsageDetail_20' ) start [2025-04-08 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865429', 'tblTempUsageDetail_20' ) end [2025-04-08 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865429', 'tblTempVendorCDR_20' ) start [2025-04-08 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865429', 'tblTempVendorCDR_20' ) end [2025-04-08 23:02:18] Production.INFO: ProcessCDR(1,14865429,1,1,2) [2025-04-08 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865429', 'tblTempUsageDetail_20' ) start [2025-04-08 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865429', 'tblTempUsageDetail_20' ) end [2025-04-08 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:02:21] Production.INFO: ==31389== Releasing lock... [2025-04-08 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:02:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:03:06 [end_date_ymd] => 2025-04-08 23:03:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:03:06' and `end` < '2025-04-08 23: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-04-08 23:03:18] Production.INFO: count ==528 [2025-04-08 23:03:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:03:06 - End Time 2025-04-08 23:03:06 [2025-04-08 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865434', 'tblTempUsageDetail_20' ) start [2025-04-08 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865434', 'tblTempUsageDetail_20' ) end [2025-04-08 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865434', 'tblTempVendorCDR_20' ) start [2025-04-08 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865434', 'tblTempVendorCDR_20' ) end [2025-04-08 23:03:19] Production.INFO: ProcessCDR(1,14865434,1,1,2) [2025-04-08 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865434', 'tblTempUsageDetail_20' ) start [2025-04-08 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865434', 'tblTempUsageDetail_20' ) end [2025-04-08 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:03:22] Production.INFO: ==31503== Releasing lock... [2025-04-08 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:03:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:04:04 [end_date_ymd] => 2025-04-08 23:04:04 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:04:04' and `end` < '2025-04-08 23: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-04-08 23:04:17] Production.INFO: count ==528 [2025-04-08 23:04:17] Production.ERROR: pbx CDR StartTime 2025-04-08 20:04:04 - End Time 2025-04-08 23:04:04 [2025-04-08 23:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865439', 'tblTempUsageDetail_20' ) start [2025-04-08 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865439', 'tblTempUsageDetail_20' ) end [2025-04-08 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865439', 'tblTempVendorCDR_20' ) start [2025-04-08 23:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865439', 'tblTempVendorCDR_20' ) end [2025-04-08 23:04:17] Production.INFO: ProcessCDR(1,14865439,1,1,2) [2025-04-08 23:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865439', 'tblTempUsageDetail_20' ) start [2025-04-08 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865439', 'tblTempUsageDetail_20' ) end [2025-04-08 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:04:21] Production.INFO: ==31575== Releasing lock... [2025-04-08 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:04:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:05:05 [end_date_ymd] => 2025-04-08 23:05:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:05:05' and `end` < '2025-04-08 23: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-04-08 23:05:18] Production.INFO: count ==527 [2025-04-08 23:05:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:05:05 - End Time 2025-04-08 23:05:05 [2025-04-08 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865444', 'tblTempUsageDetail_20' ) start [2025-04-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865444', 'tblTempUsageDetail_20' ) end [2025-04-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865444', 'tblTempVendorCDR_20' ) start [2025-04-08 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865444', 'tblTempVendorCDR_20' ) end [2025-04-08 23:05:18] Production.INFO: ProcessCDR(1,14865444,1,1,2) [2025-04-08 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865444', 'tblTempUsageDetail_20' ) start [2025-04-08 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865444', 'tblTempUsageDetail_20' ) end [2025-04-08 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:05:22] Production.INFO: ==31728== Releasing lock... [2025-04-08 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:05:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:06:06 [end_date_ymd] => 2025-04-08 23:06:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:06:06' and `end` < '2025-04-08 23: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-04-08 23:06:19] Production.INFO: count ==526 [2025-04-08 23:06:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:06:06 - End Time 2025-04-08 23:06:06 [2025-04-08 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865449', 'tblTempUsageDetail_20' ) start [2025-04-08 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865449', 'tblTempUsageDetail_20' ) end [2025-04-08 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865449', 'tblTempVendorCDR_20' ) start [2025-04-08 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865449', 'tblTempVendorCDR_20' ) end [2025-04-08 23:06:19] Production.INFO: ProcessCDR(1,14865449,1,1,2) [2025-04-08 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865449', 'tblTempUsageDetail_20' ) start [2025-04-08 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865449', 'tblTempUsageDetail_20' ) end [2025-04-08 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:06:22] Production.INFO: ==31805== Releasing lock... [2025-04-08 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:06:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:07:05 [end_date_ymd] => 2025-04-08 23:07:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:07:05' and `end` < '2025-04-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-04-08 23:07:18] Production.INFO: count ==526 [2025-04-08 23:07:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:07:05 - End Time 2025-04-08 23:07:05 [2025-04-08 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865454', 'tblTempUsageDetail_20' ) start [2025-04-08 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865454', 'tblTempUsageDetail_20' ) end [2025-04-08 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865454', 'tblTempVendorCDR_20' ) start [2025-04-08 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865454', 'tblTempVendorCDR_20' ) end [2025-04-08 23:07:18] Production.INFO: ProcessCDR(1,14865454,1,1,2) [2025-04-08 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865454', 'tblTempUsageDetail_20' ) start [2025-04-08 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865454', 'tblTempUsageDetail_20' ) end [2025-04-08 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:07:21] Production.INFO: ==31876== Releasing lock... [2025-04-08 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:07:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:08:06 [end_date_ymd] => 2025-04-08 23:08:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:08:06' and `end` < '2025-04-08 23: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-04-08 23:08:18] Production.INFO: count ==523 [2025-04-08 23:08:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:08:06 - End Time 2025-04-08 23:08:06 [2025-04-08 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865459', 'tblTempUsageDetail_20' ) start [2025-04-08 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865459', 'tblTempUsageDetail_20' ) end [2025-04-08 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865459', 'tblTempVendorCDR_20' ) start [2025-04-08 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865459', 'tblTempVendorCDR_20' ) end [2025-04-08 23:08:18] Production.INFO: ProcessCDR(1,14865459,1,1,2) [2025-04-08 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865459', 'tblTempUsageDetail_20' ) start [2025-04-08 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865459', 'tblTempUsageDetail_20' ) end [2025-04-08 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:08:22] Production.INFO: ==32029== Releasing lock... [2025-04-08 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:08:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:09:05 [end_date_ymd] => 2025-04-08 23:09:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:09:05' and `end` < '2025-04-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-04-08 23:09:18] Production.INFO: count ==523 [2025-04-08 23:09:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:09:05 - End Time 2025-04-08 23:09:05 [2025-04-08 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865464', 'tblTempUsageDetail_20' ) start [2025-04-08 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865464', 'tblTempUsageDetail_20' ) end [2025-04-08 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865464', 'tblTempVendorCDR_20' ) start [2025-04-08 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865464', 'tblTempVendorCDR_20' ) end [2025-04-08 23:09:18] Production.INFO: ProcessCDR(1,14865464,1,1,2) [2025-04-08 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865464', 'tblTempUsageDetail_20' ) start [2025-04-08 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865464', 'tblTempUsageDetail_20' ) end [2025-04-08 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:09:21] Production.INFO: ==32097== Releasing lock... [2025-04-08 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:10:06 [end_date_ymd] => 2025-04-08 23:10:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:10:06' and `end` < '2025-04-08 23: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-04-08 23:10:19] Production.INFO: count ==522 [2025-04-08 23:10:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:10:06 - End Time 2025-04-08 23:10:06 [2025-04-08 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865470', 'tblTempUsageDetail_20' ) start [2025-04-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865470', 'tblTempUsageDetail_20' ) end [2025-04-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865470', 'tblTempVendorCDR_20' ) start [2025-04-08 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865470', 'tblTempVendorCDR_20' ) end [2025-04-08 23:10:19] Production.INFO: ProcessCDR(1,14865470,1,1,2) [2025-04-08 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865470', 'tblTempUsageDetail_20' ) start [2025-04-08 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865470', 'tblTempUsageDetail_20' ) end [2025-04-08 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:10:22] Production.INFO: ==32172== Releasing lock... [2025-04-08 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:11:05 [end_date_ymd] => 2025-04-08 23:11:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:11:05' and `end` < '2025-04-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-04-08 23:11:18] Production.INFO: count ==522 [2025-04-08 23:11:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:11:05 - End Time 2025-04-08 23:11:05 [2025-04-08 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865475', 'tblTempUsageDetail_20' ) start [2025-04-08 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865475', 'tblTempUsageDetail_20' ) end [2025-04-08 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865475', 'tblTempVendorCDR_20' ) start [2025-04-08 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865475', 'tblTempVendorCDR_20' ) end [2025-04-08 23:11:18] Production.INFO: ProcessCDR(1,14865475,1,1,2) [2025-04-08 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865475', 'tblTempUsageDetail_20' ) start [2025-04-08 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865475', 'tblTempUsageDetail_20' ) end [2025-04-08 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:11:21] Production.INFO: ==32246== Releasing lock... [2025-04-08 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:12:05 [end_date_ymd] => 2025-04-08 23:12:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:12:05' and `end` < '2025-04-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-04-08 23:12:18] Production.INFO: count ==524 [2025-04-08 23:12:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:12:05 - End Time 2025-04-08 23:12:05 [2025-04-08 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865480', 'tblTempUsageDetail_20' ) start [2025-04-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865480', 'tblTempUsageDetail_20' ) end [2025-04-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865480', 'tblTempVendorCDR_20' ) start [2025-04-08 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865480', 'tblTempVendorCDR_20' ) end [2025-04-08 23:12:18] Production.INFO: ProcessCDR(1,14865480,1,1,2) [2025-04-08 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865480', 'tblTempUsageDetail_20' ) start [2025-04-08 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865480', 'tblTempUsageDetail_20' ) end [2025-04-08 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:12:21] Production.INFO: ==32394== Releasing lock... [2025-04-08 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:12:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:13:05 [end_date_ymd] => 2025-04-08 23:13:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:13:05' and `end` < '2025-04-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-04-08 23:13:17] Production.INFO: count ==522 [2025-04-08 23:13:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:13:05 - End Time 2025-04-08 23:13:05 [2025-04-08 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865485', 'tblTempUsageDetail_20' ) start [2025-04-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865485', 'tblTempUsageDetail_20' ) end [2025-04-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865485', 'tblTempVendorCDR_20' ) start [2025-04-08 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865485', 'tblTempVendorCDR_20' ) end [2025-04-08 23:13:18] Production.INFO: ProcessCDR(1,14865485,1,1,2) [2025-04-08 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865485', 'tblTempUsageDetail_20' ) start [2025-04-08 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865485', 'tblTempUsageDetail_20' ) end [2025-04-08 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:13:21] Production.INFO: ==32465== Releasing lock... [2025-04-08 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:14:05 [end_date_ymd] => 2025-04-08 23:14:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:14:05' and `end` < '2025-04-08 23: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-04-08 23:14:18] Production.INFO: count ==519 [2025-04-08 23:14:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:14:05 - End Time 2025-04-08 23:14:05 [2025-04-08 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865490', 'tblTempUsageDetail_20' ) start [2025-04-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865490', 'tblTempUsageDetail_20' ) end [2025-04-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865490', 'tblTempVendorCDR_20' ) start [2025-04-08 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865490', 'tblTempVendorCDR_20' ) end [2025-04-08 23:14:18] Production.INFO: ProcessCDR(1,14865490,1,1,2) [2025-04-08 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865490', 'tblTempUsageDetail_20' ) start [2025-04-08 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865490', 'tblTempUsageDetail_20' ) end [2025-04-08 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:14:22] Production.INFO: ==32538== Releasing lock... [2025-04-08 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:15:05 [end_date_ymd] => 2025-04-08 23:15:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:15:05' and `end` < '2025-04-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-04-08 23:15:18] Production.INFO: count ==518 [2025-04-08 23:15:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:15:05 - End Time 2025-04-08 23:15:05 [2025-04-08 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865495', 'tblTempUsageDetail_20' ) start [2025-04-08 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865495', 'tblTempUsageDetail_20' ) end [2025-04-08 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865495', 'tblTempVendorCDR_20' ) start [2025-04-08 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865495', 'tblTempVendorCDR_20' ) end [2025-04-08 23:15:18] Production.INFO: ProcessCDR(1,14865495,1,1,2) [2025-04-08 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865495', 'tblTempUsageDetail_20' ) start [2025-04-08 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865495', 'tblTempUsageDetail_20' ) end [2025-04-08 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:15:21] Production.INFO: ==32688== Releasing lock... [2025-04-08 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:16:05 [end_date_ymd] => 2025-04-08 23:16:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:16:05' and `end` < '2025-04-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-04-08 23:16:18] Production.INFO: count ==516 [2025-04-08 23:16:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:16:05 - End Time 2025-04-08 23:16:05 [2025-04-08 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865500', 'tblTempUsageDetail_20' ) start [2025-04-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865500', 'tblTempUsageDetail_20' ) end [2025-04-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865500', 'tblTempVendorCDR_20' ) start [2025-04-08 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865500', 'tblTempVendorCDR_20' ) end [2025-04-08 23:16:18] Production.INFO: ProcessCDR(1,14865500,1,1,2) [2025-04-08 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865500', 'tblTempUsageDetail_20' ) start [2025-04-08 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865500', 'tblTempUsageDetail_20' ) end [2025-04-08 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:16:21] Production.INFO: ==32762== Releasing lock... [2025-04-08 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:17:05 [end_date_ymd] => 2025-04-08 23:17:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:17:05' and `end` < '2025-04-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-04-08 23:17:18] Production.INFO: count ==514 [2025-04-08 23:17:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:17:05 - End Time 2025-04-08 23:17:05 [2025-04-08 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865505', 'tblTempUsageDetail_20' ) start [2025-04-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865505', 'tblTempUsageDetail_20' ) end [2025-04-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865505', 'tblTempVendorCDR_20' ) start [2025-04-08 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865505', 'tblTempVendorCDR_20' ) end [2025-04-08 23:17:18] Production.INFO: ProcessCDR(1,14865505,1,1,2) [2025-04-08 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865505', 'tblTempUsageDetail_20' ) start [2025-04-08 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865505', 'tblTempUsageDetail_20' ) end [2025-04-08 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:17:21] Production.INFO: ==383== Releasing lock... [2025-04-08 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:17:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:18:06 [end_date_ymd] => 2025-04-08 23:18:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:18:06' and `end` < '2025-04-08 23: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-04-08 23:18:19] Production.INFO: count ==510 [2025-04-08 23:18:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:18:06 - End Time 2025-04-08 23:18:06 [2025-04-08 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865510', 'tblTempUsageDetail_20' ) start [2025-04-08 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865510', 'tblTempUsageDetail_20' ) end [2025-04-08 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865510', 'tblTempVendorCDR_20' ) start [2025-04-08 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865510', 'tblTempVendorCDR_20' ) end [2025-04-08 23:18:19] Production.INFO: ProcessCDR(1,14865510,1,1,2) [2025-04-08 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865510', 'tblTempUsageDetail_20' ) start [2025-04-08 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865510', 'tblTempUsageDetail_20' ) end [2025-04-08 23:18:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:18:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:18:22] Production.INFO: ==460== Releasing lock... [2025-04-08 23:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:18:22] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:19:04 [end_date_ymd] => 2025-04-08 23:19:04 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:19:04' and `end` < '2025-04-08 23: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-04-08 23:19:17] Production.INFO: count ==510 [2025-04-08 23:19:17] Production.ERROR: pbx CDR StartTime 2025-04-08 20:19:04 - End Time 2025-04-08 23:19:04 [2025-04-08 23:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865515', 'tblTempUsageDetail_20' ) start [2025-04-08 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865515', 'tblTempUsageDetail_20' ) end [2025-04-08 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865515', 'tblTempVendorCDR_20' ) start [2025-04-08 23:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865515', 'tblTempVendorCDR_20' ) end [2025-04-08 23:19:17] Production.INFO: ProcessCDR(1,14865515,1,1,2) [2025-04-08 23:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865515', 'tblTempUsageDetail_20' ) start [2025-04-08 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865515', 'tblTempUsageDetail_20' ) end [2025-04-08 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:19:21] Production.INFO: ==577== Releasing lock... [2025-04-08 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:19:21] Production.INFO: 31.25 MB #Memory Used# [2025-04-08 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:20:06 [end_date_ymd] => 2025-04-08 23:20:06 [RateCDR] => 1 ) [2025-04-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-04-08 20:20:06' and `end` < '2025-04-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-04-08 23:20:19] Production.INFO: count ==500 [2025-04-08 23:20:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:20:06 - End Time 2025-04-08 23:20:06 [2025-04-08 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865521', 'tblTempUsageDetail_20' ) start [2025-04-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865521', 'tblTempUsageDetail_20' ) end [2025-04-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865521', 'tblTempVendorCDR_20' ) start [2025-04-08 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865521', 'tblTempVendorCDR_20' ) end [2025-04-08 23:20:19] Production.INFO: ProcessCDR(1,14865521,1,1,2) [2025-04-08 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865521', 'tblTempUsageDetail_20' ) start [2025-04-08 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865521', 'tblTempUsageDetail_20' ) end [2025-04-08 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:20:22] Production.INFO: ==664== Releasing lock... [2025-04-08 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:20:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:21:05 [end_date_ymd] => 2025-04-08 23:21:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:21:05' and `end` < '2025-04-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-04-08 23:21:18] Production.INFO: count ==484 [2025-04-08 23:21:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:21:05 - End Time 2025-04-08 23:21:05 [2025-04-08 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865526', 'tblTempUsageDetail_20' ) start [2025-04-08 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865526', 'tblTempUsageDetail_20' ) end [2025-04-08 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865526', 'tblTempVendorCDR_20' ) start [2025-04-08 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865526', 'tblTempVendorCDR_20' ) end [2025-04-08 23:21:18] Production.INFO: ProcessCDR(1,14865526,1,1,2) [2025-04-08 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865526', 'tblTempUsageDetail_20' ) start [2025-04-08 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865526', 'tblTempUsageDetail_20' ) end [2025-04-08 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:21:21] Production.INFO: ==761== Releasing lock... [2025-04-08 23:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:21:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:22:05 [end_date_ymd] => 2025-04-08 23:22:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:22:05' and `end` < '2025-04-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-04-08 23:22:18] Production.INFO: count ==484 [2025-04-08 23:22:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:22:05 - End Time 2025-04-08 23:22:05 [2025-04-08 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865531', 'tblTempUsageDetail_20' ) start [2025-04-08 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865531', 'tblTempUsageDetail_20' ) end [2025-04-08 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865531', 'tblTempVendorCDR_20' ) start [2025-04-08 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865531', 'tblTempVendorCDR_20' ) end [2025-04-08 23:22:18] Production.INFO: ProcessCDR(1,14865531,1,1,2) [2025-04-08 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865531', 'tblTempUsageDetail_20' ) start [2025-04-08 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865531', 'tblTempUsageDetail_20' ) end [2025-04-08 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:22:21] Production.INFO: ==833== Releasing lock... [2025-04-08 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:22:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 23:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:23:06 [end_date_ymd] => 2025-04-08 23:23:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:23:06' and `end` < '2025-04-08 23: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-04-08 23:23:18] Production.INFO: count ==484 [2025-04-08 23:23:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:23:06 - End Time 2025-04-08 23:23:06 [2025-04-08 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865536', 'tblTempUsageDetail_20' ) start [2025-04-08 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865536', 'tblTempUsageDetail_20' ) end [2025-04-08 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865536', 'tblTempVendorCDR_20' ) start [2025-04-08 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865536', 'tblTempVendorCDR_20' ) end [2025-04-08 23:23:19] Production.INFO: ProcessCDR(1,14865536,1,1,2) [2025-04-08 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865536', 'tblTempUsageDetail_20' ) start [2025-04-08 23:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865536', 'tblTempUsageDetail_20' ) end [2025-04-08 23:23:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:23:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:23:22] Production.INFO: ==908== Releasing lock... [2025-04-08 23:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:23:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:24:05 [end_date_ymd] => 2025-04-08 23:24:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:24:05' and `end` < '2025-04-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-04-08 23:24:18] Production.INFO: count ==484 [2025-04-08 23:24:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:24:05 - End Time 2025-04-08 23:24:05 [2025-04-08 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865541', 'tblTempUsageDetail_20' ) start [2025-04-08 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865541', 'tblTempUsageDetail_20' ) end [2025-04-08 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865541', 'tblTempVendorCDR_20' ) start [2025-04-08 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865541', 'tblTempVendorCDR_20' ) end [2025-04-08 23:24:18] Production.INFO: ProcessCDR(1,14865541,1,1,2) [2025-04-08 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865541', 'tblTempUsageDetail_20' ) start [2025-04-08 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865541', 'tblTempUsageDetail_20' ) end [2025-04-08 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:24:21] Production.INFO: ==981== Releasing lock... [2025-04-08 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:24:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:25:05 [end_date_ymd] => 2025-04-08 23:25:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:25:05' and `end` < '2025-04-08 23: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-04-08 23:25:18] Production.INFO: count ==484 [2025-04-08 23:25:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:25:05 - End Time 2025-04-08 23:25:05 [2025-04-08 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865546', 'tblTempUsageDetail_20' ) start [2025-04-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865546', 'tblTempUsageDetail_20' ) end [2025-04-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865546', 'tblTempVendorCDR_20' ) start [2025-04-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865546', 'tblTempVendorCDR_20' ) end [2025-04-08 23:25:18] Production.INFO: ProcessCDR(1,14865546,1,1,2) [2025-04-08 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865546', 'tblTempUsageDetail_20' ) start [2025-04-08 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865546', 'tblTempUsageDetail_20' ) end [2025-04-08 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:25:22] Production.INFO: ==1057== Releasing lock... [2025-04-08 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:25:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:26:05 [end_date_ymd] => 2025-04-08 23:26:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:26:05' and `end` < '2025-04-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-04-08 23:26:17] Production.INFO: count ==484 [2025-04-08 23:26:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:26:05 - End Time 2025-04-08 23:26:05 [2025-04-08 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865551', 'tblTempUsageDetail_20' ) start [2025-04-08 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865551', 'tblTempUsageDetail_20' ) end [2025-04-08 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865551', 'tblTempVendorCDR_20' ) start [2025-04-08 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865551', 'tblTempVendorCDR_20' ) end [2025-04-08 23:26:18] Production.INFO: ProcessCDR(1,14865551,1,1,2) [2025-04-08 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865551', 'tblTempUsageDetail_20' ) start [2025-04-08 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865551', 'tblTempUsageDetail_20' ) end [2025-04-08 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:26:21] Production.INFO: ==1127== Releasing lock... [2025-04-08 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:26:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:27:05 [end_date_ymd] => 2025-04-08 23:27:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:27:05' and `end` < '2025-04-08 23: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-04-08 23:27:18] Production.INFO: count ==484 [2025-04-08 23:27:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:27:05 - End Time 2025-04-08 23:27:05 [2025-04-08 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865556', 'tblTempUsageDetail_20' ) start [2025-04-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865556', 'tblTempUsageDetail_20' ) end [2025-04-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865556', 'tblTempVendorCDR_20' ) start [2025-04-08 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865556', 'tblTempVendorCDR_20' ) end [2025-04-08 23:27:18] Production.INFO: ProcessCDR(1,14865556,1,1,2) [2025-04-08 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865556', 'tblTempUsageDetail_20' ) start [2025-04-08 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865556', 'tblTempUsageDetail_20' ) end [2025-04-08 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:27:21] Production.INFO: ==1206== Releasing lock... [2025-04-08 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:27:21] Production.INFO: 31 MB #Memory Used# [2025-04-08 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:28:05 [end_date_ymd] => 2025-04-08 23:28:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:28:05' and `end` < '2025-04-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-04-08 23:28:18] Production.INFO: count ==485 [2025-04-08 23:28:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:28:05 - End Time 2025-04-08 23:28:05 [2025-04-08 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865561', 'tblTempUsageDetail_20' ) start [2025-04-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865561', 'tblTempUsageDetail_20' ) end [2025-04-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865561', 'tblTempVendorCDR_20' ) start [2025-04-08 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865561', 'tblTempVendorCDR_20' ) end [2025-04-08 23:28:18] Production.INFO: ProcessCDR(1,14865561,1,1,2) [2025-04-08 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865561', 'tblTempUsageDetail_20' ) start [2025-04-08 23:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865561', 'tblTempUsageDetail_20' ) end [2025-04-08 23:28:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:28:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:28:23] Production.INFO: ==1289== Releasing lock... [2025-04-08 23:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:28:23] Production.INFO: 31 MB #Memory Used# [2025-04-08 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:29:05 [end_date_ymd] => 2025-04-08 23:29:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:29:05' and `end` < '2025-04-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-04-08 23:29:18] Production.INFO: count ==483 [2025-04-08 23:29:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:29:05 - End Time 2025-04-08 23:29:05 [2025-04-08 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865566', 'tblTempUsageDetail_20' ) start [2025-04-08 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865566', 'tblTempUsageDetail_20' ) end [2025-04-08 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865566', 'tblTempVendorCDR_20' ) start [2025-04-08 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865566', 'tblTempVendorCDR_20' ) end [2025-04-08 23:29:18] Production.INFO: ProcessCDR(1,14865566,1,1,2) [2025-04-08 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865566', 'tblTempUsageDetail_20' ) start [2025-04-08 23:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865566', 'tblTempUsageDetail_20' ) end [2025-04-08 23:29:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:29:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:29:22] Production.INFO: ==1362== Releasing lock... [2025-04-08 23:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:29:22] Production.INFO: 31 MB #Memory Used# [2025-04-08 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:30:05 [end_date_ymd] => 2025-04-08 23:30:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:30:05' and `end` < '2025-04-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-04-08 23:30:18] Production.INFO: count ==475 [2025-04-08 23:30:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:30:05 - End Time 2025-04-08 23:30:05 [2025-04-08 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865572', 'tblTempUsageDetail_20' ) start [2025-04-08 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865572', 'tblTempUsageDetail_20' ) end [2025-04-08 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865572', 'tblTempVendorCDR_20' ) start [2025-04-08 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865572', 'tblTempVendorCDR_20' ) end [2025-04-08 23:30:18] Production.INFO: ProcessCDR(1,14865572,1,1,2) [2025-04-08 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865572', 'tblTempUsageDetail_20' ) start [2025-04-08 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865572', 'tblTempUsageDetail_20' ) end [2025-04-08 23:30:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:30:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:30:22] Production.INFO: ==1438== Releasing lock... [2025-04-08 23:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:30:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:31:05 [end_date_ymd] => 2025-04-08 23:31:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:31:05' and `end` < '2025-04-08 23: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-04-08 23:31:18] Production.INFO: count ==444 [2025-04-08 23:31:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:31:05 - End Time 2025-04-08 23:31:05 [2025-04-08 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865577', 'tblTempUsageDetail_20' ) start [2025-04-08 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865577', 'tblTempUsageDetail_20' ) end [2025-04-08 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865577', 'tblTempVendorCDR_20' ) start [2025-04-08 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865577', 'tblTempVendorCDR_20' ) end [2025-04-08 23:31:18] Production.INFO: ProcessCDR(1,14865577,1,1,2) [2025-04-08 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865577', 'tblTempUsageDetail_20' ) start [2025-04-08 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865577', 'tblTempUsageDetail_20' ) end [2025-04-08 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:31:21] Production.INFO: ==1541== Releasing lock... [2025-04-08 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:32:06 [end_date_ymd] => 2025-04-08 23:32:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:32:06' and `end` < '2025-04-08 23: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-04-08 23:32:18] Production.INFO: count ==444 [2025-04-08 23:32:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:32:06 - End Time 2025-04-08 23:32:06 [2025-04-08 23:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865582', 'tblTempUsageDetail_20' ) start [2025-04-08 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865582', 'tblTempUsageDetail_20' ) end [2025-04-08 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865582', 'tblTempVendorCDR_20' ) start [2025-04-08 23:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865582', 'tblTempVendorCDR_20' ) end [2025-04-08 23:32:19] Production.INFO: ProcessCDR(1,14865582,1,1,2) [2025-04-08 23:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865582', 'tblTempUsageDetail_20' ) start [2025-04-08 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865582', 'tblTempUsageDetail_20' ) end [2025-04-08 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:32:22] Production.INFO: ==1619== Releasing lock... [2025-04-08 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:33:05 [end_date_ymd] => 2025-04-08 23:33:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:33:05' and `end` < '2025-04-08 23: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-04-08 23:33:18] Production.INFO: count ==444 [2025-04-08 23:33:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:33:05 - End Time 2025-04-08 23:33:05 [2025-04-08 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865587', 'tblTempUsageDetail_20' ) start [2025-04-08 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865587', 'tblTempUsageDetail_20' ) end [2025-04-08 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865587', 'tblTempVendorCDR_20' ) start [2025-04-08 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865587', 'tblTempVendorCDR_20' ) end [2025-04-08 23:33:18] Production.INFO: ProcessCDR(1,14865587,1,1,2) [2025-04-08 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865587', 'tblTempUsageDetail_20' ) start [2025-04-08 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865587', 'tblTempUsageDetail_20' ) end [2025-04-08 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:33:22] Production.INFO: ==1698== Releasing lock... [2025-04-08 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:33:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:34:06 [end_date_ymd] => 2025-04-08 23:34:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:34:06' and `end` < '2025-04-08 23: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-04-08 23:34:19] Production.INFO: count ==454 [2025-04-08 23:34:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:34:06 - End Time 2025-04-08 23:34:06 [2025-04-08 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865592', 'tblTempUsageDetail_20' ) start [2025-04-08 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865592', 'tblTempUsageDetail_20' ) end [2025-04-08 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865592', 'tblTempVendorCDR_20' ) start [2025-04-08 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865592', 'tblTempVendorCDR_20' ) end [2025-04-08 23:34:19] Production.INFO: ProcessCDR(1,14865592,1,1,2) [2025-04-08 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865592', 'tblTempUsageDetail_20' ) start [2025-04-08 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865592', 'tblTempUsageDetail_20' ) end [2025-04-08 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:34:22] Production.INFO: ==1809== Releasing lock... [2025-04-08 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:34:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:35:05 [end_date_ymd] => 2025-04-08 23:35:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:35:05' and `end` < '2025-04-08 23: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-04-08 23:35:17] Production.INFO: count ==451 [2025-04-08 23:35:17] Production.ERROR: pbx CDR StartTime 2025-04-08 20:35:05 - End Time 2025-04-08 23:35:05 [2025-04-08 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865597', 'tblTempUsageDetail_20' ) start [2025-04-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865597', 'tblTempUsageDetail_20' ) end [2025-04-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865597', 'tblTempVendorCDR_20' ) start [2025-04-08 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865597', 'tblTempVendorCDR_20' ) end [2025-04-08 23:35:17] Production.INFO: ProcessCDR(1,14865597,1,1,2) [2025-04-08 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865597', 'tblTempUsageDetail_20' ) start [2025-04-08 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865597', 'tblTempUsageDetail_20' ) end [2025-04-08 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:35:21] Production.INFO: ==1885== Releasing lock... [2025-04-08 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:36:05 [end_date_ymd] => 2025-04-08 23:36:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:36:05' and `end` < '2025-04-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-04-08 23:36:18] Production.INFO: count ==451 [2025-04-08 23:36:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:36:05 - End Time 2025-04-08 23:36:05 [2025-04-08 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865602', 'tblTempUsageDetail_20' ) start [2025-04-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865602', 'tblTempUsageDetail_20' ) end [2025-04-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865602', 'tblTempVendorCDR_20' ) start [2025-04-08 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865602', 'tblTempVendorCDR_20' ) end [2025-04-08 23:36:18] Production.INFO: ProcessCDR(1,14865602,1,1,2) [2025-04-08 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865602', 'tblTempUsageDetail_20' ) start [2025-04-08 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865602', 'tblTempUsageDetail_20' ) end [2025-04-08 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:36:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:36:22] Production.INFO: ==1959== Releasing lock... [2025-04-08 23:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:36:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:37:05 [end_date_ymd] => 2025-04-08 23:37:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:37:05' and `end` < '2025-04-08 23: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-04-08 23:37:18] Production.INFO: count ==450 [2025-04-08 23:37:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:37:05 - End Time 2025-04-08 23:37:05 [2025-04-08 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865607', 'tblTempUsageDetail_20' ) start [2025-04-08 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865607', 'tblTempUsageDetail_20' ) end [2025-04-08 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865607', 'tblTempVendorCDR_20' ) start [2025-04-08 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865607', 'tblTempVendorCDR_20' ) end [2025-04-08 23:37:18] Production.INFO: ProcessCDR(1,14865607,1,1,2) [2025-04-08 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865607', 'tblTempUsageDetail_20' ) start [2025-04-08 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865607', 'tblTempUsageDetail_20' ) end [2025-04-08 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:37:21] Production.INFO: ==2028== Releasing lock... [2025-04-08 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:37:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:38:06 [end_date_ymd] => 2025-04-08 23:38:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:38:06' and `end` < '2025-04-08 23: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-04-08 23:38:18] Production.INFO: count ==450 [2025-04-08 23:38:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:38:06 - End Time 2025-04-08 23:38:06 [2025-04-08 23:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865612', 'tblTempUsageDetail_20' ) start [2025-04-08 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865612', 'tblTempUsageDetail_20' ) end [2025-04-08 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865612', 'tblTempVendorCDR_20' ) start [2025-04-08 23:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865612', 'tblTempVendorCDR_20' ) end [2025-04-08 23:38:19] Production.INFO: ProcessCDR(1,14865612,1,1,2) [2025-04-08 23:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865612', 'tblTempUsageDetail_20' ) start [2025-04-08 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865612', 'tblTempUsageDetail_20' ) end [2025-04-08 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:38:22] Production.INFO: ==2103== Releasing lock... [2025-04-08 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:38:22] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:39:05 [end_date_ymd] => 2025-04-08 23:39:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:39:05' and `end` < '2025-04-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-04-08 23:39:18] Production.INFO: count ==448 [2025-04-08 23:39:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:39:05 - End Time 2025-04-08 23:39:05 [2025-04-08 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865617', 'tblTempUsageDetail_20' ) start [2025-04-08 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865617', 'tblTempUsageDetail_20' ) end [2025-04-08 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865617', 'tblTempVendorCDR_20' ) start [2025-04-08 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865617', 'tblTempVendorCDR_20' ) end [2025-04-08 23:39:18] Production.INFO: ProcessCDR(1,14865617,1,1,2) [2025-04-08 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865617', 'tblTempUsageDetail_20' ) start [2025-04-08 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865617', 'tblTempUsageDetail_20' ) end [2025-04-08 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:39:21] Production.INFO: ==2175== Releasing lock... [2025-04-08 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:40:06 [end_date_ymd] => 2025-04-08 23:40:06 [RateCDR] => 1 ) [2025-04-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-04-08 20:40:06' and `end` < '2025-04-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-04-08 23:40:19] Production.INFO: count ==447 [2025-04-08 23:40:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:40:06 - End Time 2025-04-08 23:40:06 [2025-04-08 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865623', 'tblTempUsageDetail_20' ) start [2025-04-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865623', 'tblTempUsageDetail_20' ) end [2025-04-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865623', 'tblTempVendorCDR_20' ) start [2025-04-08 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865623', 'tblTempVendorCDR_20' ) end [2025-04-08 23:40:19] Production.INFO: ProcessCDR(1,14865623,1,1,2) [2025-04-08 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865623', 'tblTempUsageDetail_20' ) start [2025-04-08 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865623', 'tblTempUsageDetail_20' ) end [2025-04-08 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:40:23] Production.INFO: ==2251== Releasing lock... [2025-04-08 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:40:23] Production.INFO: 30.75 MB #Memory Used# [2025-04-08 23:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:41:06 [end_date_ymd] => 2025-04-08 23:41:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:41:06' and `end` < '2025-04-08 23: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-04-08 23:41:18] Production.INFO: count ==429 [2025-04-08 23:41:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:41:06 - End Time 2025-04-08 23:41:06 [2025-04-08 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865628', 'tblTempUsageDetail_20' ) start [2025-04-08 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865628', 'tblTempUsageDetail_20' ) end [2025-04-08 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865628', 'tblTempVendorCDR_20' ) start [2025-04-08 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865628', 'tblTempVendorCDR_20' ) end [2025-04-08 23:41:18] Production.INFO: ProcessCDR(1,14865628,1,1,2) [2025-04-08 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865628', 'tblTempUsageDetail_20' ) start [2025-04-08 23:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865628', 'tblTempUsageDetail_20' ) end [2025-04-08 23:41:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:41:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:41:23] Production.INFO: ==2327== Releasing lock... [2025-04-08 23:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:41:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:42:05 [end_date_ymd] => 2025-04-08 23:42:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:42:05' and `end` < '2025-04-08 23: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-04-08 23:42:18] Production.INFO: count ==427 [2025-04-08 23:42:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:42:05 - End Time 2025-04-08 23:42:05 [2025-04-08 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865633', 'tblTempUsageDetail_20' ) start [2025-04-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865633', 'tblTempUsageDetail_20' ) end [2025-04-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865633', 'tblTempVendorCDR_20' ) start [2025-04-08 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865633', 'tblTempVendorCDR_20' ) end [2025-04-08 23:42:18] Production.INFO: ProcessCDR(1,14865633,1,1,2) [2025-04-08 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865633', 'tblTempUsageDetail_20' ) start [2025-04-08 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865633', 'tblTempUsageDetail_20' ) end [2025-04-08 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:42:22] Production.INFO: ==2399== Releasing lock... [2025-04-08 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:43:05 [end_date_ymd] => 2025-04-08 23:43:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:43:05' and `end` < '2025-04-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-04-08 23:43:18] Production.INFO: count ==427 [2025-04-08 23:43:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:43:05 - End Time 2025-04-08 23:43:05 [2025-04-08 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865638', 'tblTempUsageDetail_20' ) start [2025-04-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865638', 'tblTempUsageDetail_20' ) end [2025-04-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865638', 'tblTempVendorCDR_20' ) start [2025-04-08 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865638', 'tblTempVendorCDR_20' ) end [2025-04-08 23:43:18] Production.INFO: ProcessCDR(1,14865638,1,1,2) [2025-04-08 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865638', 'tblTempUsageDetail_20' ) start [2025-04-08 23:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865638', 'tblTempUsageDetail_20' ) end [2025-04-08 23:43:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:43:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:43:23] Production.INFO: ==2472== Releasing lock... [2025-04-08 23:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:43:23] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:44:05 [end_date_ymd] => 2025-04-08 23:44:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:44:05' and `end` < '2025-04-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-04-08 23:44:18] Production.INFO: count ==427 [2025-04-08 23:44:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:44:05 - End Time 2025-04-08 23:44:05 [2025-04-08 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865643', 'tblTempUsageDetail_20' ) start [2025-04-08 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865643', 'tblTempUsageDetail_20' ) end [2025-04-08 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865643', 'tblTempVendorCDR_20' ) start [2025-04-08 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865643', 'tblTempVendorCDR_20' ) end [2025-04-08 23:44:18] Production.INFO: ProcessCDR(1,14865643,1,1,2) [2025-04-08 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865643', 'tblTempUsageDetail_20' ) start [2025-04-08 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865643', 'tblTempUsageDetail_20' ) end [2025-04-08 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:44:21] Production.INFO: ==2544== Releasing lock... [2025-04-08 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:45:05 [end_date_ymd] => 2025-04-08 23:45:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:45:05' and `end` < '2025-04-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-04-08 23:45:18] Production.INFO: count ==427 [2025-04-08 23:45:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:45:05 - End Time 2025-04-08 23:45:05 [2025-04-08 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865648', 'tblTempUsageDetail_20' ) start [2025-04-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865648', 'tblTempUsageDetail_20' ) end [2025-04-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865648', 'tblTempVendorCDR_20' ) start [2025-04-08 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865648', 'tblTempVendorCDR_20' ) end [2025-04-08 23:45:18] Production.INFO: ProcessCDR(1,14865648,1,1,2) [2025-04-08 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865648', 'tblTempUsageDetail_20' ) start [2025-04-08 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865648', 'tblTempUsageDetail_20' ) end [2025-04-08 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:45:21] Production.INFO: ==2620== Releasing lock... [2025-04-08 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:46:05 [end_date_ymd] => 2025-04-08 23:46:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:46:05' and `end` < '2025-04-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-04-08 23:46:18] Production.INFO: count ==426 [2025-04-08 23:46:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:46:05 - End Time 2025-04-08 23:46:05 [2025-04-08 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865653', 'tblTempUsageDetail_20' ) start [2025-04-08 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865653', 'tblTempUsageDetail_20' ) end [2025-04-08 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865653', 'tblTempVendorCDR_20' ) start [2025-04-08 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865653', 'tblTempVendorCDR_20' ) end [2025-04-08 23:46:18] Production.INFO: ProcessCDR(1,14865653,1,1,2) [2025-04-08 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865653', 'tblTempUsageDetail_20' ) start [2025-04-08 23:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865653', 'tblTempUsageDetail_20' ) end [2025-04-08 23:46:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:46:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:46:22] Production.INFO: ==2693== Releasing lock... [2025-04-08 23:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:46:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:47:05 [end_date_ymd] => 2025-04-08 23:47:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:47:05' and `end` < '2025-04-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-04-08 23:47:17] Production.INFO: count ==426 [2025-04-08 23:47:17] Production.ERROR: pbx CDR StartTime 2025-04-08 20:47:05 - End Time 2025-04-08 23:47:05 [2025-04-08 23:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865658', 'tblTempUsageDetail_20' ) start [2025-04-08 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865658', 'tblTempUsageDetail_20' ) end [2025-04-08 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865658', 'tblTempVendorCDR_20' ) start [2025-04-08 23:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865658', 'tblTempVendorCDR_20' ) end [2025-04-08 23:47:17] Production.INFO: ProcessCDR(1,14865658,1,1,2) [2025-04-08 23:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865658', 'tblTempUsageDetail_20' ) start [2025-04-08 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865658', 'tblTempUsageDetail_20' ) end [2025-04-08 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:47:21] Production.INFO: ==2765== Releasing lock... [2025-04-08 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:47:21] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:48:05 [end_date_ymd] => 2025-04-08 23:48:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:48:05' and `end` < '2025-04-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-04-08 23:48:18] Production.INFO: count ==425 [2025-04-08 23:48:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:48:05 - End Time 2025-04-08 23:48:05 [2025-04-08 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865663', 'tblTempUsageDetail_20' ) start [2025-04-08 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865663', 'tblTempUsageDetail_20' ) end [2025-04-08 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865663', 'tblTempVendorCDR_20' ) start [2025-04-08 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865663', 'tblTempVendorCDR_20' ) end [2025-04-08 23:48:18] Production.INFO: ProcessCDR(1,14865663,1,1,2) [2025-04-08 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865663', 'tblTempUsageDetail_20' ) start [2025-04-08 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865663', 'tblTempUsageDetail_20' ) end [2025-04-08 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:48:22] Production.INFO: ==2837== Releasing lock... [2025-04-08 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:48:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 23:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:49:04 [end_date_ymd] => 2025-04-08 23:49:04 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:49:04' and `end` < '2025-04-08 23: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-04-08 23:49:17] Production.INFO: count ==425 [2025-04-08 23:49:17] Production.ERROR: pbx CDR StartTime 2025-04-08 20:49:04 - End Time 2025-04-08 23:49:04 [2025-04-08 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865668', 'tblTempUsageDetail_20' ) start [2025-04-08 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865668', 'tblTempUsageDetail_20' ) end [2025-04-08 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865668', 'tblTempVendorCDR_20' ) start [2025-04-08 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865668', 'tblTempVendorCDR_20' ) end [2025-04-08 23:49:17] Production.INFO: ProcessCDR(1,14865668,1,1,2) [2025-04-08 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865668', 'tblTempUsageDetail_20' ) start [2025-04-08 23:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865668', 'tblTempUsageDetail_20' ) end [2025-04-08 23:49:20] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:49:20] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:49:20] Production.INFO: ==2949== Releasing lock... [2025-04-08 23:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:49:20] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:50:05 [end_date_ymd] => 2025-04-08 23:50:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:50:05' and `end` < '2025-04-08 23: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-04-08 23:50:18] Production.INFO: count ==425 [2025-04-08 23:50:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:50:05 - End Time 2025-04-08 23:50:05 [2025-04-08 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865673', 'tblTempUsageDetail_20' ) start [2025-04-08 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865673', 'tblTempUsageDetail_20' ) end [2025-04-08 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865673', 'tblTempVendorCDR_20' ) start [2025-04-08 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865673', 'tblTempVendorCDR_20' ) end [2025-04-08 23:50:18] Production.INFO: ProcessCDR(1,14865673,1,1,2) [2025-04-08 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865673', 'tblTempUsageDetail_20' ) start [2025-04-08 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865673', 'tblTempUsageDetail_20' ) end [2025-04-08 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:50:22] Production.INFO: ==3024== Releasing lock... [2025-04-08 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:50:22] Production.INFO: 30.5 MB #Memory Used# [2025-04-08 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:51:05 [end_date_ymd] => 2025-04-08 23:51:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:51:05' and `end` < '2025-04-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-04-08 23:51:18] Production.INFO: count ==407 [2025-04-08 23:51:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:51:05 - End Time 2025-04-08 23:51:05 [2025-04-08 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865679', 'tblTempUsageDetail_20' ) start [2025-04-08 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865679', 'tblTempUsageDetail_20' ) end [2025-04-08 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865679', 'tblTempVendorCDR_20' ) start [2025-04-08 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865679', 'tblTempVendorCDR_20' ) end [2025-04-08 23:51:18] Production.INFO: ProcessCDR(1,14865679,1,1,2) [2025-04-08 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865679', 'tblTempUsageDetail_20' ) start [2025-04-08 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865679', 'tblTempUsageDetail_20' ) end [2025-04-08 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:51:22] Production.INFO: ==3101== Releasing lock... [2025-04-08 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:51:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 23:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:52:04 [end_date_ymd] => 2025-04-08 23:52:04 [RateCDR] => 1 ) [2025-04-08 23:52: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-04-08 20:52:04' and `end` < '2025-04-08 23:52: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-04-08 23:52:17] Production.INFO: count ==407 [2025-04-08 23:52:17] Production.ERROR: pbx CDR StartTime 2025-04-08 20:52:04 - End Time 2025-04-08 23:52:04 [2025-04-08 23:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865684', 'tblTempUsageDetail_20' ) start [2025-04-08 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865684', 'tblTempUsageDetail_20' ) end [2025-04-08 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865684', 'tblTempVendorCDR_20' ) start [2025-04-08 23:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865684', 'tblTempVendorCDR_20' ) end [2025-04-08 23:52:17] Production.INFO: ProcessCDR(1,14865684,1,1,2) [2025-04-08 23:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865684', 'tblTempUsageDetail_20' ) start [2025-04-08 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865684', 'tblTempUsageDetail_20' ) end [2025-04-08 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:52:21] Production.INFO: ==3174== Releasing lock... [2025-04-08 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 23:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:53:06 [end_date_ymd] => 2025-04-08 23:53:06 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:53:06' and `end` < '2025-04-08 23: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-04-08 23:53:19] Production.INFO: count ==406 [2025-04-08 23:53:19] Production.ERROR: pbx CDR StartTime 2025-04-08 20:53:06 - End Time 2025-04-08 23:53:06 [2025-04-08 23:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865689', 'tblTempUsageDetail_20' ) start [2025-04-08 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865689', 'tblTempUsageDetail_20' ) end [2025-04-08 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865689', 'tblTempVendorCDR_20' ) start [2025-04-08 23:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865689', 'tblTempVendorCDR_20' ) end [2025-04-08 23:53:19] Production.INFO: ProcessCDR(1,14865689,1,1,2) [2025-04-08 23:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865689', 'tblTempUsageDetail_20' ) start [2025-04-08 23:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865689', 'tblTempUsageDetail_20' ) end [2025-04-08 23:53:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:53:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:53:22] Production.INFO: ==3247== Releasing lock... [2025-04-08 23:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:54:05 [end_date_ymd] => 2025-04-08 23:54:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:54:05' and `end` < '2025-04-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-04-08 23:54:18] Production.INFO: count ==406 [2025-04-08 23:54:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:54:05 - End Time 2025-04-08 23:54:05 [2025-04-08 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865694', 'tblTempUsageDetail_20' ) start [2025-04-08 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865694', 'tblTempUsageDetail_20' ) end [2025-04-08 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865694', 'tblTempVendorCDR_20' ) start [2025-04-08 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865694', 'tblTempVendorCDR_20' ) end [2025-04-08 23:54:18] Production.INFO: ProcessCDR(1,14865694,1,1,2) [2025-04-08 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865694', 'tblTempUsageDetail_20' ) start [2025-04-08 23:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865694', 'tblTempUsageDetail_20' ) end [2025-04-08 23:54:23] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:54:23] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:54:23] Production.INFO: ==3318== Releasing lock... [2025-04-08 23:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:54:23] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:55:05 [end_date_ymd] => 2025-04-08 23:55:05 [RateCDR] => 1 ) [2025-04-08 23: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-04-08 20:55:05' and `end` < '2025-04-08 23: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-04-08 23:55:18] Production.INFO: count ==405 [2025-04-08 23:55:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:55:05 - End Time 2025-04-08 23:55:05 [2025-04-08 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865699', 'tblTempUsageDetail_20' ) start [2025-04-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865699', 'tblTempUsageDetail_20' ) end [2025-04-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865699', 'tblTempVendorCDR_20' ) start [2025-04-08 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865699', 'tblTempVendorCDR_20' ) end [2025-04-08 23:55:18] Production.INFO: ProcessCDR(1,14865699,1,1,2) [2025-04-08 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865699', 'tblTempUsageDetail_20' ) start [2025-04-08 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865699', 'tblTempUsageDetail_20' ) end [2025-04-08 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:55:22] Production.INFO: ==3391== Releasing lock... [2025-04-08 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:55:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:56:05 [end_date_ymd] => 2025-04-08 23:56:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:56:05' and `end` < '2025-04-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-04-08 23:56:17] Production.INFO: count ==405 [2025-04-08 23:56:17] Production.ERROR: pbx CDR StartTime 2025-04-08 20:56:05 - End Time 2025-04-08 23:56:05 [2025-04-08 23:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865704', 'tblTempUsageDetail_20' ) start [2025-04-08 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865704', 'tblTempUsageDetail_20' ) end [2025-04-08 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865704', 'tblTempVendorCDR_20' ) start [2025-04-08 23:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865704', 'tblTempVendorCDR_20' ) end [2025-04-08 23:56:17] Production.INFO: ProcessCDR(1,14865704,1,1,2) [2025-04-08 23:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865704', 'tblTempUsageDetail_20' ) start [2025-04-08 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865704', 'tblTempUsageDetail_20' ) end [2025-04-08 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:56:21] Production.INFO: ==3463== Releasing lock... [2025-04-08 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:57:05 [end_date_ymd] => 2025-04-08 23:57:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:57:05' and `end` < '2025-04-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-04-08 23:57:18] Production.INFO: count ==405 [2025-04-08 23:57:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:57:05 - End Time 2025-04-08 23:57:05 [2025-04-08 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865709', 'tblTempUsageDetail_20' ) start [2025-04-08 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865709', 'tblTempUsageDetail_20' ) end [2025-04-08 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865709', 'tblTempVendorCDR_20' ) start [2025-04-08 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865709', 'tblTempVendorCDR_20' ) end [2025-04-08 23:57:18] Production.INFO: ProcessCDR(1,14865709,1,1,2) [2025-04-08 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865709', 'tblTempUsageDetail_20' ) start [2025-04-08 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865709', 'tblTempUsageDetail_20' ) end [2025-04-08 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:57:22] Production.INFO: ==3536== Releasing lock... [2025-04-08 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:57:22] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:58:05 [end_date_ymd] => 2025-04-08 23:58:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:58:05' and `end` < '2025-04-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-04-08 23:58:18] Production.INFO: count ==405 [2025-04-08 23:58:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:58:05 - End Time 2025-04-08 23:58:05 [2025-04-08 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865714', 'tblTempUsageDetail_20' ) start [2025-04-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865714', 'tblTempUsageDetail_20' ) end [2025-04-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865714', 'tblTempVendorCDR_20' ) start [2025-04-08 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865714', 'tblTempVendorCDR_20' ) end [2025-04-08 23:58:18] Production.INFO: ProcessCDR(1,14865714,1,1,2) [2025-04-08 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865714', 'tblTempUsageDetail_20' ) start [2025-04-08 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865714', 'tblTempUsageDetail_20' ) end [2025-04-08 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:58:21] Production.INFO: ==3607== Releasing lock... [2025-04-08 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:58:21] Production.INFO: 30.25 MB #Memory Used# [2025-04-08 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-04-08 20:59:05 [end_date_ymd] => 2025-04-08 23:59:05 [RateCDR] => 1 ) [2025-04-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-04-08 20:59:05' and `end` < '2025-04-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-04-08 23:59:18] Production.INFO: count ==405 [2025-04-08 23:59:18] Production.ERROR: pbx CDR StartTime 2025-04-08 20:59:05 - End Time 2025-04-08 23:59:05 [2025-04-08 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-04-08 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865719', 'tblTempUsageDetail_20' ) start [2025-04-08 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14865719', 'tblTempUsageDetail_20' ) end [2025-04-08 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865719', 'tblTempVendorCDR_20' ) start [2025-04-08 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14865719', 'tblTempVendorCDR_20' ) end [2025-04-08 23:59:18] Production.INFO: ProcessCDR(1,14865719,1,1,2) [2025-04-08 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14865719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14865719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-04-08 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14865719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14865719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-04-08 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865719', 'tblTempUsageDetail_20' ) start [2025-04-08 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14865719', 'tblTempUsageDetail_20' ) end [2025-04-08 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-04-08 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-04-08 23:59:21] Production.INFO: ==3680== Releasing lock... [2025-04-08 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-04-08 23:59:21] Production.INFO: 30.25 MB #Memory Used#