[2025-07-08 00:25:04] Production.INFO: next invoice date [2025-07-08 00:25:04] Production.INFO: 2025-08-08 [2025-07-08 00:25:04] Production.INFO: getdaysdiff [2025-07-08 00:25:04] Production.INFO: +31 [2025-07-08 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (144,20,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:04] Production.INFO: next invoice date [2025-07-08 00:25:04] Production.INFO: 2025-08-08 [2025-07-08 00:25:04] Production.INFO: getdaysdiff [2025-07-08 00:25:04] Production.INFO: +31 [2025-07-08 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (211,11,1,31,31,'RMScheduler',2025-07-08 00:25:04,0,0,,,0) [2025-07-08 00:25:04] Production.INFO: next invoice date [2025-07-08 00:25:04] Production.INFO: 2025-08-08 [2025-07-08 00:25:04] Production.INFO: getdaysdiff [2025-07-08 00:25:04] Production.INFO: +31 [2025-07-08 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (211,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,0,0,,,0) [2025-07-08 00:25:05] Production.INFO: next invoice date [2025-07-08 00:25:05] Production.INFO: 2025-08-08 [2025-07-08 00:25:05] Production.INFO: getdaysdiff [2025-07-08 00:25:05] Production.INFO: +31 [2025-07-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (219,11,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:05] Production.INFO: next invoice date [2025-07-08 00:25:05] Production.INFO: 2025-08-08 [2025-07-08 00:25:05] Production.INFO: getdaysdiff [2025-07-08 00:25:05] Production.INFO: +31 [2025-07-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (219,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:05] Production.INFO: next invoice date [2025-07-08 00:25:05] Production.INFO: 2025-08-08 [2025-07-08 00:25:05] Production.INFO: getdaysdiff [2025-07-08 00:25:05] Production.INFO: +31 [2025-07-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (220,11,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:05] Production.INFO: next invoice date [2025-07-08 00:25:05] Production.INFO: 2025-08-08 [2025-07-08 00:25:05] Production.INFO: getdaysdiff [2025-07-08 00:25:05] Production.INFO: +31 [2025-07-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (220,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:05] Production.INFO: next invoice date [2025-07-08 00:25:05] Production.INFO: 2025-08-08 [2025-07-08 00:25:05] Production.INFO: getdaysdiff [2025-07-08 00:25:05] Production.INFO: +31 [2025-07-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (221,11,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:05] Production.INFO: next invoice date [2025-07-08 00:25:05] Production.INFO: 2025-08-08 [2025-07-08 00:25:05] Production.INFO: getdaysdiff [2025-07-08 00:25:05] Production.INFO: +31 [2025-07-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (221,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:05] Production.INFO: next invoice date [2025-07-08 00:25:05] Production.INFO: 2025-08-08 [2025-07-08 00:25:05] Production.INFO: getdaysdiff [2025-07-08 00:25:05] Production.INFO: +31 [2025-07-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (222,11,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:06] Production.INFO: next invoice date [2025-07-08 00:25:06] Production.INFO: 2025-08-08 [2025-07-08 00:25:06] Production.INFO: getdaysdiff [2025-07-08 00:25:06] Production.INFO: +31 [2025-07-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (222,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:06] Production.INFO: next invoice date [2025-07-08 00:25:06] Production.INFO: 2025-08-08 [2025-07-08 00:25:06] Production.INFO: getdaysdiff [2025-07-08 00:25:06] Production.INFO: +31 [2025-07-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (223,11,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:06] Production.INFO: next invoice date [2025-07-08 00:25:06] Production.INFO: 2025-08-08 [2025-07-08 00:25:06] Production.INFO: getdaysdiff [2025-07-08 00:25:06] Production.INFO: +31 [2025-07-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (223,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:06] Production.INFO: next invoice date [2025-07-08 00:25:06] Production.INFO: 2025-08-08 [2025-07-08 00:25:06] Production.INFO: getdaysdiff [2025-07-08 00:25:06] Production.INFO: +31 [2025-07-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (224,11,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:06] Production.INFO: next invoice date [2025-07-08 00:25:06] Production.INFO: 2025-08-08 [2025-07-08 00:25:06] Production.INFO: getdaysdiff [2025-07-08 00:25:06] Production.INFO: +31 [2025-07-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (224,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:06] Production.INFO: next invoice date [2025-07-08 00:25:06] Production.INFO: 2025-08-08 [2025-07-08 00:25:06] Production.INFO: getdaysdiff [2025-07-08 00:25:06] Production.INFO: +31 [2025-07-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (227,11,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:06] Production.INFO: next invoice date [2025-07-08 00:25:06] Production.INFO: 2025-08-08 [2025-07-08 00:25:06] Production.INFO: getdaysdiff [2025-07-08 00:25:06] Production.INFO: +31 [2025-07-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:06] Production.INFO: next invoice date [2025-07-08 00:25:06] Production.INFO: 2025-08-08 [2025-07-08 00:25:06] Production.INFO: getdaysdiff [2025-07-08 00:25:06] Production.INFO: +31 [2025-07-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (233,16,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:06] Production.INFO: next invoice date [2025-07-08 00:25:06] Production.INFO: 2025-08-08 [2025-07-08 00:25:06] Production.INFO: getdaysdiff [2025-07-08 00:25:06] Production.INFO: +31 [2025-07-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (233,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:07] Production.INFO: next invoice date [2025-07-08 00:25:07] Production.INFO: 2025-08-08 [2025-07-08 00:25:07] Production.INFO: getdaysdiff [2025-07-08 00:25:07] Production.INFO: +31 [2025-07-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (238,16,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:07] Production.INFO: next invoice date [2025-07-08 00:25:07] Production.INFO: 2025-08-08 [2025-07-08 00:25:07] Production.INFO: getdaysdiff [2025-07-08 00:25:07] Production.INFO: +31 [2025-07-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (238,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:07] Production.INFO: next invoice date [2025-07-08 00:25:07] Production.INFO: 2025-08-08 [2025-07-08 00:25:07] Production.INFO: getdaysdiff [2025-07-08 00:25:07] Production.INFO: +31 [2025-07-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (227,16,1,31,31,'RMScheduler',2025-07-08 00:25:04,0,0,,,0) [2025-07-08 00:25:07] Production.INFO: next invoice date [2025-07-08 00:25:07] Production.INFO: 2025-08-08 [2025-07-08 00:25:07] Production.INFO: getdaysdiff [2025-07-08 00:25:07] Production.INFO: +31 [2025-07-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,0,0,,,0) [2025-07-08 00:25:07] Production.INFO: next invoice date [2025-07-08 00:25:07] Production.INFO: 2025-08-08 [2025-07-08 00:25:07] Production.INFO: getdaysdiff [2025-07-08 00:25:07] Production.INFO: +31 [2025-07-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (242,16,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:07] Production.INFO: next invoice date [2025-07-08 00:25:07] Production.INFO: 2025-08-08 [2025-07-08 00:25:07] Production.INFO: getdaysdiff [2025-07-08 00:25:07] Production.INFO: +31 [2025-07-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (242,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:07] Production.INFO: next invoice date [2025-07-08 00:25:07] Production.INFO: 2025-08-08 [2025-07-08 00:25:07] Production.INFO: getdaysdiff [2025-07-08 00:25:07] Production.INFO: +31 [2025-07-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (243,16,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:07] Production.INFO: next invoice date [2025-07-08 00:25:07] Production.INFO: 2025-08-08 [2025-07-08 00:25:07] Production.INFO: getdaysdiff [2025-07-08 00:25:07] Production.INFO: +31 [2025-07-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (243,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:08] Production.INFO: next invoice date [2025-07-08 00:25:08] Production.INFO: 2025-08-08 [2025-07-08 00:25:08] Production.INFO: getdaysdiff [2025-07-08 00:25:08] Production.INFO: +31 [2025-07-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (245,16,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:08] Production.INFO: next invoice date [2025-07-08 00:25:08] Production.INFO: 2025-08-08 [2025-07-08 00:25:08] Production.INFO: getdaysdiff [2025-07-08 00:25:08] Production.INFO: +31 [2025-07-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (245,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:08] Production.INFO: next invoice date [2025-07-08 00:25:08] Production.INFO: 2025-08-08 [2025-07-08 00:25:08] Production.INFO: getdaysdiff [2025-07-08 00:25:08] Production.INFO: +31 [2025-07-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:08] Production.INFO: next invoice date [2025-07-08 00:25:08] Production.INFO: 2025-08-08 [2025-07-08 00:25:08] Production.INFO: getdaysdiff [2025-07-08 00:25:08] Production.INFO: +31 [2025-07-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:08] Production.INFO: next invoice date [2025-07-08 00:25:08] Production.INFO: 2025-08-08 [2025-07-08 00:25:08] Production.INFO: getdaysdiff [2025-07-08 00:25:08] Production.INFO: +31 [2025-07-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (250,16,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:08] Production.INFO: next invoice date [2025-07-08 00:25:08] Production.INFO: 2025-08-08 [2025-07-08 00:25:08] Production.INFO: getdaysdiff [2025-07-08 00:25:08] Production.INFO: +31 [2025-07-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (250,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:08] Production.INFO: next invoice date [2025-07-08 00:25:08] Production.INFO: 2025-08-08 [2025-07-08 00:25:08] Production.INFO: getdaysdiff [2025-07-08 00:25:08] Production.INFO: +31 [2025-07-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (251,16,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:08] Production.INFO: next invoice date [2025-07-08 00:25:08] Production.INFO: 2025-08-08 [2025-07-08 00:25:08] Production.INFO: getdaysdiff [2025-07-08 00:25:08] Production.INFO: +31 [2025-07-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (251,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:08] Production.INFO: next invoice date [2025-07-08 00:25:08] Production.INFO: 2025-08-08 [2025-07-08 00:25:08] Production.INFO: getdaysdiff [2025-07-08 00:25:08] Production.INFO: +31 [2025-07-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (254,16,1,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:08] Production.INFO: next invoice date [2025-07-08 00:25:08] Production.INFO: 2025-08-08 [2025-07-08 00:25:08] Production.INFO: getdaysdiff [2025-07-08 00:25:08] Production.INFO: +31 [2025-07-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (254,13,2,31,31,'RMScheduler',2025-07-08 00:25:04,1,0,,,0) [2025-07-08 00:25:09] Production.ERROR: Array ( [start_date_ymd] => 2025-07-07 21:25:09 [end_date_ymd] => 2025-07-08 00:25:09 [RateCDR] => 1 ) [2025-07-08 00:25:09] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-07 21:25:09' and `end` < '2025-07-08 00:25:09' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-08 00:25:22] Production.INFO: count ==519 [2025-07-08 00:25:22] Production.ERROR: pbx CDR StartTime 2025-07-07 21:25:09 - End Time 2025-07-08 00:25:09 [2025-07-08 00:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15432340', 'tblTempUsageDetail_20' ) start [2025-07-08 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15432340', 'tblTempUsageDetail_20' ) end [2025-07-08 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15432340', 'tblTempVendorCDR_20' ) start [2025-07-08 00:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15432340', 'tblTempVendorCDR_20' ) end [2025-07-08 00:25:22] Production.INFO: ProcessCDR(1,15432340,1,1,2) [2025-07-08 00:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15432340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 00:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15432340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 00:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15432340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 00:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15432340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 00:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15432340', 'tblTempUsageDetail_20' ) start [2025-07-08 00:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15432340', 'tblTempUsageDetail_20' ) end [2025-07-08 00:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-08 00:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-08 00:25:31] Production.INFO: ==9561== Releasing lock... [2025-07-08 00:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 00:25:31] Production.INFO: 35.75 MB #Memory Used# [2025-07-08 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-07 22:25:05 [end_date_ymd] => 2025-07-08 01:25:05 [RateCDR] => 1 ) [2025-07-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-07-07 22:25:05' and `end` < '2025-07-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-07-08 01:25:17] Production.INFO: count ==455 [2025-07-08 01:25:17] Production.ERROR: pbx CDR StartTime 2025-07-07 22:25:05 - End Time 2025-07-08 01:25:05 [2025-07-08 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15432587', 'tblTempUsageDetail_20' ) start [2025-07-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15432587', 'tblTempUsageDetail_20' ) end [2025-07-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15432587', 'tblTempVendorCDR_20' ) start [2025-07-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15432587', 'tblTempVendorCDR_20' ) end [2025-07-08 01:25:17] Production.INFO: ProcessCDR(1,15432587,1,1,2) [2025-07-08 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15432587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15432587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15432587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15432587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15432587', 'tblTempUsageDetail_20' ) start [2025-07-08 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15432587', 'tblTempUsageDetail_20' ) end [2025-07-08 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-08 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-08 01:25:24] Production.INFO: ==14044== Releasing lock... [2025-07-08 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 01:25:24] Production.INFO: 32.25 MB #Memory Used# [2025-07-08 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-07 23:25:06 [end_date_ymd] => 2025-07-08 02:25:06 [RateCDR] => 1 ) [2025-07-08 02: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-07-07 23:25:06' and `end` < '2025-07-08 02: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-07-08 02:25:18] Production.INFO: count ==409 [2025-07-08 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-07 23:25:06 - End Time 2025-07-08 02:25:06 [2025-07-08 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15432834', 'tblTempUsageDetail_20' ) start [2025-07-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15432834', 'tblTempUsageDetail_20' ) end [2025-07-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15432834', 'tblTempVendorCDR_20' ) start [2025-07-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15432834', 'tblTempVendorCDR_20' ) end [2025-07-08 02:25:18] Production.INFO: ProcessCDR(1,15432834,1,1,2) [2025-07-08 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15432834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15432834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15432834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15432834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15432834', 'tblTempUsageDetail_20' ) start [2025-07-08 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15432834', 'tblTempUsageDetail_20' ) end [2025-07-08 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-08 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-08 02:25:24] Production.INFO: ==18629== Releasing lock... [2025-07-08 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 02:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-07-08 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 00:25:05 [end_date_ymd] => 2025-07-08 03:25:05 [RateCDR] => 1 ) [2025-07-08 03: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-07-08 00:25:05' and `end` < '2025-07-08 03: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-07-08 03:25:17] Production.INFO: count ==318 [2025-07-08 03:25:18] Production.ERROR: pbx CDR StartTime 2025-07-08 00:25:05 - End Time 2025-07-08 03:25:05 [2025-07-08 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15433081', 'tblTempUsageDetail_20' ) start [2025-07-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15433081', 'tblTempUsageDetail_20' ) end [2025-07-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15433081', 'tblTempVendorCDR_20' ) start [2025-07-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15433081', 'tblTempVendorCDR_20' ) end [2025-07-08 03:25:18] Production.INFO: ProcessCDR(1,15433081,1,1,2) [2025-07-08 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15433081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15433081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15433081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15433081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15433081', 'tblTempUsageDetail_20' ) start [2025-07-08 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15433081', 'tblTempUsageDetail_20' ) end [2025-07-08 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-08 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-08 03:25:24] Production.INFO: ==22925== Releasing lock... [2025-07-08 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 03:25:24] Production.INFO: 30.75 MB #Memory Used# [2025-07-08 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 01:25:05 [end_date_ymd] => 2025-07-08 04:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 01:25:05' and `end` < '2025-07-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-07-08 04:25:18] Production.INFO: count ==222 [2025-07-08 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-08 01:25:05 - End Time 2025-07-08 04:25:05 [2025-07-08 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15433329', 'tblTempUsageDetail_20' ) start [2025-07-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15433329', 'tblTempUsageDetail_20' ) end [2025-07-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15433329', 'tblTempVendorCDR_20' ) start [2025-07-08 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15433329', 'tblTempVendorCDR_20' ) end [2025-07-08 04:25:18] Production.INFO: ProcessCDR(1,15433329,1,1,2) [2025-07-08 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15433329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15433329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15433329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15433329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15433329', 'tblTempUsageDetail_20' ) start [2025-07-08 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15433329', 'tblTempUsageDetail_20' ) end [2025-07-08 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-08 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-08 04:25:24] Production.INFO: ==27177== Releasing lock... [2025-07-08 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 04:25:24] Production.INFO: 30 MB #Memory Used# [2025-07-08 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 02:25:05 [end_date_ymd] => 2025-07-08 05:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 02:25:05' and `end` < '2025-07-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-07-08 05:25:17] Production.INFO: count ==141 [2025-07-08 05:25:17] Production.ERROR: pbx CDR StartTime 2025-07-08 02:25:05 - End Time 2025-07-08 05:25:05 [2025-07-08 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15433577', 'tblTempUsageDetail_20' ) start [2025-07-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15433577', 'tblTempUsageDetail_20' ) end [2025-07-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15433577', 'tblTempVendorCDR_20' ) start [2025-07-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15433577', 'tblTempVendorCDR_20' ) end [2025-07-08 05:25:17] Production.INFO: ProcessCDR(1,15433577,1,1,2) [2025-07-08 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15433577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15433577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15433577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15433577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15433577', 'tblTempUsageDetail_20' ) start [2025-07-08 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15433577', 'tblTempUsageDetail_20' ) end [2025-07-08 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-08 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-08 05:25:24] Production.INFO: ==32303== Releasing lock... [2025-07-08 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 05:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-07-08 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 03:25:05 [end_date_ymd] => 2025-07-08 06:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 03:25:05' and `end` < '2025-07-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-07-08 06:25:17] Production.INFO: count ==94 [2025-07-08 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-08 03:25:05 - End Time 2025-07-08 06:25:05 [2025-07-08 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15433824', 'tblTempUsageDetail_20' ) start [2025-07-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15433824', 'tblTempUsageDetail_20' ) end [2025-07-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15433824', 'tblTempVendorCDR_20' ) start [2025-07-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15433824', 'tblTempVendorCDR_20' ) end [2025-07-08 06:25:17] Production.INFO: ProcessCDR(1,15433824,1,1,2) [2025-07-08 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15433824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15433824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15433824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15433824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15433824', 'tblTempUsageDetail_20' ) start [2025-07-08 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15433824', 'tblTempUsageDetail_20' ) end [2025-07-08 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-08 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-08 06:25:23] Production.INFO: ==4662== Releasing lock... [2025-07-08 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 06:25:23] Production.INFO: 28.5 MB #Memory Used# [2025-07-08 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 04:25:05 [end_date_ymd] => 2025-07-08 07:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 04:25:05' and `end` < '2025-07-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-07-08 07:25:17] Production.INFO: count ==108 [2025-07-08 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-08 04:25:05 - End Time 2025-07-08 07:25:05 [2025-07-08 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15434071', 'tblTempUsageDetail_20' ) start [2025-07-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15434071', 'tblTempUsageDetail_20' ) end [2025-07-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15434071', 'tblTempVendorCDR_20' ) start [2025-07-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15434071', 'tblTempVendorCDR_20' ) end [2025-07-08 07:25:17] Production.INFO: ProcessCDR(1,15434071,1,1,2) [2025-07-08 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15434071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15434071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15434071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15434071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15434071', 'tblTempUsageDetail_20' ) start [2025-07-08 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15434071', 'tblTempUsageDetail_20' ) end [2025-07-08 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-08 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-08 07:25:23] Production.INFO: ==9241== Releasing lock... [2025-07-08 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 07:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-07-08 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 05:25:05 [end_date_ymd] => 2025-07-08 08:25:05 [RateCDR] => 1 ) [2025-07-08 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-08 05:25:05' and `end` < '2025-07-08 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-08 08:25:17] Production.INFO: count ==279 [2025-07-08 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-08 05:25:05 - End Time 2025-07-08 08:25:05 [2025-07-08 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15434318', 'tblTempUsageDetail_20' ) start [2025-07-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15434318', 'tblTempUsageDetail_20' ) end [2025-07-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15434318', 'tblTempVendorCDR_20' ) start [2025-07-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15434318', 'tblTempVendorCDR_20' ) end [2025-07-08 08:25:17] Production.INFO: ProcessCDR(1,15434318,1,1,2) [2025-07-08 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15434318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15434318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15434318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15434318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15434318', 'tblTempUsageDetail_20' ) start [2025-07-08 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15434318', 'tblTempUsageDetail_20' ) end [2025-07-08 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-08 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-08 08:25:24] Production.INFO: ==13886== Releasing lock... [2025-07-08 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 08:25:24] Production.INFO: 30 MB #Memory Used# [2025-07-08 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 06:25:05 [end_date_ymd] => 2025-07-08 09:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 06:25:05' and `end` < '2025-07-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-07-08 09:25:18] Production.INFO: count ==1145 [2025-07-08 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-08 06:25:05 - End Time 2025-07-08 09:25:05 [2025-07-08 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15434565', 'tblTempUsageDetail_20' ) start [2025-07-08 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15434565', 'tblTempUsageDetail_20' ) end [2025-07-08 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15434565', 'tblTempVendorCDR_20' ) start [2025-07-08 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15434565', 'tblTempVendorCDR_20' ) end [2025-07-08 09:25:19] Production.INFO: ProcessCDR(1,15434565,1,1,2) [2025-07-08 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15434565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15434565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15434565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15434565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15434565', 'tblTempUsageDetail_20' ) start [2025-07-08 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15434565', 'tblTempUsageDetail_20' ) end [2025-07-08 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-08 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-08 09:25:26] Production.INFO: ==18419== Releasing lock... [2025-07-08 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 09:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-07-08 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 07:25:05 [end_date_ymd] => 2025-07-08 10:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 07:25:05' and `end` < '2025-07-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-07-08 10:25:19] Production.INFO: count ==2564 [2025-07-08 10:25:20] Production.ERROR: pbx CDR StartTime 2025-07-08 07:25:05 - End Time 2025-07-08 10:25:05 [2025-07-08 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15434812', 'tblTempUsageDetail_20' ) start [2025-07-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15434812', 'tblTempUsageDetail_20' ) end [2025-07-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15434812', 'tblTempVendorCDR_20' ) start [2025-07-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15434812', 'tblTempVendorCDR_20' ) end [2025-07-08 10:25:20] Production.INFO: ProcessCDR(1,15434812,1,1,2) [2025-07-08 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15434812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15434812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15434812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15434812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15434812', 'tblTempUsageDetail_20' ) start [2025-07-08 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15434812', 'tblTempUsageDetail_20' ) end [2025-07-08 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-08 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-08 10:25:30] Production.INFO: ==22822== Releasing lock... [2025-07-08 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 10:25:30] Production.INFO: 47.75 MB #Memory Used# [2025-07-08 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 08:25:05 [end_date_ymd] => 2025-07-08 11:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 08:25:05' and `end` < '2025-07-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-07-08 11:25:23] Production.INFO: count ==4385 [2025-07-08 11:25:25] Production.ERROR: pbx CDR StartTime 2025-07-08 08:25:05 - End Time 2025-07-08 11:25:05 [2025-07-08 11:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15435059', 'tblTempUsageDetail_20' ) start [2025-07-08 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15435059', 'tblTempUsageDetail_20' ) end [2025-07-08 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15435059', 'tblTempVendorCDR_20' ) start [2025-07-08 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15435059', 'tblTempVendorCDR_20' ) end [2025-07-08 11:25:25] Production.INFO: ProcessCDR(1,15435059,1,1,2) [2025-07-08 11:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15435059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 11:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15435059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 11:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15435059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 11:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15435059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15435059', 'tblTempUsageDetail_20' ) start [2025-07-08 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15435059', 'tblTempUsageDetail_20' ) end [2025-07-08 11:25:34] Production.ERROR: pbx prc_insertCDR start [2025-07-08 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-08 11:25:36] Production.INFO: ==27043== Releasing lock... [2025-07-08 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 11:25:36] Production.INFO: 61 MB #Memory Used# [2025-07-08 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 09:25:05 [end_date_ymd] => 2025-07-08 12:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 09:25:05' and `end` < '2025-07-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-07-08 12:25:23] Production.INFO: count ==5340 [2025-07-08 12:25:26] Production.ERROR: pbx CDR StartTime 2025-07-08 09:25:05 - End Time 2025-07-08 12:25:05 [2025-07-08 12:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15435306', 'tblTempUsageDetail_20' ) start [2025-07-08 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15435306', 'tblTempUsageDetail_20' ) end [2025-07-08 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15435306', 'tblTempVendorCDR_20' ) start [2025-07-08 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15435306', 'tblTempVendorCDR_20' ) end [2025-07-08 12:25:26] Production.INFO: ProcessCDR(1,15435306,1,1,2) [2025-07-08 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15435306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 12:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15435306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 12:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15435306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15435306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15435306', 'tblTempUsageDetail_20' ) start [2025-07-08 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15435306', 'tblTempUsageDetail_20' ) end [2025-07-08 12:25:35] Production.ERROR: pbx prc_insertCDR start [2025-07-08 12:25:37] Production.ERROR: pbx prc_insertCDR end [2025-07-08 12:25:37] Production.INFO: ==31263== Releasing lock... [2025-07-08 12:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 12:25:37] Production.INFO: 68.25 MB #Memory Used# [2025-07-08 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 10:25:05 [end_date_ymd] => 2025-07-08 13:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 10:25:05' and `end` < '2025-07-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-07-08 13:25:19] Production.INFO: count ==5744 [2025-07-08 13:25:22] Production.ERROR: pbx CDR StartTime 2025-07-08 10:25:05 - End Time 2025-07-08 13:25:05 [2025-07-08 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15435553', 'tblTempUsageDetail_20' ) start [2025-07-08 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15435553', 'tblTempUsageDetail_20' ) end [2025-07-08 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15435553', 'tblTempVendorCDR_20' ) start [2025-07-08 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15435553', 'tblTempVendorCDR_20' ) end [2025-07-08 13:25:22] Production.INFO: ProcessCDR(1,15435553,1,1,2) [2025-07-08 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15435553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15435553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15435553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15435553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15435553', 'tblTempUsageDetail_20' ) start [2025-07-08 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15435553', 'tblTempUsageDetail_20' ) end [2025-07-08 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-08 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-08 13:25:33] Production.INFO: ==3560== Releasing lock... [2025-07-08 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 13:25:33] Production.INFO: 71.25 MB #Memory Used# [2025-07-08 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 11:25:05 [end_date_ymd] => 2025-07-08 14:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 11:25:05' and `end` < '2025-07-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-07-08 14:25:20] Production.INFO: count ==5534 [2025-07-08 14:25:23] Production.ERROR: pbx CDR StartTime 2025-07-08 11:25:05 - End Time 2025-07-08 14:25:05 [2025-07-08 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15435800', 'tblTempUsageDetail_20' ) start [2025-07-08 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15435800', 'tblTempUsageDetail_20' ) end [2025-07-08 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15435800', 'tblTempVendorCDR_20' ) start [2025-07-08 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15435800', 'tblTempVendorCDR_20' ) end [2025-07-08 14:25:23] Production.INFO: ProcessCDR(1,15435800,1,1,2) [2025-07-08 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15435800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15435800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15435800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15435800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15435800', 'tblTempUsageDetail_20' ) start [2025-07-08 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15435800', 'tblTempUsageDetail_20' ) end [2025-07-08 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-08 14:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-08 14:25:33] Production.INFO: ==8195== Releasing lock... [2025-07-08 14:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 14:25:33] Production.INFO: 69.75 MB #Memory Used# [2025-07-08 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 12:25:06 [end_date_ymd] => 2025-07-08 15:25:06 [RateCDR] => 1 ) [2025-07-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-07-08 12:25:06' and `end` < '2025-07-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-07-08 15:25:20] Production.INFO: count ==5269 [2025-07-08 15:25:22] Production.ERROR: pbx CDR StartTime 2025-07-08 12:25:06 - End Time 2025-07-08 15:25:06 [2025-07-08 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15436047', 'tblTempUsageDetail_20' ) start [2025-07-08 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15436047', 'tblTempUsageDetail_20' ) end [2025-07-08 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15436047', 'tblTempVendorCDR_20' ) start [2025-07-08 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15436047', 'tblTempVendorCDR_20' ) end [2025-07-08 15:25:22] Production.INFO: ProcessCDR(1,15436047,1,1,2) [2025-07-08 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15436047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15436047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15436047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15436047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15436047', 'tblTempUsageDetail_20' ) start [2025-07-08 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15436047', 'tblTempUsageDetail_20' ) end [2025-07-08 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-08 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-08 15:25:33] Production.INFO: ==12676== Releasing lock... [2025-07-08 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 15:25:33] Production.INFO: 67.75 MB #Memory Used# [2025-07-08 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 13:25:06 [end_date_ymd] => 2025-07-08 16:25:06 [RateCDR] => 1 ) [2025-07-08 16: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-07-08 13:25:06' and `end` < '2025-07-08 16: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-07-08 16:25:31] Production.INFO: count ==5447 [2025-07-08 16:25:34] Production.ERROR: pbx CDR StartTime 2025-07-08 13:25:06 - End Time 2025-07-08 16:25:06 [2025-07-08 16:25:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15436294', 'tblTempUsageDetail_20' ) start [2025-07-08 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15436294', 'tblTempUsageDetail_20' ) end [2025-07-08 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15436294', 'tblTempVendorCDR_20' ) start [2025-07-08 16:25:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15436294', 'tblTempVendorCDR_20' ) end [2025-07-08 16:25:34] Production.INFO: ProcessCDR(1,15436294,1,1,2) [2025-07-08 16:25:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15436294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 16:25:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15436294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 16:25:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15436294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 16:25:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15436294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 16:25:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15436294', 'tblTempUsageDetail_20' ) start [2025-07-08 16:25:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15436294', 'tblTempUsageDetail_20' ) end [2025-07-08 16:25:43] Production.ERROR: pbx prc_insertCDR start [2025-07-08 16:25:44] Production.ERROR: pbx prc_insertCDR end [2025-07-08 16:25:44] Production.INFO: ==17085== Releasing lock... [2025-07-08 16:25:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 16:25:44] Production.INFO: 69 MB #Memory Used# [2025-07-08 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 14:25:06 [end_date_ymd] => 2025-07-08 17:25:06 [RateCDR] => 1 ) [2025-07-08 17: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-07-08 14:25:06' and `end` < '2025-07-08 17: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-07-08 17:25:19] Production.INFO: count ==5417 [2025-07-08 17:25:22] Production.ERROR: pbx CDR StartTime 2025-07-08 14:25:06 - End Time 2025-07-08 17:25:06 [2025-07-08 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15436541', 'tblTempUsageDetail_20' ) start [2025-07-08 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15436541', 'tblTempUsageDetail_20' ) end [2025-07-08 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15436541', 'tblTempVendorCDR_20' ) start [2025-07-08 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15436541', 'tblTempVendorCDR_20' ) end [2025-07-08 17:25:22] Production.INFO: ProcessCDR(1,15436541,1,1,2) [2025-07-08 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15436541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15436541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15436541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15436541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15436541', 'tblTempUsageDetail_20' ) start [2025-07-08 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15436541', 'tblTempUsageDetail_20' ) end [2025-07-08 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-08 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-08 17:25:33] Production.INFO: ==21848== Releasing lock... [2025-07-08 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 17:25:33] Production.INFO: 68.75 MB #Memory Used# [2025-07-08 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 15:25:06 [end_date_ymd] => 2025-07-08 18:25:06 [RateCDR] => 1 ) [2025-07-08 18: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-07-08 15:25:06' and `end` < '2025-07-08 18: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-07-08 18:25:19] Production.INFO: count ==4757 [2025-07-08 18:25:21] Production.ERROR: pbx CDR StartTime 2025-07-08 15:25:06 - End Time 2025-07-08 18:25:06 [2025-07-08 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15436788', 'tblTempUsageDetail_20' ) start [2025-07-08 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15436788', 'tblTempUsageDetail_20' ) end [2025-07-08 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15436788', 'tblTempVendorCDR_20' ) start [2025-07-08 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15436788', 'tblTempVendorCDR_20' ) end [2025-07-08 18:25:21] Production.INFO: ProcessCDR(1,15436788,1,1,2) [2025-07-08 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15436788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15436788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15436788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15436788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15436788', 'tblTempUsageDetail_20' ) start [2025-07-08 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15436788', 'tblTempUsageDetail_20' ) end [2025-07-08 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-08 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-08 18:25:30] Production.INFO: ==26334== Releasing lock... [2025-07-08 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 18:25:30] Production.INFO: 63.75 MB #Memory Used# [2025-07-08 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 16:25:05 [end_date_ymd] => 2025-07-08 19:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 16:25:05' and `end` < '2025-07-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-07-08 19:25:18] Production.INFO: count ==3422 [2025-07-08 19:25:20] Production.ERROR: pbx CDR StartTime 2025-07-08 16:25:05 - End Time 2025-07-08 19:25:05 [2025-07-08 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15437032', 'tblTempUsageDetail_20' ) start [2025-07-08 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15437032', 'tblTempUsageDetail_20' ) end [2025-07-08 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15437032', 'tblTempVendorCDR_20' ) start [2025-07-08 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15437032', 'tblTempVendorCDR_20' ) end [2025-07-08 19:25:20] Production.INFO: ProcessCDR(1,15437032,1,1,2) [2025-07-08 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15437032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15437032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15437032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15437032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15437032', 'tblTempUsageDetail_20' ) start [2025-07-08 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15437032', 'tblTempUsageDetail_20' ) end [2025-07-08 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-08 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-08 19:25:28] Production.INFO: ==30668== Releasing lock... [2025-07-08 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 19:25:28] Production.INFO: 53.75 MB #Memory Used# [2025-07-08 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 17:25:05 [end_date_ymd] => 2025-07-08 20:25:05 [RateCDR] => 1 ) [2025-07-08 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-08 17:25:05' and `end` < '2025-07-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-07-08 20:25:17] Production.INFO: count ==2140 [2025-07-08 20:25:18] Production.ERROR: pbx CDR StartTime 2025-07-08 17:25:05 - End Time 2025-07-08 20:25:05 [2025-07-08 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15437279', 'tblTempUsageDetail_20' ) start [2025-07-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15437279', 'tblTempUsageDetail_20' ) end [2025-07-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15437279', 'tblTempVendorCDR_20' ) start [2025-07-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15437279', 'tblTempVendorCDR_20' ) end [2025-07-08 20:25:18] Production.INFO: ProcessCDR(1,15437279,1,1,2) [2025-07-08 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15437279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15437279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15437279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15437279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15437279', 'tblTempUsageDetail_20' ) start [2025-07-08 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15437279', 'tblTempUsageDetail_20' ) end [2025-07-08 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-08 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-08 20:25:26] Production.INFO: ==2536== Releasing lock... [2025-07-08 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 20:25:26] Production.INFO: 44.5 MB #Memory Used# [2025-07-08 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 18:25:05 [end_date_ymd] => 2025-07-08 21:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 18:25:05' and `end` < '2025-07-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-07-08 21:25:17] Production.INFO: count ==1600 [2025-07-08 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-08 18:25:05 - End Time 2025-07-08 21:25:05 [2025-07-08 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15437526', 'tblTempUsageDetail_20' ) start [2025-07-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15437526', 'tblTempUsageDetail_20' ) end [2025-07-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15437526', 'tblTempVendorCDR_20' ) start [2025-07-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15437526', 'tblTempVendorCDR_20' ) end [2025-07-08 21:25:18] Production.INFO: ProcessCDR(1,15437526,1,1,2) [2025-07-08 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15437526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15437526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15437526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15437526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15437526', 'tblTempUsageDetail_20' ) start [2025-07-08 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15437526', 'tblTempUsageDetail_20' ) end [2025-07-08 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-08 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-08 21:25:25] Production.INFO: ==7316== Releasing lock... [2025-07-08 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 21:25:25] Production.INFO: 40.25 MB #Memory Used# [2025-07-08 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 19:25:04 [end_date_ymd] => 2025-07-08 22:25:04 [RateCDR] => 1 ) [2025-07-08 22:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-08 19:25:04' and `end` < '2025-07-08 22:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-08 22:25:17] Production.INFO: count ==1298 [2025-07-08 22:25:17] Production.ERROR: pbx CDR StartTime 2025-07-08 19:25:04 - End Time 2025-07-08 22:25:04 [2025-07-08 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15437773', 'tblTempUsageDetail_20' ) start [2025-07-08 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15437773', 'tblTempUsageDetail_20' ) end [2025-07-08 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15437773', 'tblTempVendorCDR_20' ) start [2025-07-08 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15437773', 'tblTempVendorCDR_20' ) end [2025-07-08 22:25:17] Production.INFO: ProcessCDR(1,15437773,1,1,2) [2025-07-08 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15437773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15437773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15437773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15437773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15437773', 'tblTempUsageDetail_20' ) start [2025-07-08 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15437773', 'tblTempUsageDetail_20' ) end [2025-07-08 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-08 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-08 22:25:24] Production.INFO: ==12054== Releasing lock... [2025-07-08 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 22:25:24] Production.INFO: 38 MB #Memory Used# [2025-07-08 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-08 20:25:05 [end_date_ymd] => 2025-07-08 23:25:05 [RateCDR] => 1 ) [2025-07-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-07-08 20:25:05' and `end` < '2025-07-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-07-08 23:25:18] Production.INFO: count ==1105 [2025-07-08 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-08 20:25:05 - End Time 2025-07-08 23:25:05 [2025-07-08 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15438020', 'tblTempUsageDetail_20' ) start [2025-07-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15438020', 'tblTempUsageDetail_20' ) end [2025-07-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15438020', 'tblTempVendorCDR_20' ) start [2025-07-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15438020', 'tblTempVendorCDR_20' ) end [2025-07-08 23:25:18] Production.INFO: ProcessCDR(1,15438020,1,1,2) [2025-07-08 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15438020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15438020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-08 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15438020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15438020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-08 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15438020', 'tblTempUsageDetail_20' ) start [2025-07-08 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15438020', 'tblTempUsageDetail_20' ) end [2025-07-08 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-08 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-08 23:25:25] Production.INFO: ==16312== Releasing lock... [2025-07-08 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-08 23:25:25] Production.INFO: 36.75 MB #Memory Used#